tccli 3.0.1297.1__py2.py3-none-any.whl → 3.0.1299.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 (85) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/batch_client.py +4 -110
  3. tccli/services/batch/v20170312/api.json +0 -527
  4. tccli/services/batch/v20170312/examples.json +0 -16
  5. tccli/services/bi/v20220105/api.json +87 -1
  6. tccli/services/bi/v20220105/examples.json +7 -7
  7. tccli/services/cam/v20190116/api.json +84 -84
  8. tccli/services/cbs/v20170312/api.json +24 -24
  9. tccli/services/cdn/v20180606/api.json +240 -179
  10. tccli/services/cdn/v20180606/examples.json +1 -1
  11. tccli/services/cfg/v20210820/api.json +5 -3
  12. tccli/services/cfg/v20210820/examples.json +1 -1
  13. tccli/services/chdfs/v20201112/api.json +7 -1
  14. tccli/services/cls/cls_client.py +235 -23
  15. tccli/services/cls/v20201016/api.json +457 -3
  16. tccli/services/cls/v20201016/examples.json +32 -0
  17. tccli/services/controlcenter/v20230110/api.json +63 -58
  18. tccli/services/cvm/v20170312/api.json +2 -2
  19. tccli/services/dbbrain/dbbrain_client.py +106 -0
  20. tccli/services/dbbrain/v20191016/api.json +365 -6
  21. tccli/services/dbbrain/v20191016/examples.json +8 -0
  22. tccli/services/dbbrain/v20210527/api.json +550 -21
  23. tccli/services/dbbrain/v20210527/examples.json +16 -0
  24. tccli/services/dcdb/v20180411/api.json +102 -6
  25. tccli/services/dcdb/v20180411/examples.json +4 -4
  26. tccli/services/dlc/dlc_client.py +53 -0
  27. tccli/services/dlc/v20210125/api.json +162 -0
  28. tccli/services/dlc/v20210125/examples.json +8 -0
  29. tccli/services/dnspod/v20210323/api.json +128 -127
  30. tccli/services/ess/v20201111/api.json +1 -1
  31. tccli/services/essbasic/v20210526/api.json +5 -5
  32. tccli/services/facefusion/v20220927/api.json +2 -2
  33. tccli/services/facefusion/v20220927/examples.json +1 -1
  34. tccli/services/gs/v20191118/api.json +22 -3
  35. tccli/services/gs/v20191118/examples.json +1 -1
  36. tccli/services/hai/v20230812/api.json +16 -16
  37. tccli/services/iotcloud/v20210408/api.json +2 -2
  38. tccli/services/iotcloud/v20210408/examples.json +3 -3
  39. tccli/services/iotexplorer/v20190423/api.json +947 -857
  40. tccli/services/iotexplorer/v20190423/examples.json +83 -83
  41. tccli/services/live/v20180801/api.json +2 -2
  42. tccli/services/lkeap/v20240522/api.json +3 -3
  43. tccli/services/mariadb/v20170312/api.json +84 -8
  44. tccli/services/mariadb/v20170312/examples.json +3 -3
  45. tccli/services/mps/v20190612/api.json +63 -61
  46. tccli/services/mps/v20190612/examples.json +48 -48
  47. tccli/services/mqtt/v20240516/api.json +62 -12
  48. tccli/services/mqtt/v20240516/examples.json +6 -6
  49. tccli/services/ocr/ocr_client.py +307 -360
  50. tccli/services/ocr/v20181119/api.json +73 -289
  51. tccli/services/ocr/v20181119/examples.json +0 -8
  52. tccli/services/organization/v20210331/api.json +9 -0
  53. tccli/services/partners/v20180321/api.json +10 -0
  54. tccli/services/sqlserver/v20180328/api.json +9 -0
  55. tccli/services/sqlserver/v20180328/examples.json +1 -1
  56. tccli/services/tcb/v20180608/api.json +11 -1
  57. tccli/services/tdmq/v20200217/api.json +30 -0
  58. tccli/services/teo/v20220106/api.json +4 -4
  59. tccli/services/teo/v20220901/api.json +48 -7
  60. tccli/services/teo/v20220901/examples.json +51 -15
  61. tccli/services/tione/v20211111/api.json +25 -5
  62. tccli/services/tke/v20180525/api.json +2 -2
  63. tccli/services/trro/trro_client.py +269 -4
  64. tccli/services/trro/v20220325/api.json +504 -0
  65. tccli/services/trro/v20220325/examples.json +40 -0
  66. tccli/services/tse/v20201207/api.json +34 -34
  67. tccli/services/vdb/v20230616/api.json +738 -15
  68. tccli/services/vdb/v20230616/examples.json +64 -0
  69. tccli/services/vdb/vdb_client.py +428 -4
  70. tccli/services/vod/v20180717/api.json +9 -0
  71. tccli/services/vod/v20240718/api.json +985 -0
  72. tccli/services/vod/v20240718/examples.json +66 -0
  73. tccli/services/vod/vod_client.py +330 -12
  74. tccli/services/vpc/v20170312/api.json +175 -0
  75. tccli/services/vpc/v20170312/examples.json +8 -0
  76. tccli/services/vpc/vpc_client.py +53 -0
  77. tccli/services/wedata/v20210820/api.json +464 -1
  78. tccli/services/wedata/v20210820/examples.json +22 -0
  79. tccli/services/wedata/wedata_client.py +114 -8
  80. tccli/services/weilingwith/v20230427/api.json +10 -10
  81. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/METADATA +2 -2
  82. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/RECORD +85 -85
  83. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/WHEEL +0 -0
  84. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/entry_points.txt +0 -0
  85. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/license_files/LICENSE +0 -0
