tccli 3.0.1064.1__py2.py3-none-any.whl → 3.0.1067.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/examples/ccc/v20200210/AbortPredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/CreatePredictiveDialingCampaign.md +33 -0
- tccli/examples/ccc/v20200210/DeletePredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaign.md +32 -0
- tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaigns.md +55 -0
- tccli/examples/ccc/v20200210/DescribePredictiveDialingSessions.md +29 -0
- tccli/examples/ccc/v20200210/PausePredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/ResumePredictiveDialingCampaign.md +21 -0
- tccli/examples/ccc/v20200210/UpdatePredictiveDialingCampaign.md +33 -0
- tccli/examples/cfw/v20190904/CreateBlockIgnoreRuleNew.md +25 -0
- tccli/examples/cfw/v20190904/DeleteBlockIgnoreRuleNew.md +23 -0
- tccli/examples/cfw/v20190904/ModifyBlockIgnoreRuleNew.md +24 -0
- tccli/examples/cls/v20201016/DescribeConfigMachineGroups.md +1 -0
- tccli/examples/cls/v20201016/DescribeMachineGroups.md +1 -0
- tccli/examples/csip/v20221121/DescribeTopAttackInfo.md +26 -0
- tccli/examples/ecm/v20190719/ModifyPrivateIpAddressesAttribute.md +1 -1
- tccli/examples/mna/v20210119/AddDevice.md +1 -1
- tccli/examples/mna/v20210119/GetMultiFlowStatistic.md +7 -1
- tccli/examples/mna/v20210119/GetNetMonitor.md +7 -49
- tccli/examples/mna/v20210119/GetStatisticData.md +5 -3
- tccli/examples/omics/v20221128/CreateVolume.md +25 -0
- tccli/examples/omics/v20221128/DeleteVolume.md +20 -0
- tccli/examples/omics/v20221128/DeleteVolumeData.md +21 -0
- tccli/examples/omics/v20221128/DescribeVolumes.md +37 -0
- tccli/examples/omics/v20221128/ModifyVolume.md +21 -0
- tccli/examples/postgres/v20170312/ModifyDBInstanceSpec.md +1 -0
- tccli/examples/tse/v20201207/CreateGovernanceInstances.md +32 -0
- tccli/examples/tse/v20201207/DeleteGovernanceInstances.md +35 -0
- tccli/examples/tse/v20201207/DescribeGovernanceInstances.md +56 -0
- tccli/examples/tse/v20201207/ModifyGovernanceInstances.md +35 -0
- tccli/examples/vod/v20180717/CreateDomainVerifyRecord.md +3 -1
- tccli/examples/vod/v20180717/DescribeDefaultDistributionConfig.md +22 -0
- tccli/examples/vod/v20180717/ModifyDefaultDistributionConfig.md +21 -0
- tccli/examples/waf/v20180125/CreateDeals.md +42 -0
- tccli/examples/wedata/v20210820/BatchStartIntegrationTasks.md +10 -7
- tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +37 -6
- tccli/services/ccc/ccc_client.py +493 -16
- tccli/services/ccc/v20200210/api.json +927 -42
- tccli/services/ccc/v20200210/examples.json +72 -0
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cfw/cfw_client.py +171 -12
- tccli/services/cfw/v20190904/api.json +258 -2
- tccli/services/cfw/v20190904/examples.json +24 -0
- tccli/services/ckafka/v20190819/api.json +17 -17
- tccli/services/cls/v20201016/api.json +45 -17
- tccli/services/cls/v20201016/examples.json +2 -2
- tccli/services/csip/csip_client.py +57 -4
- tccli/services/csip/v20221121/api.json +70 -0
- tccli/services/csip/v20221121/examples.json +8 -0
- tccli/services/cynosdb/v20190107/api.json +3 -3
- tccli/services/ecm/v20190719/api.json +3 -3
- tccli/services/ecm/v20190719/examples.json +1 -1
- tccli/services/ess/v20201111/api.json +3 -3
- tccli/services/essbasic/v20210526/api.json +5 -5
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/mna/v20210119/api.json +144 -9
- tccli/services/mna/v20210119/examples.json +6 -6
- tccli/services/monitor/v20180724/api.json +20 -0
- tccli/services/omics/omics_client.py +277 -12
- tccli/services/omics/v20221128/api.json +425 -0
- tccli/services/omics/v20221128/examples.json +40 -0
- tccli/services/postgres/v20170312/api.json +27 -0
- tccli/services/postgres/v20170312/examples.json +1 -1
- tccli/services/trp/v20210515/api.json +18 -0
- tccli/services/trtc/v20190722/api.json +10 -1
- tccli/services/tse/tse_client.py +220 -8
- tccli/services/tse/v20201207/api.json +779 -42
- tccli/services/tse/v20201207/examples.json +32 -0
- tccli/services/vod/v20180717/api.json +146 -1
- tccli/services/vod/v20180717/examples.json +17 -1
- tccli/services/vod/vod_client.py +106 -0
- tccli/services/waf/v20180125/api.json +256 -1
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +57 -4
- tccli/services/wedata/v20210820/api.json +140 -15
- tccli/services/wedata/v20210820/examples.json +10 -4
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/RECORD +83 -58
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/license_files/LICENSE +0 -0
@@ -96,6 +96,14 @@
|
|
96
96
|
"title": "创建引擎实例"
|
97
97
|
}
|
98
98
|
],
|
99
|
+
"CreateGovernanceInstances": [
|
100
|
+
{
|
101
|
+
"document": "",
|
102
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateGovernanceInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"GovernanceInstances\": [\n {\n \"Protocol\": \"xx\",\n \"Service\": \"xx\",\n \"Weight\": 1,\n \"Healthy\": true,\n \"Namespace\": \"xx\",\n \"Isolate\": true,\n \"EnableHealthCheck\": true,\n \"Host\": \"xx\",\n \"Ttl\": 1,\n \"InstanceVersion\": \"xx\",\n \"Port\": 1\n }\n ]\n}",
|
103
|
+
"output": "{\n \"Response\": {\n \"Result\": true,\n \"RequestId\": \"xx\"\n }\n}",
|
104
|
+
"title": "创建治理中心服务实例"
|
105
|
+
}
|
106
|
+
],
|
99
107
|
"CreateNativeGatewayServerGroup": [
|
100
108
|
{
|
101
109
|
"document": "创建云原生网关引擎分组",
|
@@ -192,6 +200,14 @@
|
|
192
200
|
"title": "删除引擎实例"
|
193
201
|
}
|
194
202
|
],
|
203
|
+
"DeleteGovernanceInstances": [
|
204
|
+
{
|
205
|
+
"document": "",
|
206
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteGovernanceInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"GovernanceInstances\": [\n {\n \"Protocol\": \"xx\",\n \"Service\": \"xx\",\n \"Weight\": 1,\n \"Healthy\": true,\n \"Namespace\": \"xx\",\n \"Isolate\": true,\n \"Id\": \"xx\",\n \"EnableHealthCheck\": true,\n \"Host\": \"xx\",\n \"Ttl\": 1,\n \"InstanceVersion\": \"xx\",\n \"Port\": 1,\n \"Metadatas\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ]\n }\n ]\n}",
|
207
|
+
"output": "{\n \"Response\": {\n \"Result\": true,\n \"RequestId\": \"xx\"\n }\n}",
|
208
|
+
"title": "删除治理中心服务实例"
|
209
|
+
}
|
210
|
+
],
|
195
211
|
"DeleteNativeGatewayServerGroup": [
|
196
212
|
{
|
197
213
|
"document": "删除网关实例分组",
|
@@ -328,6 +344,14 @@
|
|
328
344
|
"title": "测试获取云原生API网关实例列表"
|
329
345
|
}
|
330
346
|
],
|
347
|
+
"DescribeGovernanceInstances": [
|
348
|
+
{
|
349
|
+
"document": "",
|
350
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGovernanceInstances\n<公共请求参数>\n\n{\n \"Protocol\": \"xx\",\n \"Service\": \"xx\",\n \"InstanceId\": \"xx\",\n \"Isolate\": true,\n \"Namespace\": \"xx\",\n \"Host\": \"xx\",\n \"HealthStatus\": true,\n \"Offset\": 1,\n \"InstanceVersion\": \"xx\",\n \"Limit\": 1,\n \"Metadatas\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ]\n}",
|
351
|
+
"output": "{\n \"Response\": {\n \"Content\": [\n {\n \"Protocol\": \"xx\",\n \"Weight\": 1,\n \"Service\": \"xx\",\n \"EnableHealthCheck\": true,\n \"Isolate\": true,\n \"Ttl\": 1,\n \"Namespace\": \"xx\",\n \"Id\": \"xx\",\n \"Healthy\": true,\n \"Host\": \"xx\",\n \"Version\": \"xx\",\n \"ModifyTime\": \"xx\",\n \"Port\": 1,\n \"CreateTime\": \"xx\",\n \"Metadatas\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ]\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"xx\"\n }\n}",
|
352
|
+
"title": "查询治理中心服务实例"
|
353
|
+
}
|
354
|
+
],
|
331
355
|
"DescribeNacosReplicas": [
|
332
356
|
{
|
333
357
|
"document": "查询Nacos类型引擎实例副本信息",
|
@@ -496,6 +520,14 @@
|
|
496
520
|
"title": "修改云原生API网关实例Konga网络配置"
|
497
521
|
}
|
498
522
|
],
|
523
|
+
"ModifyGovernanceInstances": [
|
524
|
+
{
|
525
|
+
"document": "",
|
526
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyGovernanceInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"GovernanceInstances\": [\n {\n \"Protocol\": \"xx\",\n \"Service\": \"xx\",\n \"Weight\": 1,\n \"Healthy\": true,\n \"Namespace\": \"xx\",\n \"Isolate\": true,\n \"Id\": \"xx\",\n \"EnableHealthCheck\": true,\n \"Host\": \"xx\",\n \"Ttl\": 1,\n \"InstanceVersion\": \"xx\",\n \"Port\": 1,\n \"Metadatas\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ]\n }\n ]\n}",
|
527
|
+
"output": "{\n \"Response\": {\n \"Result\": true,\n \"RequestId\": \"xx\"\n }\n}",
|
528
|
+
"title": "修改治理中心服务实例"
|
529
|
+
}
|
530
|
+
],
|
499
531
|
"ModifyNativeGatewayServerGroup": [
|
500
532
|
{
|
501
533
|
"document": "修改云原生API网关实例分组基础信息",
|
@@ -532,6 +532,13 @@
|
|
532
532
|
"output": "DescribeDailyPlayStatFileListResponse",
|
533
533
|
"status": "online"
|
534
534
|
},
|
535
|
+
"DescribeDefaultDistributionConfig": {
|
536
|
+
"document": "该接口用于查询默认分发配置。\n* 分发域名和分发协议,即媒体文件分发 URL 中的域名和协议。媒体文件按默认分发配置进行分发。\n* 播放密钥,用于计算播放器签名。",
|
537
|
+
"input": "DescribeDefaultDistributionConfigRequest",
|
538
|
+
"name": "查询默认分发配置",
|
539
|
+
"output": "DescribeDefaultDistributionConfigResponse",
|
540
|
+
"status": "online"
|
541
|
+
},
|
535
542
|
"DescribeDrmDataKey": {
|
536
543
|
"document": "本 API 是 [旧版本加密](https://cloud.tencent.com/document/product/266/9638) 中 [DescribeDrmDataKey 的 API 2017 接口](https://cloud.tencent.com/document/product/266/9643) 的升级版本。\n\n如果您是新接入点播加密的用户,不要使用该 API,请参考 [视频加密综述](https://cloud.tencent.com/document/product/266/45552) 使用推荐的加密方式。",
|
537
544
|
"input": "DescribeDrmDataKeyRequest",
|
@@ -896,6 +903,13 @@
|
|
896
903
|
"output": "ModifyContentReviewTemplateResponse",
|
897
904
|
"status": "online"
|
898
905
|
},
|
906
|
+
"ModifyDefaultDistributionConfig": {
|
907
|
+
"document": "该接口用于修改默认分发配置。\n* 分发域名和分发协议,即媒体文件分发 URL 中的域名和协议。媒体文件按默认分发配置进行分发。\n* 播放密钥,用于计算播放器签名。",
|
908
|
+
"input": "ModifyDefaultDistributionConfigRequest",
|
909
|
+
"name": "修改默认分发配置",
|
910
|
+
"output": "ModifyDefaultDistributionConfigResponse",
|
911
|
+
"status": "online"
|
912
|
+
},
|
899
913
|
"ModifyDefaultStorageRegion": {
|
900
914
|
"document": "该接口用于设置默认的存储地域。上传文件时如果没有指定地域,将上传到默认地域。",
|
901
915
|
"input": "ModifyDefaultStorageRegionRequest",
|
@@ -9478,7 +9492,17 @@
|
|
9478
9492
|
},
|
9479
9493
|
"CreateDomainVerifyRecordRequest": {
|
9480
9494
|
"document": "CreateDomainVerifyRecord请求参数结构体",
|
9481
|
-
"members": [
|
9495
|
+
"members": [
|
9496
|
+
{
|
9497
|
+
"disabled": false,
|
9498
|
+
"document": "需要接入点播的加速域名。",
|
9499
|
+
"example": "abc.com",
|
9500
|
+
"member": "string",
|
9501
|
+
"name": "Domain",
|
9502
|
+
"required": true,
|
9503
|
+
"type": "string"
|
9504
|
+
}
|
9505
|
+
],
|
9482
9506
|
"type": "object"
|
9483
9507
|
},
|
9484
9508
|
"CreateDomainVerifyRecordResponse": {
|
@@ -13622,6 +13646,73 @@
|
|
13622
13646
|
],
|
13623
13647
|
"type": "object"
|
13624
13648
|
},
|
13649
|
+
"DescribeDefaultDistributionConfigRequest": {
|
13650
|
+
"document": "DescribeDefaultDistributionConfig请求参数结构体",
|
13651
|
+
"members": [
|
13652
|
+
{
|
13653
|
+
"disabled": false,
|
13654
|
+
"document": "<b>点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b>",
|
13655
|
+
"example": "123",
|
13656
|
+
"member": "uint64",
|
13657
|
+
"name": "SubAppId",
|
13658
|
+
"required": false,
|
13659
|
+
"type": "int"
|
13660
|
+
}
|
13661
|
+
],
|
13662
|
+
"type": "object"
|
13663
|
+
},
|
13664
|
+
"DescribeDefaultDistributionConfigResponse": {
|
13665
|
+
"document": "DescribeDefaultDistributionConfig返回参数结构体",
|
13666
|
+
"members": [
|
13667
|
+
{
|
13668
|
+
"disabled": true,
|
13669
|
+
"document": "分发配置的域名(已废弃)。",
|
13670
|
+
"example": "test.vod2.myqcluod.com",
|
13671
|
+
"member": "string",
|
13672
|
+
"name": "DomainName",
|
13673
|
+
"output_required": true,
|
13674
|
+
"type": "string",
|
13675
|
+
"value_allowed_null": false
|
13676
|
+
},
|
13677
|
+
{
|
13678
|
+
"disabled": false,
|
13679
|
+
"document": "分发配置的域名。",
|
13680
|
+
"example": "test.vod2.myqcluod.com",
|
13681
|
+
"member": "string",
|
13682
|
+
"name": "Domain",
|
13683
|
+
"output_required": true,
|
13684
|
+
"type": "string",
|
13685
|
+
"value_allowed_null": false
|
13686
|
+
},
|
13687
|
+
{
|
13688
|
+
"disabled": false,
|
13689
|
+
"document": "分发配置的协议,为 HTTP 或 HTTPS。",
|
13690
|
+
"example": "HTTPS",
|
13691
|
+
"member": "string",
|
13692
|
+
"name": "Scheme",
|
13693
|
+
"output_required": true,
|
13694
|
+
"type": "string",
|
13695
|
+
"value_allowed_null": false
|
13696
|
+
},
|
13697
|
+
{
|
13698
|
+
"disabled": false,
|
13699
|
+
"document": "播放密钥,由大小写字母(a - Z)或者数字(0 - 9)组成,长度在8 - 20个字符之间。",
|
13700
|
+
"example": "123",
|
13701
|
+
"member": "string",
|
13702
|
+
"name": "PlayKey",
|
13703
|
+
"output_required": true,
|
13704
|
+
"type": "string",
|
13705
|
+
"value_allowed_null": false
|
13706
|
+
},
|
13707
|
+
{
|
13708
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
13709
|
+
"member": "string",
|
13710
|
+
"name": "RequestId",
|
13711
|
+
"type": "string"
|
13712
|
+
}
|
13713
|
+
],
|
13714
|
+
"type": "object"
|
13715
|
+
},
|
13625
13716
|
"DescribeDrmDataKeyRequest": {
|
13626
13717
|
"document": "DescribeDrmDataKey请求参数结构体",
|
13627
13718
|
"members": [
|
@@ -24202,6 +24293,60 @@
|
|
24202
24293
|
],
|
24203
24294
|
"type": "object"
|
24204
24295
|
},
|
24296
|
+
"ModifyDefaultDistributionConfigRequest": {
|
24297
|
+
"document": "ModifyDefaultDistributionConfig请求参数结构体",
|
24298
|
+
"members": [
|
24299
|
+
{
|
24300
|
+
"disabled": false,
|
24301
|
+
"document": "<b>点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b>",
|
24302
|
+
"example": "123",
|
24303
|
+
"member": "uint64",
|
24304
|
+
"name": "SubAppId",
|
24305
|
+
"required": false,
|
24306
|
+
"type": "int"
|
24307
|
+
},
|
24308
|
+
{
|
24309
|
+
"disabled": false,
|
24310
|
+
"document": "分发域名,取值为点播域名列表里的域名。不填或者填空,表示不修改域名。",
|
24311
|
+
"example": "test.vod2.myqcloud.com",
|
24312
|
+
"member": "string",
|
24313
|
+
"name": "Domain",
|
24314
|
+
"required": false,
|
24315
|
+
"type": "string"
|
24316
|
+
},
|
24317
|
+
{
|
24318
|
+
"disabled": false,
|
24319
|
+
"document": "分发协议,取值为 HTTP 或者 HTTPS。",
|
24320
|
+
"example": "HTTPS",
|
24321
|
+
"member": "string",
|
24322
|
+
"name": "Scheme",
|
24323
|
+
"required": false,
|
24324
|
+
"type": "string"
|
24325
|
+
},
|
24326
|
+
{
|
24327
|
+
"disabled": false,
|
24328
|
+
"document": "播放密钥,由大小写字母(a - Z)或者数字(0 - 9)组成,长度在8 - 20个字符之间。",
|
24329
|
+
"example": "123",
|
24330
|
+
"member": "string",
|
24331
|
+
"name": "PlayKey",
|
24332
|
+
"required": false,
|
24333
|
+
"type": "string"
|
24334
|
+
}
|
24335
|
+
],
|
24336
|
+
"type": "object"
|
24337
|
+
},
|
24338
|
+
"ModifyDefaultDistributionConfigResponse": {
|
24339
|
+
"document": "ModifyDefaultDistributionConfig返回参数结构体",
|
24340
|
+
"members": [
|
24341
|
+
{
|
24342
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
24343
|
+
"member": "string",
|
24344
|
+
"name": "RequestId",
|
24345
|
+
"type": "string"
|
24346
|
+
}
|
24347
|
+
],
|
24348
|
+
"type": "object"
|
24349
|
+
},
|
24205
24350
|
"ModifyDefaultStorageRegionRequest": {
|
24206
24351
|
"document": "ModifyDefaultStorageRegion请求参数结构体",
|
24207
24352
|
"members": [
|
@@ -161,7 +161,7 @@
|
|
161
161
|
"CreateDomainVerifyRecord": [
|
162
162
|
{
|
163
163
|
"document": "",
|
164
|
-
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainVerifyRecord\n<公共请求参数>\n\n{}",
|
164
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainVerifyRecord\n<公共请求参数>\n\n{\n \"Domain\": \"abc.com\"\n}",
|
165
165
|
"output": "{\n \"Response\": {\n \"DNSVerifyInfo\": {\n \"SubDomain\": \"abc\",\n \"Record\": \"abc\",\n \"RecordType\": \"abc\"\n },\n \"FileVerifyInfo\": {\n \"FileVerifyUrl\": \"abc\",\n \"FileVerifyDomains\": [\n \"abc\"\n ],\n \"FileVerifyName\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
166
166
|
"title": "生成域名解析记录"
|
167
167
|
}
|
@@ -746,6 +746,14 @@
|
|
746
746
|
"title": "查询2020-12-0-1到2020-12-02的播放统计文件列表"
|
747
747
|
}
|
748
748
|
],
|
749
|
+
"DescribeDefaultDistributionConfig": [
|
750
|
+
{
|
751
|
+
"document": "查询默认分发配置。",
|
752
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDefaultDistributionConfig\n<公共请求参数>\n\n{}",
|
753
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"requestId\",\n \"Domain\": \"test.vod2.myqcluod.com\",\n \"DomainName\": \"test.vod2.myqcluod.com\",\n \"Scheme\": \"HTTPS\",\n \"PlayKey\": \"abc12342a\"\n }\n}",
|
754
|
+
"title": "查询默认分发配置"
|
755
|
+
}
|
756
|
+
],
|
749
757
|
"DescribeDrmDataKey": [
|
750
758
|
{
|
751
759
|
"document": "",
|
@@ -1294,6 +1302,14 @@
|
|
1294
1302
|
"title": "修改内容审核模板,开启令人反感的信息的审核任务并指定过滤标签及分数阈值"
|
1295
1303
|
}
|
1296
1304
|
],
|
1305
|
+
"ModifyDefaultDistributionConfig": [
|
1306
|
+
{
|
1307
|
+
"document": "修改默认分发配置修改默认分发配置。",
|
1308
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDefaultDistributionConfig\n<公共请求参数>\n\n{\n \"Domain\": \"test.vod2.myqcloud.com\",\n \"Scheme\": \"HTTPS\"\n}",
|
1309
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"requestId\"\n }\n}",
|
1310
|
+
"title": "修改默认分发配置"
|
1311
|
+
}
|
1312
|
+
],
|
1297
1313
|
"ModifyDefaultStorageRegion": [
|
1298
1314
|
{
|
1299
1315
|
"document": "",
|
tccli/services/vod/vod_client.py
CHANGED
@@ -1525,6 +1525,58 @@ def doRemoveWatermark(args, parsed_globals):
|
|
1525
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
1526
|
|
1527
1527
|
|
1528
|
+
def doModifyDefaultDistributionConfig(args, parsed_globals):
|
1529
|
+
g_param = parse_global_arg(parsed_globals)
|
1530
|
+
|
1531
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1532
|
+
cred = credential.CVMRoleCredential()
|
1533
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1534
|
+
cred = credential.STSAssumeRoleCredential(
|
1535
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1536
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1537
|
+
)
|
1538
|
+
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):
|
1539
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1540
|
+
else:
|
1541
|
+
cred = credential.Credential(
|
1542
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1543
|
+
)
|
1544
|
+
http_profile = HttpProfile(
|
1545
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1546
|
+
reqMethod="POST",
|
1547
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1548
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1549
|
+
)
|
1550
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1551
|
+
if g_param[OptionsDefine.Language]:
|
1552
|
+
profile.language = g_param[OptionsDefine.Language]
|
1553
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1554
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
1555
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1556
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1557
|
+
model = models.ModifyDefaultDistributionConfigRequest()
|
1558
|
+
model.from_json_string(json.dumps(args))
|
1559
|
+
start_time = time.time()
|
1560
|
+
while True:
|
1561
|
+
rsp = client.ModifyDefaultDistributionConfig(model)
|
1562
|
+
result = rsp.to_json_string()
|
1563
|
+
try:
|
1564
|
+
json_obj = json.loads(result)
|
1565
|
+
except TypeError as e:
|
1566
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1567
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1568
|
+
break
|
1569
|
+
cur_time = time.time()
|
1570
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1571
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1572
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1573
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1574
|
+
else:
|
1575
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1576
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1577
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
|
+
|
1579
|
+
|
1528
1580
|
def doDescribeCdnLogs(args, parsed_globals):
|
1529
1581
|
g_param = parse_global_arg(parsed_globals)
|
1530
1582
|
|
@@ -7297,6 +7349,58 @@ def doDescribeHeadTailTemplates(args, parsed_globals):
|
|
7297
7349
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7298
7350
|
|
7299
7351
|
|
7352
|
+
def doDescribeDefaultDistributionConfig(args, parsed_globals):
|
7353
|
+
g_param = parse_global_arg(parsed_globals)
|
7354
|
+
|
7355
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7356
|
+
cred = credential.CVMRoleCredential()
|
7357
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7358
|
+
cred = credential.STSAssumeRoleCredential(
|
7359
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7360
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7361
|
+
)
|
7362
|
+
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):
|
7363
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7364
|
+
else:
|
7365
|
+
cred = credential.Credential(
|
7366
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7367
|
+
)
|
7368
|
+
http_profile = HttpProfile(
|
7369
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7370
|
+
reqMethod="POST",
|
7371
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7372
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7373
|
+
)
|
7374
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7375
|
+
if g_param[OptionsDefine.Language]:
|
7376
|
+
profile.language = g_param[OptionsDefine.Language]
|
7377
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7378
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
7379
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7380
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7381
|
+
model = models.DescribeDefaultDistributionConfigRequest()
|
7382
|
+
model.from_json_string(json.dumps(args))
|
7383
|
+
start_time = time.time()
|
7384
|
+
while True:
|
7385
|
+
rsp = client.DescribeDefaultDistributionConfig(model)
|
7386
|
+
result = rsp.to_json_string()
|
7387
|
+
try:
|
7388
|
+
json_obj = json.loads(result)
|
7389
|
+
except TypeError as e:
|
7390
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7391
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7392
|
+
break
|
7393
|
+
cur_time = time.time()
|
7394
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7395
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7396
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7397
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7398
|
+
else:
|
7399
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7400
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7401
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7402
|
+
|
7403
|
+
|
7300
7404
|
def doDescribeReviewTemplates(args, parsed_globals):
|
7301
7405
|
g_param = parse_global_arg(parsed_globals)
|
7302
7406
|
|
@@ -9157,6 +9261,7 @@ ACTION_MAP = {
|
|
9157
9261
|
"DescribeDrmDataKey": doDescribeDrmDataKey,
|
9158
9262
|
"DeleteSnapshotByTimeOffsetTemplate": doDeleteSnapshotByTimeOffsetTemplate,
|
9159
9263
|
"RemoveWatermark": doRemoveWatermark,
|
9264
|
+
"ModifyDefaultDistributionConfig": doModifyDefaultDistributionConfig,
|
9160
9265
|
"DescribeCdnLogs": doDescribeCdnLogs,
|
9161
9266
|
"CreateCLSLogset": doCreateCLSLogset,
|
9162
9267
|
"SetCLSPushTarget": doSetCLSPushTarget,
|
@@ -9268,6 +9373,7 @@ ACTION_MAP = {
|
|
9268
9373
|
"CreateAIRecognitionTemplate": doCreateAIRecognitionTemplate,
|
9269
9374
|
"DescribeSubAppIds": doDescribeSubAppIds,
|
9270
9375
|
"DescribeHeadTailTemplates": doDescribeHeadTailTemplates,
|
9376
|
+
"DescribeDefaultDistributionConfig": doDescribeDefaultDistributionConfig,
|
9271
9377
|
"DescribeReviewTemplates": doDescribeReviewTemplates,
|
9272
9378
|
"CommitUpload": doCommitUpload,
|
9273
9379
|
"ModifyAIRecognitionTemplate": doModifyAIRecognitionTemplate,
|