tccli 3.0.1223.1__py2.py3-none-any.whl → 3.0.1225.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/apigateway/apigateway_client.py +136 -30
- tccli/services/apigateway/v20180808/api.json +183 -0
- tccli/services/apigateway/v20180808/examples.json +16 -0
- tccli/services/autoscaling/v20180419/api.json +15 -4
- tccli/services/batch/v20170312/api.json +33 -11
- tccli/services/bi/bi_client.py +106 -0
- tccli/services/bi/v20220105/api.json +355 -0
- tccli/services/bi/v20220105/examples.json +16 -0
- tccli/services/billing/v20180709/api.json +274 -193
- tccli/services/billing/v20180709/examples.json +4 -4
- tccli/services/bpaas/v20181217/api.json +71 -46
- tccli/services/bpaas/v20181217/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +99 -78
- tccli/services/cam/v20190116/examples.json +10 -10
- tccli/services/cbs/v20170312/api.json +1 -1
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudhsm/v20191112/api.json +324 -320
- tccli/services/cloudhsm/v20191112/examples.json +16 -16
- tccli/services/cls/v20201016/api.json +2 -2
- tccli/services/config/config_client.py +106 -0
- tccli/services/config/v20220802/api.json +364 -0
- tccli/services/config/v20220802/examples.json +16 -0
- tccli/services/cvm/v20170312/api.json +33 -11
- tccli/services/cwp/v20180228/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +4 -4
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/ess/v20201111/examples.json +2 -2
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/iotexplorer/v20190423/api.json +11 -11
- tccli/services/ivld/v20210903/api.json +3 -3
- tccli/services/lcic/lcic_client.py +110 -4
- tccli/services/lcic/v20220817/api.json +297 -2
- tccli/services/lcic/v20220817/examples.json +16 -0
- tccli/services/live/live_client.py +460 -36
- tccli/services/live/v20180801/api.json +594 -4
- tccli/services/live/v20180801/examples.json +64 -0
- tccli/services/lke/v20231130/api.json +1 -1
- tccli/services/mps/v20190612/api.json +1 -1
- tccli/services/mrs/v20200910/api.json +4217 -4211
- tccli/services/mrs/v20200910/examples.json +14 -14
- tccli/services/ocr/ocr_client.py +310 -734
- tccli/services/ocr/v20181119/api.json +133 -1344
- tccli/services/ocr/v20181119/examples.json +0 -64
- tccli/services/organization/v20181225/api.json +43 -43
- tccli/services/organization/v20181225/examples.json +2 -2
- tccli/services/organization/v20210331/api.json +516 -508
- tccli/services/organization/v20210331/examples.json +26 -26
- tccli/services/teo/teo_client.py +159 -0
- tccli/services/teo/v20220901/api.json +199 -0
- tccli/services/teo/v20220901/examples.json +36 -0
- tccli/services/trtc/trtc_client.py +126 -20
- tccli/services/trtc/v20190722/api.json +138 -14
- tccli/services/trtc/v20190722/examples.json +16 -0
- tccli/services/vpc/v20170312/api.json +1 -1
- {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/RECORD +65 -65
- {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/license_files/LICENSE +0 -0
@@ -588,6 +588,13 @@
|
|
588
588
|
"output": "DescribeTopL7CacheDataResponse",
|
589
589
|
"status": "online"
|
590
590
|
},
|
591
|
+
"DescribeZoneConfigImportResult": {
|
592
|
+
"document": "查询站点配置项导入结果接口,本接口用于站点配置导入接口(ImportZoneConfig)的结果查询。该功能仅支持标准版或企业版套餐的站点使用。",
|
593
|
+
"input": "DescribeZoneConfigImportResultRequest",
|
594
|
+
"name": "查询站点配置导入结果",
|
595
|
+
"output": "DescribeZoneConfigImportResultResponse",
|
596
|
+
"status": "online"
|
597
|
+
},
|
591
598
|
"DescribeZoneSetting": {
|
592
599
|
"document": "用于查询站点的所有配置信息。",
|
593
600
|
"input": "DescribeZoneSettingRequest",
|
@@ -623,6 +630,13 @@
|
|
623
630
|
"output": "DownloadL7LogsResponse",
|
624
631
|
"status": "online"
|
625
632
|
},
|
633
|
+
"ExportZoneConfig": {
|
634
|
+
"document": "导出站点配置接口,本接口支持用户根据需要的配置项进行配置导出,导出的配置用于导入站点配置接口(ImportZoneConfig)进行配置导入。该功能仅支持标准版和企业版套餐站点使用。",
|
635
|
+
"input": "ExportZoneConfigRequest",
|
636
|
+
"name": "导出站点配置",
|
637
|
+
"output": "ExportZoneConfigResponse",
|
638
|
+
"status": "online"
|
639
|
+
},
|
626
640
|
"HandleFunctionRuntimeEnvironment": {
|
627
641
|
"document": "操作边缘函数运行环境,支持环境变量的相关设置。\n设置环境变量后,可在函数代码中使用,具体参考 [边缘函数引入环境变量](https://cloud.tencent.com/document/product/1552/109151#0151fd9a-8b0e-407b-ae37-54553a60ded6)。",
|
628
642
|
"input": "HandleFunctionRuntimeEnvironmentRequest",
|
@@ -637,6 +651,13 @@
|
|
637
651
|
"output": "IdentifyZoneResponse",
|
638
652
|
"status": "online"
|
639
653
|
},
|
654
|
+
"ImportZoneConfig": {
|
655
|
+
"document": "导入站点配置接口,本接口支持站点配置文件的快速导入,发起导入后接口会返回对应的任务 ID(TaskId),用户需通过查询站点配置导入结果接口(DescribeZoneConfigImportResult)获取本次导入任务执行的结果。该功能仅支持标准版和企业版套餐站点使用。",
|
656
|
+
"input": "ImportZoneConfigRequest",
|
657
|
+
"name": "导入站点配置",
|
658
|
+
"output": "ImportZoneConfigResponse",
|
659
|
+
"status": "online"
|
660
|
+
},
|
640
661
|
"IncreasePlanQuota": {
|
641
662
|
"document": "当您的套餐绑定的站点数,或配置的 Web 防护 - 自定义规则 - 精准匹配策略的规则数,或 Web 防护 - 速率限制 - 精准速率限制模块的规则数达到套餐允许的配额上限,可以通过该接口增购对应配额。\n> 该接口该仅支持企业版套餐。",
|
642
663
|
"input": "IncreasePlanQuotaRequest",
|
@@ -9419,6 +9440,92 @@
|
|
9419
9440
|
],
|
9420
9441
|
"type": "object"
|
9421
9442
|
},
|
9443
|
+
"DescribeZoneConfigImportResultRequest": {
|
9444
|
+
"document": "DescribeZoneConfigImportResult请求参数结构体",
|
9445
|
+
"members": [
|
9446
|
+
{
|
9447
|
+
"disabled": false,
|
9448
|
+
"document": "站点 ID。",
|
9449
|
+
"example": "zone-2zpqp7qztest",
|
9450
|
+
"member": "string",
|
9451
|
+
"name": "ZoneId",
|
9452
|
+
"required": true,
|
9453
|
+
"type": "string"
|
9454
|
+
},
|
9455
|
+
{
|
9456
|
+
"disabled": false,
|
9457
|
+
"document": "表示需要查询结果的导入配置任务 Id,导入任务 Id 仅支持查询最近 7 天的导入任务。",
|
9458
|
+
"example": "33mz68e4gwka",
|
9459
|
+
"member": "string",
|
9460
|
+
"name": "TaskId",
|
9461
|
+
"required": true,
|
9462
|
+
"type": "string"
|
9463
|
+
}
|
9464
|
+
],
|
9465
|
+
"type": "object"
|
9466
|
+
},
|
9467
|
+
"DescribeZoneConfigImportResultResponse": {
|
9468
|
+
"document": "DescribeZoneConfigImportResult返回参数结构体",
|
9469
|
+
"members": [
|
9470
|
+
{
|
9471
|
+
"disabled": false,
|
9472
|
+
"document": "本次导入任务的导入状态。取值有: <li>success:表示配置项导入成功;</li> <li>failure:表示配置项导入失败;</li> <li>doing:表示配置项正在导入中。</li>",
|
9473
|
+
"example": "success",
|
9474
|
+
"member": "string",
|
9475
|
+
"name": "Status",
|
9476
|
+
"output_required": false,
|
9477
|
+
"type": "string",
|
9478
|
+
"value_allowed_null": false
|
9479
|
+
},
|
9480
|
+
{
|
9481
|
+
"disabled": false,
|
9482
|
+
"document": "本次导入任务的状态的提示信息。当配置项导入失败时,可通过本字段查看失败原因。",
|
9483
|
+
"example": "success",
|
9484
|
+
"member": "string",
|
9485
|
+
"name": "Message",
|
9486
|
+
"output_required": false,
|
9487
|
+
"type": "string",
|
9488
|
+
"value_allowed_null": false
|
9489
|
+
},
|
9490
|
+
{
|
9491
|
+
"disabled": false,
|
9492
|
+
"document": "本次导入任务的配置内容。",
|
9493
|
+
"example": "{ \"L7AccelerationConfig\": { \"FormatVersion\": \"1.0\", \"ZoneConfig\": { \"SmartRouting\": { \"Switch\": \"off\" }, \"Cache\": { \"NoCache\": { \"Switch\": \"on\" }, \"FollowOrigin\": { \"Switch\": \"off\", \"DefaultCache\": \"on\", \"DefaultCacheStrategy\": \"on\", \"DefaultCacheTime\": 0 }, \"CustomTime\": { \"Switch\": \"off\", \"CacheTime\": 2592000 } }, \"MaxAge\": { \"FollowOrigin\": \"on\", \"CacheTime\": 600 }, \"CacheKey\": { \"FullURLCache\": \"on\", \"QueryString\": { \"Switch\": \"off\", \"Action\": \"includeCustom\" }, \"IgnoreCase\": \"off\" }, \"CachePrefresh\": { \"Switch\": \"off\", \"CacheTimePercent\": 90 }, \"OfflineCache\": { \"Switch\": \"on\" }, \"Compression\": { \"Switch\": \"on\", \"Algorithms\": [ \"brotli\", \"gzip\" ] }, \"ForceRedirectHTTPS\": { \"Switch\": \"off\", \"RedirectStatusCode\": 302 }, \"HSTS\": { \"Switch\": \"off\", \"Timeout\": 0, \"IncludeSubDomains\": \"off\", \"Preload\": \"off\" }, \"TLSConfig\": { \"Version\": [ \"TLSv1\", \"TLSv1.1\", \"TLSv1.2\", \"TLSv1.3\" ], \"CipherSuite\": \"loose-v2023\" }, \"OCSPStapling\": { \"Switch\": \"off\" }, \"HTTP2\": { \"Switch\": \"off\" }, \"QUIC\": { \"Switch\": \"off\" }, \"UpstreamHTTP2\": { \"Switch\": \"off\" }, \"IPv6\": { \"Switch\": \"off\" }, \"WebSocket\": { \"Switch\": \"off\", \"Timeout\": 30 }, \"PostMaxSize\": { \"Switch\": \"on\", \"MaxSize\": 838860800 }, \"ClientIPHeader\": { \"Switch\": \"off\" }, \"ClientIPCountry\": { \"Switch\": \"off\" }, \"gRPC\": { \"Switch\": \"off\" }, \"AccelerateMainland\": { \"Switch\": \"off\" }, \"StandardDebug\": { \"Switch\": \"off\" } }, \"Rules\": [] } }",
|
9494
|
+
"member": "string",
|
9495
|
+
"name": "Content",
|
9496
|
+
"output_required": false,
|
9497
|
+
"type": "string",
|
9498
|
+
"value_allowed_null": false
|
9499
|
+
},
|
9500
|
+
{
|
9501
|
+
"disabled": false,
|
9502
|
+
"document": "本次导入任务的开始时间。",
|
9503
|
+
"example": "2024-10-17 20:12:02",
|
9504
|
+
"member": "datetime_iso",
|
9505
|
+
"name": "ImportTime",
|
9506
|
+
"output_required": false,
|
9507
|
+
"type": "string",
|
9508
|
+
"value_allowed_null": false
|
9509
|
+
},
|
9510
|
+
{
|
9511
|
+
"disabled": false,
|
9512
|
+
"document": "本次导入任务的结束时间。",
|
9513
|
+
"example": "2024-10-17 20:14:30",
|
9514
|
+
"member": "datetime_iso",
|
9515
|
+
"name": "FinishTime",
|
9516
|
+
"output_required": false,
|
9517
|
+
"type": "string",
|
9518
|
+
"value_allowed_null": false
|
9519
|
+
},
|
9520
|
+
{
|
9521
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
9522
|
+
"member": "string",
|
9523
|
+
"name": "RequestId",
|
9524
|
+
"type": "string"
|
9525
|
+
}
|
9526
|
+
],
|
9527
|
+
"type": "object"
|
9528
|
+
},
|
9422
9529
|
"DescribeZoneSettingRequest": {
|
9423
9530
|
"document": "DescribeZoneSetting请求参数结构体",
|
9424
9531
|
"members": [
|
@@ -10497,6 +10604,52 @@
|
|
10497
10604
|
],
|
10498
10605
|
"usage": "both"
|
10499
10606
|
},
|
10607
|
+
"ExportZoneConfigRequest": {
|
10608
|
+
"document": "ExportZoneConfig请求参数结构体",
|
10609
|
+
"members": [
|
10610
|
+
{
|
10611
|
+
"disabled": false,
|
10612
|
+
"document": "站点 ID。",
|
10613
|
+
"example": "zone-2zpqp7qztest",
|
10614
|
+
"member": "string",
|
10615
|
+
"name": "ZoneId",
|
10616
|
+
"required": true,
|
10617
|
+
"type": "string"
|
10618
|
+
},
|
10619
|
+
{
|
10620
|
+
"disabled": false,
|
10621
|
+
"document": "导出配置项的类型列表,不填表示导出所有类型的配置,当前支持的取值有:<li>L7AccelerationConfig:表示导出七层加速配置,对应控制台「站点加速-全局加速配置」和「站点加速-规则引擎」。</li>\n需注意:后续支持导出的类型会随着迭代增加,导出所有类型时需要注意导出文件大小,建议使用时指定需要导出的配置类型,以便控制请求响应包负载大小。",
|
10622
|
+
"example": "L7AccelerationConfig",
|
10623
|
+
"member": "string",
|
10624
|
+
"name": "Types",
|
10625
|
+
"required": false,
|
10626
|
+
"type": "list"
|
10627
|
+
}
|
10628
|
+
],
|
10629
|
+
"type": "object"
|
10630
|
+
},
|
10631
|
+
"ExportZoneConfigResponse": {
|
10632
|
+
"document": "ExportZoneConfig返回参数结构体",
|
10633
|
+
"members": [
|
10634
|
+
{
|
10635
|
+
"disabled": false,
|
10636
|
+
"document": "导出的配置的具体内容。以 JSON 格式返回,按照 UTF-8 方式进行编码。配置内容可参考下方示例。",
|
10637
|
+
"example": "无",
|
10638
|
+
"member": "string",
|
10639
|
+
"name": "Content",
|
10640
|
+
"output_required": false,
|
10641
|
+
"type": "string",
|
10642
|
+
"value_allowed_null": false
|
10643
|
+
},
|
10644
|
+
{
|
10645
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
10646
|
+
"member": "string",
|
10647
|
+
"name": "RequestId",
|
10648
|
+
"type": "string"
|
10649
|
+
}
|
10650
|
+
],
|
10651
|
+
"type": "object"
|
10652
|
+
},
|
10500
10653
|
"FailReason": {
|
10501
10654
|
"document": "失败原因",
|
10502
10655
|
"members": [
|
@@ -11536,6 +11689,52 @@
|
|
11536
11689
|
],
|
11537
11690
|
"usage": "both"
|
11538
11691
|
},
|
11692
|
+
"ImportZoneConfigRequest": {
|
11693
|
+
"document": "ImportZoneConfig请求参数结构体",
|
11694
|
+
"members": [
|
11695
|
+
{
|
11696
|
+
"disabled": false,
|
11697
|
+
"document": "站点 ID。",
|
11698
|
+
"example": "zone-2zpqp7qztest",
|
11699
|
+
"member": "string",
|
11700
|
+
"name": "ZoneId",
|
11701
|
+
"required": true,
|
11702
|
+
"type": "string"
|
11703
|
+
},
|
11704
|
+
{
|
11705
|
+
"disabled": false,
|
11706
|
+
"document": "待导入的配置内容。要求采用 JSON 格式,按照 UTF-8 方式进行编码。配置内容可通过站点配置导出接口(ExportZoneConfig)获取。您可以单独导入「站点加速-全局加速配置」或「站点加速-规则引擎」,传入对应的字段即可,详情可以参考下方示例。",
|
11707
|
+
"example": "无",
|
11708
|
+
"member": "string",
|
11709
|
+
"name": "Content",
|
11710
|
+
"required": true,
|
11711
|
+
"type": "string"
|
11712
|
+
}
|
11713
|
+
],
|
11714
|
+
"type": "object"
|
11715
|
+
},
|
11716
|
+
"ImportZoneConfigResponse": {
|
11717
|
+
"document": "ImportZoneConfig返回参数结构体",
|
11718
|
+
"members": [
|
11719
|
+
{
|
11720
|
+
"disabled": false,
|
11721
|
+
"document": "表示该次导入配置的任务 Id,通过查询站点配置导入结果接口(DescribeZoneConfigImportResult)获取本次导入任务执行的结果。注意:导入任务 Id 仅支持查询最近 7 天的导入任务。",
|
11722
|
+
"example": "33mz68e4gwka",
|
11723
|
+
"member": "string",
|
11724
|
+
"name": "TaskId",
|
11725
|
+
"output_required": false,
|
11726
|
+
"type": "string",
|
11727
|
+
"value_allowed_null": false
|
11728
|
+
},
|
11729
|
+
{
|
11730
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11731
|
+
"member": "string",
|
11732
|
+
"name": "RequestId",
|
11733
|
+
"type": "string"
|
11734
|
+
}
|
11735
|
+
],
|
11736
|
+
"type": "object"
|
11737
|
+
},
|
11539
11738
|
"IncreasePlanQuotaRequest": {
|
11540
11739
|
"document": "IncreasePlanQuota请求参数结构体",
|
11541
11740
|
"members": [
|
@@ -846,6 +846,14 @@
|
|
846
846
|
"title": "查询指定状态码的top流量数据"
|
847
847
|
}
|
848
848
|
],
|
849
|
+
"DescribeZoneConfigImportResult": [
|
850
|
+
{
|
851
|
+
"document": "查询站点 zone-21xfqlh4qjee 下七层加速配置项的导入结果。",
|
852
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZoneConfigImportResult\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\",\n \"TaskId\": \"33mz68e4gwka\"\n}",
|
853
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"88215c08-67de-4c7d-974e-a14461816f5b\",\n \"Status\": \"success\",\n \"Message\": \"success\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}, \\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches \\\".*\\\"\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".jpg\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".png\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\",\n \"ImportTime\": \"2024-10-13T23:58:00+08:00\",\n \"FinishTime\": \"2024-10-13T23:59:00+08:00\"\n }\n}",
|
854
|
+
"title": "查询配置导入结果"
|
855
|
+
}
|
856
|
+
],
|
849
857
|
"DescribeZoneSetting": [
|
850
858
|
{
|
851
859
|
"document": "",
|
@@ -886,6 +894,14 @@
|
|
886
894
|
"title": "下载七层离线日志"
|
887
895
|
}
|
888
896
|
],
|
897
|
+
"ExportZoneConfig": [
|
898
|
+
{
|
899
|
+
"document": "导出站点 zone-21xfqlh5qjee 下的七层加速配置。",
|
900
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportZoneConfig\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh5qjee\",\n \"Types\": [\n \"L7AccelerationConfig\"\n ]\n}",
|
901
|
+
"output": "{\n \"Response\": {\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}, \\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches '.*'\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in ['.jpg']\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in ['.png']\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
|
902
|
+
"title": "导出站点配置"
|
903
|
+
}
|
904
|
+
],
|
889
905
|
"HandleFunctionRuntimeEnvironment": [
|
890
906
|
{
|
891
907
|
"document": "添加指定的环境变量列表到函数运行环境中。",
|
@@ -920,6 +936,26 @@
|
|
920
936
|
"title": "认证站点"
|
921
937
|
}
|
922
938
|
],
|
939
|
+
"ImportZoneConfig": [
|
940
|
+
{
|
941
|
+
"document": "导入站点 zone-m2kplohsdc4b 下的七层加速配置。",
|
942
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportZoneConfig \n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-m2kplohsdc4b\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}, \\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches \\\".*\\\"\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".jpg\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".png\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\"\n}",
|
943
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"33mz68e4gwka\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
|
944
|
+
"title": "导入站点七层加速配置"
|
945
|
+
},
|
946
|
+
{
|
947
|
+
"document": "单独导入站点 zone-m2kplohsdc4b 下七层加速配置的全局加速配置。",
|
948
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportZoneConfig \n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-m2kplohsdc4b\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}\"\n}",
|
949
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"33mz68e4gwka\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
|
950
|
+
"title": "导入站点七层加速配置的站点加速配置"
|
951
|
+
},
|
952
|
+
{
|
953
|
+
"document": "单独导入站点 zone-m2kplohsdc4b 下七层加速配置的规则引擎配置。",
|
954
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportZoneConfig \n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-m2kplohsdc4b\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches \\\".*\\\"\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".jpg\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".png\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\"\n}",
|
955
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"33mz68e4gwka\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
|
956
|
+
"title": "导入站点七层加速配置的规则引擎配置"
|
957
|
+
}
|
958
|
+
],
|
923
959
|
"IncreasePlanQuota": [
|
924
960
|
{
|
925
961
|
"document": "为套餐 edgeone-2unuvzjmmn2q 增购 10 个站点数配额。",
|
@@ -17,7 +17,7 @@ from tencentcloud.trtc.v20190722 import models as models_v20190722
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
-
def
|
20
|
+
def doDescribeRoomInfo(args, parsed_globals):
|
21
21
|
g_param = parse_global_arg(parsed_globals)
|
22
22
|
|
23
23
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -46,11 +46,11 @@ def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
|
|
46
46
|
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
47
47
|
client._sdkVersion += ("_CLI_" + __version__)
|
48
48
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
-
model = models.
|
49
|
+
model = models.DescribeRoomInfoRequest()
|
50
50
|
model.from_json_string(json.dumps(args))
|
51
51
|
start_time = time.time()
|
52
52
|
while True:
|
53
|
-
rsp = client.
|
53
|
+
rsp = client.DescribeRoomInfo(model)
|
54
54
|
result = rsp.to_json_string()
|
55
55
|
try:
|
56
56
|
json_obj = json.loads(result)
|
@@ -69,7 +69,7 @@ def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
-
def
|
72
|
+
def doStopAITranscription(args, parsed_globals):
|
73
73
|
g_param = parse_global_arg(parsed_globals)
|
74
74
|
|
75
75
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -98,11 +98,11 @@ def doDescribeRoomInfo(args, parsed_globals):
|
|
98
98
|
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
99
99
|
client._sdkVersion += ("_CLI_" + __version__)
|
100
100
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
-
model = models.
|
101
|
+
model = models.StopAITranscriptionRequest()
|
102
102
|
model.from_json_string(json.dumps(args))
|
103
103
|
start_time = time.time()
|
104
104
|
while True:
|
105
|
-
rsp = client.
|
105
|
+
rsp = client.StopAITranscription(model)
|
106
106
|
result = rsp.to_json_string()
|
107
107
|
try:
|
108
108
|
json_obj = json.loads(result)
|
@@ -121,7 +121,7 @@ def doDescribeRoomInfo(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
-
def
|
124
|
+
def doUpdateAIConversation(args, parsed_globals):
|
125
125
|
g_param = parse_global_arg(parsed_globals)
|
126
126
|
|
127
127
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -150,11 +150,11 @@ def doStopAITranscription(args, parsed_globals):
|
|
150
150
|
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
151
151
|
client._sdkVersion += ("_CLI_" + __version__)
|
152
152
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
-
model = models.
|
153
|
+
model = models.UpdateAIConversationRequest()
|
154
154
|
model.from_json_string(json.dumps(args))
|
155
155
|
start_time = time.time()
|
156
156
|
while True:
|
157
|
-
rsp = client.
|
157
|
+
rsp = client.UpdateAIConversation(model)
|
158
158
|
result = rsp.to_json_string()
|
159
159
|
try:
|
160
160
|
json_obj = json.loads(result)
|
@@ -173,7 +173,7 @@ def doStopAITranscription(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
-
def
|
176
|
+
def doDescribeTrtcUsage(args, parsed_globals):
|
177
177
|
g_param = parse_global_arg(parsed_globals)
|
178
178
|
|
179
179
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -202,11 +202,11 @@ def doUpdateAIConversation(args, parsed_globals):
|
|
202
202
|
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
203
203
|
client._sdkVersion += ("_CLI_" + __version__)
|
204
204
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
-
model = models.
|
205
|
+
model = models.DescribeTrtcUsageRequest()
|
206
206
|
model.from_json_string(json.dumps(args))
|
207
207
|
start_time = time.time()
|
208
208
|
while True:
|
209
|
-
rsp = client.
|
209
|
+
rsp = client.DescribeTrtcUsage(model)
|
210
210
|
result = rsp.to_json_string()
|
211
211
|
try:
|
212
212
|
json_obj = json.loads(result)
|
@@ -225,7 +225,7 @@ def doUpdateAIConversation(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
-
def
|
228
|
+
def doCreateBasicModeration(args, parsed_globals):
|
229
229
|
g_param = parse_global_arg(parsed_globals)
|
230
230
|
|
231
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -254,11 +254,11 @@ def doDescribeTrtcUsage(args, parsed_globals):
|
|
254
254
|
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
255
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
256
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
-
model = models.
|
257
|
+
model = models.CreateBasicModerationRequest()
|
258
258
|
model.from_json_string(json.dumps(args))
|
259
259
|
start_time = time.time()
|
260
260
|
while True:
|
261
|
-
rsp = client.
|
261
|
+
rsp = client.CreateBasicModeration(model)
|
262
262
|
result = rsp.to_json_string()
|
263
263
|
try:
|
264
264
|
json_obj = json.loads(result)
|
@@ -589,7 +589,7 @@ def doDescribeStreamIngest(args, parsed_globals):
|
|
589
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
590
|
|
591
591
|
|
592
|
-
def
|
592
|
+
def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
|
593
593
|
g_param = parse_global_arg(parsed_globals)
|
594
594
|
|
595
595
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -618,11 +618,11 @@ def doStopMCUMixTranscode(args, parsed_globals):
|
|
618
618
|
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
619
619
|
client._sdkVersion += ("_CLI_" + __version__)
|
620
620
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
621
|
-
model = models.
|
621
|
+
model = models.DescribeTRTCMarketScaleMetricDataRequest()
|
622
622
|
model.from_json_string(json.dumps(args))
|
623
623
|
start_time = time.time()
|
624
624
|
while True:
|
625
|
-
rsp = client.
|
625
|
+
rsp = client.DescribeTRTCMarketScaleMetricData(model)
|
626
626
|
result = rsp.to_json_string()
|
627
627
|
try:
|
628
628
|
json_obj = json.loads(result)
|
@@ -1161,6 +1161,58 @@ def doRemoveUser(args, parsed_globals):
|
|
1161
1161
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1162
1162
|
|
1163
1163
|
|
1164
|
+
def doDeleteBasicModeration(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.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
1191
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1192
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1193
|
+
model = models.DeleteBasicModerationRequest()
|
1194
|
+
model.from_json_string(json.dumps(args))
|
1195
|
+
start_time = time.time()
|
1196
|
+
while True:
|
1197
|
+
rsp = client.DeleteBasicModeration(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
|
+
|
1164
1216
|
def doModifyCloudRecording(args, parsed_globals):
|
1165
1217
|
g_param = parse_global_arg(parsed_globals)
|
1166
1218
|
|
@@ -2877,6 +2929,58 @@ def doDescribeTRTCRealTimeScaleMetricData(args, parsed_globals):
|
|
2877
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2930
|
|
2879
2931
|
|
2932
|
+
def doStopMCUMixTranscode(args, parsed_globals):
|
2933
|
+
g_param = parse_global_arg(parsed_globals)
|
2934
|
+
|
2935
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2936
|
+
cred = credential.CVMRoleCredential()
|
2937
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2938
|
+
cred = credential.STSAssumeRoleCredential(
|
2939
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2940
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2941
|
+
)
|
2942
|
+
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):
|
2943
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2944
|
+
else:
|
2945
|
+
cred = credential.Credential(
|
2946
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2947
|
+
)
|
2948
|
+
http_profile = HttpProfile(
|
2949
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2950
|
+
reqMethod="POST",
|
2951
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2952
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2953
|
+
)
|
2954
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2955
|
+
if g_param[OptionsDefine.Language]:
|
2956
|
+
profile.language = g_param[OptionsDefine.Language]
|
2957
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2958
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2960
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
+
model = models.StopMCUMixTranscodeRequest()
|
2962
|
+
model.from_json_string(json.dumps(args))
|
2963
|
+
start_time = time.time()
|
2964
|
+
while True:
|
2965
|
+
rsp = client.StopMCUMixTranscode(model)
|
2966
|
+
result = rsp.to_json_string()
|
2967
|
+
try:
|
2968
|
+
json_obj = json.loads(result)
|
2969
|
+
except TypeError as e:
|
2970
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2971
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2972
|
+
break
|
2973
|
+
cur_time = time.time()
|
2974
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2975
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2976
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2977
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2978
|
+
else:
|
2979
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2980
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2981
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
|
+
|
2983
|
+
|
2880
2984
|
CLIENT_MAP = {
|
2881
2985
|
"v20190722": trtc_client_v20190722,
|
2882
2986
|
|
@@ -2888,18 +2992,18 @@ MODELS_MAP = {
|
|
2888
2992
|
}
|
2889
2993
|
|
2890
2994
|
ACTION_MAP = {
|
2891
|
-
"DescribeTRTCMarketScaleMetricData": doDescribeTRTCMarketScaleMetricData,
|
2892
2995
|
"DescribeRoomInfo": doDescribeRoomInfo,
|
2893
2996
|
"StopAITranscription": doStopAITranscription,
|
2894
2997
|
"UpdateAIConversation": doUpdateAIConversation,
|
2895
2998
|
"DescribeTrtcUsage": doDescribeTrtcUsage,
|
2999
|
+
"CreateBasicModeration": doCreateBasicModeration,
|
2896
3000
|
"StopAIConversation": doStopAIConversation,
|
2897
3001
|
"DescribeTRTCMarketQualityMetricData": doDescribeTRTCMarketQualityMetricData,
|
2898
3002
|
"DeleteCloudRecording": doDeleteCloudRecording,
|
2899
3003
|
"StartPublishCdnStream": doStartPublishCdnStream,
|
2900
3004
|
"DescribeCallDetailInfo": doDescribeCallDetailInfo,
|
2901
3005
|
"DescribeStreamIngest": doDescribeStreamIngest,
|
2902
|
-
"
|
3006
|
+
"DescribeTRTCMarketScaleMetricData": doDescribeTRTCMarketScaleMetricData,
|
2903
3007
|
"StartAIConversation": doStartAIConversation,
|
2904
3008
|
"DescribeAIConversation": doDescribeAIConversation,
|
2905
3009
|
"DescribeRecordingUsage": doDescribeRecordingUsage,
|
@@ -2910,6 +3014,7 @@ ACTION_MAP = {
|
|
2910
3014
|
"CreatePicture": doCreatePicture,
|
2911
3015
|
"DescribeTRTCRealTimeScaleData": doDescribeTRTCRealTimeScaleData,
|
2912
3016
|
"RemoveUser": doRemoveUser,
|
3017
|
+
"DeleteBasicModeration": doDeleteBasicModeration,
|
2913
3018
|
"ModifyCloudRecording": doModifyCloudRecording,
|
2914
3019
|
"DescribeUserEvent": doDescribeUserEvent,
|
2915
3020
|
"StartWebRecord": doStartWebRecord,
|
@@ -2943,6 +3048,7 @@ ACTION_MAP = {
|
|
2943
3048
|
"StopPublishCdnStream": doStopPublishCdnStream,
|
2944
3049
|
"DescribeUnusualEvent": doDescribeUnusualEvent,
|
2945
3050
|
"DescribeTRTCRealTimeScaleMetricData": doDescribeTRTCRealTimeScaleMetricData,
|
3051
|
+
"StopMCUMixTranscode": doStopMCUMixTranscode,
|
2946
3052
|
|
2947
3053
|
}
|
2948
3054
|
|