@@ -348,10 +348,16 @@
348
348
  ],
349
349
  "CreateSecurityIPGroup": [
350
350
  {
351
- "document": "正常创建安全 IP ",
351
+ "document": "创建安全 IP 组,并设置 2.2.2.2 为永久存在。",
352
352
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 0,\n \"Name\": \"testip\",\n \"Content\": [\n \"2.2.2.2\"\n ]\n },\n \"ZoneId\": \"zone-j94jf0a1\"\n}",
353
353
  "output": "{\n \"Response\": {\n \"RequestId\": \"09ce3d28-1119-49cd-xxxx-27cb34dac669\",\n \"GroupId\": 128\n }\n}",
354
- "title": "创建安全 IP "
354
+ "title": "创建安全 IP 组,配置永久存在的 IP。"
355
+ },
356
+ {
357
+ "document": "创建安全 IP 组,设置 3.3.3.3 永久存在,且为 1.1.1.1 配置过期时间。",
358
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 0,\n \"Name\": \"test\",\n \"Content\": [\n \"1.1.1.1\",\n \"3.3.3.3\"\n ],\n \"IPExpireInfo\": [\n {\n \"ExpireTime\": \"2026-03-24T16:03:00+08:00\",\n \"IPList\": [\n \"1.1.1.1\"\n ]\n }\n ]\n },\n \"ZoneId\": \"zone-j94jf0a1\"\n}",
359
+ "output": "{\n \"Response\": {\n \"RequestId\": \"09ce3d28-1119-49cd-xxxx-27cb34dac669\",\n \"GroupId\": 128\n }\n}",
360
+ "title": "创建安全 IP 组,并为 IP 配置过期时间"
355
361
  }
356
362
  ],
357
363
  "CreateSharedCNAME": [
@@ -876,10 +882,16 @@
876
882
  ],
877
883
  "DescribeSecurityIPGroup": [
878
884
  {
879
- "document": "查询指定站点中,安全 IP 分组的配置信息。",
880
- "input": "POST / HTTP/1.1\nHost: xxx.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-nqicqhasui\"\n}",
881
- "output": "{\n \"Response\": {\n \"IPGroups\": [\n {\n \"GroupId\": 123,\n \"Name\": \"ExampleIpGroup\",\n \"Content\": [\n \"2.2.2.2\",\n \"23.23.23.0/24\"\n ]\n }\n ],\n \"RequestId\": \"ddf831fc-cf45-40fe-81b0-2d9cdd4c1bd6\"\n }\n}",
882
- "title": "查询安全 IP 分组的配置信息"
885
+ "document": "查询指定站点的所有安全 IP 分组的配置信息。",
886
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSecurityIPGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-nqicqhasui\"\n}",
887
+ "output": "{\n \"Response\": {\n \"IPGroups\": [\n {\n \"GroupId\": 97,\n \"Name\": \"ExampleIpGroup\",\n \"Content\": [\n \"2.2.2.2\",\n \"23.23.23.0/24\"\n ],\n \"IPExpireInfo\": [\n {\n \"ExpireTime\": \"2026-03-24T16:03:00+08:00\",\n \"IPList\": [\n \"2.2.2.2\"\n ]\n }\n ]\n }\n ],\n \"RequestId\": \"ddf831fc-cf45-40fe-81b0-2d9cdd4c1bd6\"\n }\n}",
888
+ "title": "查询站点下所有安全 IP 分组的配置信息"
889
+ },
890
+ {
891
+ "document": "查询站点中指定 ID 的安全 IP 分组配置信息",
892
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSecurityIPGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-ncacqeabax\",\n \"GroupIds\": [\n 100,\n 200\n ]\n}",
893
+ "output": "{\n \"Response\": {\n \"IPGroups\": [\n {\n \"GroupId\": 100,\n \"Name\": \"ExampleIpGroup-1\",\n \"Content\": [\n \"2.2.2.2\",\n \"23.23.23.0/24\"\n ],\n \"IPExpireInfo\": [\n {\n \"ExpireTime\": \"2026-03-24T16:03:00+08:00\",\n \"IPList\": [\n \"2.2.2.2\"\n ]\n }\n ]\n },\n {\n \"GroupId\": 200,\n \"Name\": \"ExampleIpGroup-2\",\n \"Content\": [\n \"1.1.1.1\",\n \"23.23.23.0/24\"\n ],\n \"IPExpireInfo\": [\n {\n \"ExpireTime\": \"2025-03-24T16:03:00+08:00\",\n \"IPList\": [\n \"1.1.1.1\"\n ]\n }\n ]\n }\n ],\n \"RequestId\": \"ddf831fc-cf45-40fe-81b0-2d9cdd4c1bd6\"\n }\n}",
894
+ "title": "查询指定 ID 的安全 IP 分组的配置信息"
883
895
  }
884
896
  ],
885
897
  "DescribeSecurityIPGroupInfo": [
@@ -1362,22 +1374,46 @@
1362
1374
  ],
1363
1375
  "ModifySecurityIPGroup": [
1364
1376
  {
1365
- "document": "修改安全 IP 组,其中操作类型是 append",
1366
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.3.1.1/16\",\n \"6.6.6.6\"\n ]\n },\n \"Mode\": \"append\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1377
+ "document": "若向已存在的 IP 组中追加以下 IP 或网段:1.1.1.1、2.2.2.0/24。",
1378
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.1.1.1\",\n \"2.2.2.0/24\"\n ]\n },\n \"Mode\": \"append\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1367
1379
  "output": "{\n \"Response\": {\n \"RequestId\": \"728cb059-8595-44c7-b6c6-b4a539ae823f\"\n }\n}",
1368
- "title": "修改安全 IP 组,其中操作类型是 append"
1380
+ "title": " IP 组中追加 IP 或网段"
1369
1381
  },
1370
1382
  {
1371
- "document": "修改安全 IP 组,其中操作类型是 remove",
1372
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.3.1.1/16\",\n \"6.6.6.6\"\n ]\n },\n \"Mode\": \"remove\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1383
+ "document": "需要向已存在安全 IP 组中追加以下 IP 或网段:1.1.1.1、2.2.2.0/24、3.3.3.3 和 4.4.4.4,并为 1.1.1.1、2.2.2.0/24 和 4.4.4.4 分别配置过期时间。",
1384
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.1.1.1\",\n \"2.2.2.0/24\",\n \"3.3.3.3\",\n \"4.4.4.4\"\n ],\n \"IPExpireInfo\": [\n {\n \"ExpireTime\": \"2022-01-01T00:00:00+08:00\",\n \"IPList\": [\n \"1.1.1.1\",\n \"4.4.4.4\"\n ]\n },\n {\n \"ExpireTime\": \"2022-01-02T00:00:00+08:00\",\n \"IPList\": [\n \"2.2.2.0/24\"\n ]\n }\n ]\n },\n \"Mode\": \"append\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1385
+ "output": "{\n \"Response\": {\n \"RequestId\": \"728cb059-8595-44c7-b6c6-b4a539ae823f\"\n }\n}",
1386
+ "title": "向安全 IP 组中追加 IP 或网段,并配置过期时间。"
1387
+ },
1388
+ {
1389
+ "document": "IP 组中的 1.1.1.1 已配置过期时间,现在需要更改该 IP 的定时过期时间。",
1390
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [],\n \"IPExpireInfo\": [\n {\n \"ExpireTime\": \"2022-01-01T00:00:00+08:00\",\n \"IPList\": [\n \"1.1.1.1\"\n ]\n }\n ]\n },\n \"Mode\": \"append\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1391
+ "output": "{\n \"Response\": {\n \"RequestId\": \"728cb059-8595-44c7-b6c6-b4a539ae823f\"\n }\n}",
1392
+ "title": "修改 IP 组中 IP 或网段的过期时间"
1393
+ },
1394
+ {
1395
+ "document": "IP 组中存在 1.1.1.1,现在需要删除该 IP。",
1396
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.1.1.1\"\n ]\n },\n \"Mode\": \"remove\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1373
1397
  "output": "{\n \"Response\": {\n \"RequestId\": \"5bdc699c-68df-4cb7-9d0a-1c174b0374ad\"\n }\n}",
1374
- "title": "修改安全 IP 组,其中操作类型是 remove"
1398
+ "title": "删除 IP 组中的 IP 或网段"
1399
+ },
1400
+ {
1401
+ "document": "IP 组中存在 1.1.1.1,并已为该 IP 配置过期时间,现在需要删除该 IP 的过期时间。",
1402
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [],\n \"IPExpireInfo\": [\n {\n \"IPList\": [\n \"1.1.1.1\"\n ]\n }\n ]\n },\n \"Mode\": \"remove\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1403
+ "output": "{\n \"Response\": {\n \"RequestId\": \"728cb059-8595-44c7-b6c6-b4a539ae823f\"\n }\n}",
1404
+ "title": "删除 IP 组中 IP 或网段的过期时间"
1375
1405
  },
1376
1406
  {
1377
- "document": "修改安全 IP 组,其中操作类型是 update",
1378
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.2.1.1/24\",\n \"3.3.3.3\"\n ]\n },\n \"Mode\": \"update\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1407
+ "document": "需要全量更新 IP 组内容,需更新的 IP 或网段为:1.1.1.1、2.2.2.0/24。",
1408
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.1.1.1\",\n \"2.2.2.0/24\"\n ]\n },\n \"Mode\": \"update\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1379
1409
  "output": "{\n \"Response\": {\n \"RequestId\": \"sh1u8a90-xxxx-49cd-swui-27cb34daa779\"\n }\n}",
1380
- "title": "修改安全 IP 组,其中操作类型是 update"
1410
+ "title": "全量更新安全 IP 组中的 IP 或网段"
1411
+ },
1412
+ {
1413
+ "document": "需要全量更新 IP 组内容,新更新的 IP 或网段为:1.1.1.1、2.2.2.0/24、3.3.3.3,并为 1.1.1.1 配置过期时间。",
1414
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityIPGroup\n<公共请求参数>\n\n{\n \"IPGroup\": {\n \"GroupId\": 67,\n \"Name\": \"test3\",\n \"Content\": [\n \"1.1.1.1\",\n \"2.2.2.0/24\",\n \"3.3.3.3\"\n ],\n \"IPExpireInfo\": [\n {\n \"ExpireTime\": \"2022-01-01T00:00:00+08:00\",\n \"IPList\": [\n \"1.1.1.1\"\n ]\n }\n ]\n },\n \"Mode\": \"update\",\n \"ZoneId\": \"zone-hduqwh\"\n}",
1415
+ "output": "{\n \"Response\": {\n \"RequestId\": \"728cb059-8595-44c7-b6c6-b4a539ae823f\"\n }\n}",
1416
+ "title": "全量更新安全 IP 组中的 IP 或网段以及对应的过期时间"
1381
1417
  }
1382
1418
  ],
1383
1419
  "ModifySecurityPolicy": [
@@ -9004,7 +9004,7 @@
9004
9004
  {
9005
9005
  "disabled": false,
9006
9006
  "document": "主账号",
9007
- "example": "555555",
9007
+ "example": "999555555",
9008
9008
  "member": "string",
9009
9009
  "name": "Uin",
9010
9010
  "output_required": true,
@@ -9034,7 +9034,7 @@
9034
9034
  {
9035
9035
  "disabled": false,
9036
9036
  "document": "服务描述\n注意:此字段可能返回 null,表示取不到有效值。",
9037
- "example": "{}",
9037
+ "example": "",
9038
9038
  "member": "Service",
9039
9039
  "name": "Services",
9040
9040
  "output_required": true,
@@ -9054,7 +9054,7 @@
9054
9054
  {
9055
9055
  "disabled": false,
9056
9056
  "document": "服务组标签\n注意:此字段可能返回 null,表示取不到有效值。",
9057
- "example": "{}",
9057
+ "example": "",
9058
9058
  "member": "Tag",
9059
9059
  "name": "Tags",
9060
9060
  "output_required": true,
@@ -9130,6 +9130,26 @@
9130
9130
  "output_required": false,
9131
9131
  "type": "int",
9132
9132
  "value_allowed_null": true
9133
+ },
9134
+ {
9135
+ "disabled": false,
9136
+ "document": "服务组的subuin",
9137
+ "example": "999555555",
9138
+ "member": "string",
9139
+ "name": "SubUin",
9140
+ "output_required": false,
9141
+ "type": "string",
9142
+ "value_allowed_null": false
9143
+ },
9144
+ {
9145
+ "disabled": false,
9146
+ "document": "服务组的app_id",
9147
+ "example": "73598888",
9148
+ "member": "int64",
9149
+ "name": "AppId",
9150
+ "output_required": false,
9151
+ "type": "int",
9152
+ "value_allowed_null": false
9133
9153
  }
9134
9154
  ],
9135
9155
  "usage": "out"
@@ -9372,11 +9392,11 @@
9372
9392
  "disabled": false,
9373
9393
  "document": "定时停止的配置\n注意:此字段可能返回 null,表示取不到有效值。",
9374
9394
  "example": "无",
9375
- "member": "string",
9395
+ "member": "ScheduledAction",
9376
9396
  "name": "ScheduledAction",
9377
9397
  "output_required": false,
9378
9398
  "required": false,
9379
- "type": "string",
9399
+ "type": "object",
9380
9400
  "value_allowed_null": true
9381
9401
  },
9382
9402
  {
@@ -21112,7 +21112,7 @@
21112
21112
  {
21113
21113
  "disabled": false,
21114
21114
  "document": "命名空间",
21115
- "example": "test",
21115
+ "example": "default",
21116
21116
  "member": "string",
21117
21117
  "name": "Namespace",
21118
21118
  "output_required": true,
@@ -21122,7 +21122,7 @@
21122
21122
  {
21123
21123
  "disabled": false,
21124
21124
  "document": " Pod 名称",
21125
- "example": "test-0",
21125
+ "example": "nginx-7ddc9d6bf-9pkml",
21126
21126
  "member": "string",
21127
21127
  "name": "Name",
21128
21128
  "output_required": true,
@@ -17,6 +17,58 @@ from tencentcloud.trro.v20220325 import models as models_v20220325
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
+ def doModifyCallbackUrl(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ 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):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.TrroClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.ModifyCallbackUrlRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.ModifyCallbackUrl(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
20
72
  def doDescribeProjectInfo(args, parsed_globals):
21
73
  g_param = parse_global_arg(parsed_globals)
22
74
 
@@ -121,6 +173,58 @@ def doGetDevices(args, parsed_globals):
121
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
174
 
123
175
 
176
+ def doStopPublishLiveStream(args, parsed_globals):
177
+ g_param = parse_global_arg(parsed_globals)
178
+
179
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
180
+ cred = credential.CVMRoleCredential()
181
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
182
+ cred = credential.STSAssumeRoleCredential(
183
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
184
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
185
+ )
186
+ 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):
187
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
188
+ else:
189
+ cred = credential.Credential(
190
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
191
+ )
192
+ http_profile = HttpProfile(
193
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
194
+ reqMethod="POST",
195
+ endpoint=g_param[OptionsDefine.Endpoint],
196
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
197
+ )
198
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
199
+ if g_param[OptionsDefine.Language]:
200
+ profile.language = g_param[OptionsDefine.Language]
201
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
202
+ client = mod.TrroClient(cred, g_param[OptionsDefine.Region], profile)
203
+ client._sdkVersion += ("_CLI_" + __version__)
204
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
+ model = models.StopPublishLiveStreamRequest()
206
+ model.from_json_string(json.dumps(args))
207
+ start_time = time.time()
208
+ while True:
209
+ rsp = client.StopPublishLiveStream(model)
210
+ result = rsp.to_json_string()
211
+ try:
212
+ json_obj = json.loads(result)
213
+ except TypeError as e:
214
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
215
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
216
+ break
217
+ cur_time = time.time()
218
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
219
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
220
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
221
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
222
+ else:
223
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
224
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
225
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
+
227
+
124
228
  def doModifyDevice(args, parsed_globals):
125
229
  g_param = parse_global_arg(parsed_globals)
126
230
 
@@ -485,6 +589,58 @@ def doGetLicenses(args, parsed_globals):
485
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
590
 
487
591
 
592
+ def doStartPublishLiveStream(args, parsed_globals):
593
+ g_param = parse_global_arg(parsed_globals)
594
+
595
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
596
+ cred = credential.CVMRoleCredential()
597
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
598
+ cred = credential.STSAssumeRoleCredential(
599
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
600
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
601
+ )
602
+ 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):
603
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
604
+ else:
605
+ cred = credential.Credential(
606
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
607
+ )
608
+ http_profile = HttpProfile(
609
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
610
+ reqMethod="POST",
611
+ endpoint=g_param[OptionsDefine.Endpoint],
612
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
613
+ )
614
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
615
+ if g_param[OptionsDefine.Language]:
616
+ profile.language = g_param[OptionsDefine.Language]
617
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
618
+ client = mod.TrroClient(cred, g_param[OptionsDefine.Region], profile)
619
+ client._sdkVersion += ("_CLI_" + __version__)
620
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
+ model = models.StartPublishLiveStreamRequest()
622
+ model.from_json_string(json.dumps(args))
623
+ start_time = time.time()
624
+ while True:
625
+ rsp = client.StartPublishLiveStream(model)
626
+ result = rsp.to_json_string()
627
+ try:
628
+ json_obj = json.loads(result)
629
+ except TypeError as e:
630
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
631
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
632
+ break
633
+ cur_time = time.time()
634
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
635
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
636
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
637
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
638
+ else:
639
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
640
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
641
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
+
643
+
488
644
  def doDescribeDeviceList(args, parsed_globals):
489
645
  g_param = parse_global_arg(parsed_globals)
490
646
 
@@ -745,7 +901,7 @@ def doCreateDevice(args, parsed_globals):
745
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
902
 
747
903
 
748
- def doBatchDeleteDevices(args, parsed_globals):
904
+ def doCreateCloudRecording(args, parsed_globals):
749
905
  g_param = parse_global_arg(parsed_globals)
750
906
 
751
907
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -774,11 +930,11 @@ def doBatchDeleteDevices(args, parsed_globals):
774
930
  client = mod.TrroClient(cred, g_param[OptionsDefine.Region], profile)
775
931
  client._sdkVersion += ("_CLI_" + __version__)
776
932
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
- model = models.BatchDeleteDevicesRequest()
933
+ model = models.CreateCloudRecordingRequest()
778
934
  model.from_json_string(json.dumps(args))
779
935
  start_time = time.time()
780
936
  while True:
781
- rsp = client.BatchDeleteDevices(model)
937
+ rsp = client.CreateCloudRecording(model)
782
938
  result = rsp.to_json_string()
783
939
  try:
784
940
  json_obj = json.loads(result)
@@ -1005,6 +1161,58 @@ def doDescribeDeviceSessionList(args, parsed_globals):
1005
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1162
 
1007
1163
 
1164
+ def doDeleteCloudRecording(args, parsed_globals):
1165
+ g_param = parse_global_arg(parsed_globals)
1166
+
1167
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1168
+ cred = credential.CVMRoleCredential()
1169
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1170
+ cred = credential.STSAssumeRoleCredential(
1171
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1172
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1173
+ )
1174
+ 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):
1175
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1176
+ else:
1177
+ cred = credential.Credential(
1178
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1179
+ )
1180
+ http_profile = HttpProfile(
1181
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1182
+ reqMethod="POST",
1183
+ endpoint=g_param[OptionsDefine.Endpoint],
1184
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1185
+ )
1186
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1187
+ if g_param[OptionsDefine.Language]:
1188
+ profile.language = g_param[OptionsDefine.Language]
1189
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1190
+ client = mod.TrroClient(cred, g_param[OptionsDefine.Region], profile)
1191
+ client._sdkVersion += ("_CLI_" + __version__)
1192
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
+ model = models.DeleteCloudRecordingRequest()
1194
+ model.from_json_string(json.dumps(args))
1195
+ start_time = time.time()
1196
+ while True:
1197
+ rsp = client.DeleteCloudRecording(model)
1198
+ result = rsp.to_json_string()
1199
+ try:
1200
+ json_obj = json.loads(result)
1201
+ except TypeError as e:
1202
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1203
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1204
+ break
1205
+ cur_time = time.time()
1206
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1207
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1208
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1209
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1210
+ else:
1211
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1212
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1213
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
+
1215
+
1008
1216
  def doCreateProject(args, parsed_globals):
1009
1217
  g_param = parse_global_arg(parsed_globals)
1010
1218
 
@@ -1265,6 +1473,58 @@ def doDescribeProjectList(args, parsed_globals):
1265
1473
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1474
 
1267
1475
 
1476
+ def doBatchDeleteDevices(args, parsed_globals):
1477
+ g_param = parse_global_arg(parsed_globals)
1478
+
1479
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1480
+ cred = credential.CVMRoleCredential()
1481
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1482
+ cred = credential.STSAssumeRoleCredential(
1483
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1484
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1485
+ )
1486
+ 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):
1487
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1488
+ else:
1489
+ cred = credential.Credential(
1490
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1491
+ )
1492
+ http_profile = HttpProfile(
1493
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1494
+ reqMethod="POST",
1495
+ endpoint=g_param[OptionsDefine.Endpoint],
1496
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1497
+ )
1498
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1499
+ if g_param[OptionsDefine.Language]:
1500
+ profile.language = g_param[OptionsDefine.Language]
1501
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1502
+ client = mod.TrroClient(cred, g_param[OptionsDefine.Region], profile)
1503
+ client._sdkVersion += ("_CLI_" + __version__)
1504
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1505
+ model = models.BatchDeleteDevicesRequest()
1506
+ model.from_json_string(json.dumps(args))
1507
+ start_time = time.time()
1508
+ while True:
1509
+ rsp = client.BatchDeleteDevices(model)
1510
+ result = rsp.to_json_string()
1511
+ try:
1512
+ json_obj = json.loads(result)
1513
+ except TypeError as e:
1514
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1515
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1516
+ break
1517
+ cur_time = time.time()
1518
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1519
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1520
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1521
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1522
+ else:
1523
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1524
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1525
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
+
1527
+
1268
1528
  CLIENT_MAP = {
1269
1529
  "v20220325": trro_client_v20220325,
1270
1530
 
@@ -1276,8 +1536,10 @@ MODELS_MAP = {
1276
1536
  }
1277
1537
 
1278
1538
  ACTION_MAP = {
1539
+ "ModifyCallbackUrl": doModifyCallbackUrl,
1279
1540
  "DescribeProjectInfo": doDescribeProjectInfo,
1280
1541
  "GetDevices": doGetDevices,
1542
+ "StopPublishLiveStream": doStopPublishLiveStream,
1281
1543
  "ModifyDevice": doModifyDevice,
1282
1544
  "DescribeDeviceSessionDetails": doDescribeDeviceSessionDetails,
1283
1545
  "GetLicenseStat": doGetLicenseStat,
@@ -1285,21 +1547,24 @@ ACTION_MAP = {
1285
1547
  "BoundLicenses": doBoundLicenses,
1286
1548
  "BatchDeletePolicy": doBatchDeletePolicy,
1287
1549
  "GetLicenses": doGetLicenses,
1550
+ "StartPublishLiveStream": doStartPublishLiveStream,
1288
1551
  "DescribeDeviceList": doDescribeDeviceList,
1289
1552
  "ModifyProject": doModifyProject,
1290
1553
  "DescribePolicy": doDescribePolicy,
1291
1554
  "ModifyPolicy": doModifyPolicy,
1292
1555
  "CreateDevice": doCreateDevice,
1293
- "BatchDeleteDevices": doBatchDeleteDevices,
1556
+ "CreateCloudRecording": doCreateCloudRecording,
1294
1557
  "DescribeSessionStatistics": doDescribeSessionStatistics,
1295
1558
  "DescribeDeviceInfo": doDescribeDeviceInfo,
1296
1559
  "ModifyProjectSecMode": doModifyProjectSecMode,
1297
1560
  "DescribeDeviceSessionList": doDescribeDeviceSessionList,
1561
+ "DeleteCloudRecording": doDeleteCloudRecording,
1298
1562
  "CreateProject": doCreateProject,
1299
1563
  "DescribeRecentSessionList": doDescribeRecentSessionList,
1300
1564
  "GetDeviceLicense": doGetDeviceLicense,
1301
1565
  "DeleteProject": doDeleteProject,
1302
1566
  "DescribeProjectList": doDescribeProjectList,
1567
+ "BatchDeleteDevices": doBatchDeleteDevices,
1303
1568
 
1304
1569
  }
1305
1570