tccli 3.0.1226.1__py2.py3-none-any.whl → 3.0.1228.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/__init__.py +3 -0
- tccli/services/cam/v20190116/api.json +19 -13
- tccli/services/cdb/v20170320/api.json +159 -1
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cfs/v20190719/api.json +19 -0
- tccli/services/ckafka/v20190819/api.json +968 -763
- tccli/services/ckafka/v20190819/examples.json +112 -118
- tccli/services/cloudapp/v20220530/api.json +2 -2
- tccli/services/cloudapp/v20220530/examples.json +1 -1
- tccli/services/cynosdb/cynosdb_client.py +110 -4
- tccli/services/cynosdb/v20190107/api.json +125 -0
- tccli/services/cynosdb/v20190107/examples.json +16 -0
- tccli/services/emr/v20190103/api.json +28 -22
- tccli/services/ess/v20201111/api.json +18 -0
- tccli/services/essbasic/v20210526/api.json +10 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +57 -4
- tccli/services/iotexplorer/v20190423/api.json +145 -0
- tccli/services/iotexplorer/v20190423/examples.json +14 -0
- tccli/services/ivld/v20210903/api.json +245 -192
- tccli/services/ivld/v20210903/examples.json +10 -10
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lke/lke_client.py +394 -23
- tccli/services/lke/v20231130/api.json +756 -23
- tccli/services/lke/v20231130/examples.json +62 -0
- tccli/services/mps/v20190612/api.json +13 -13
- tccli/services/organization/v20181225/api.json +75 -51
- tccli/services/organization/v20181225/examples.json +20 -20
- tccli/services/organization/v20210331/api.json +74 -61
- tccli/services/organization/v20210331/examples.json +14 -14
- tccli/services/privatedns/v20201028/api.json +41 -13
- tccli/services/rce/v20201103/api.json +1 -1
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tke/v20220501/api.json +109 -0
- tccli/services/tmt/v20180321/api.json +2 -2
- tccli/services/tmt/v20180321/examples.json +2 -2
- tccli/services/trocket/v20230308/api.json +79 -79
- tccli/services/trocket/v20230308/examples.json +8 -8
- tccli/services/trtc/v20190722/api.json +84 -0
- tccli/services/vcube/__init__.py +4 -0
- tccli/services/vcube/v20220410/api.json +4168 -0
- tccli/services/vcube/v20220410/examples.json +277 -0
- tccli/services/vcube/vcube_client.py +1956 -0
- tccli/services/vdb/v20230616/api.json +9 -0
- tccli/services/vod/v20180717/api.json +40 -3
- tccli/services/vod/v20180717/examples.json +13 -1
- tccli/services/vpc/v20170312/api.json +163 -11
- tccli/services/vpc/v20170312/examples.json +10 -2
- tccli/services/vpc/vpc_client.py +53 -0
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/RECORD +56 -52
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/license_files/LICENSE +0 -0
@@ -254,6 +254,15 @@
|
|
254
254
|
"required": false,
|
255
255
|
"type": "list"
|
256
256
|
},
|
257
|
+
{
|
258
|
+
"disabled": false,
|
259
|
+
"document": "按照api版本筛选实例",
|
260
|
+
"example": "无",
|
261
|
+
"member": "string",
|
262
|
+
"name": "ApiVersions",
|
263
|
+
"required": false,
|
264
|
+
"type": "list"
|
265
|
+
},
|
257
266
|
{
|
258
267
|
"disabled": false,
|
259
268
|
"document": "按照创建时间筛选实例。",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"status": "online"
|
37
37
|
},
|
38
38
|
"CreateAIAnalysisTemplate": {
|
39
|
-
"document": "创建用户自定义音视频内容分析模板,数量上限:50
|
39
|
+
"document": "创建用户自定义音视频内容分析模板,数量上限:50。暂时不支持 HLS 格式。",
|
40
40
|
"input": "CreateAIAnalysisTemplateRequest",
|
41
41
|
"name": "创建音视频内容分析模板",
|
42
42
|
"output": "CreateAIAnalysisTemplateResponse",
|
@@ -1114,7 +1114,7 @@
|
|
1114
1114
|
"status": "online"
|
1115
1115
|
},
|
1116
1116
|
"ProcessMedia": {
|
1117
|
-
"document": "对点播中的音视频媒体发起处理任务,功能包括:\n1. 视频转码(带水印);\n2. 视频转动图;\n3. 对视频按指定时间点截图;\n4. 对视频采样截图;\n5. 对视频截取雪碧图;\n6. 对视频截取一张图做封面;\n7. 对视频转自适应码流(并加密);\n8. 内容审核(令人反感的信息、不安全的信息、不适宜的信息),<font color=red>不建议</font> 使用该接口发起,推荐使用 [音视频审核(ReviewAudioVideo)](https://cloud.tencent.com/document/api/266/80283) 或 [图片审核(ReviewImage)](https://cloud.tencent.com/document/api/266/73217);\n9.
|
1117
|
+
"document": "对点播中的音视频媒体发起处理任务,功能包括:\n1. 视频转码(带水印);\n2. 视频转动图;\n3. 对视频按指定时间点截图;\n4. 对视频采样截图;\n5. 对视频截取雪碧图;\n6. 对视频截取一张图做封面;\n7. 对视频转自适应码流(并加密);\n8. 内容审核(令人反感的信息、不安全的信息、不适宜的信息),<font color=red>不建议</font> 使用该接口发起,推荐使用 [音视频审核(ReviewAudioVideo)](https://cloud.tencent.com/document/api/266/80283) 或 [图片审核(ReviewImage)](https://cloud.tencent.com/document/api/266/73217);\n9. 内容分析(标签、分类、封面、按帧标签),暂时不支持 HLS 格式;\n10. 内容识别(视频片头片尾、人脸、文本全文、文本关键词、语音全文、语音关键词、物体)。\n\n如使用事件通知,事件通知的类型为 [任务流状态变更](https://cloud.tencent.com/document/product/266/9636)。",
|
1118
1118
|
"input": "ProcessMediaRequest",
|
1119
1119
|
"name": "媒体处理",
|
1120
1120
|
"output": "ProcessMediaResponse",
|
@@ -11471,6 +11471,24 @@
|
|
11471
11471
|
"name": "PlayBackMode",
|
11472
11472
|
"required": false,
|
11473
11473
|
"type": "string"
|
11474
|
+
},
|
11475
|
+
{
|
11476
|
+
"disabled": false,
|
11477
|
+
"document": "播单唯一标识 ID,长度限制为64个字符,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)和连字符(-)。如果存在相同 RoundPlayId 的播单,返回 InvalidParameterValue.RoundPlayAlreadyExists 错误。默认取值为空,表示由系统分配。",
|
11478
|
+
"example": "0127ce97935d43a0aaaf7a6caf10776d",
|
11479
|
+
"member": "string",
|
11480
|
+
"name": "RoundPlayId",
|
11481
|
+
"required": false,
|
11482
|
+
"type": "string"
|
11483
|
+
},
|
11484
|
+
{
|
11485
|
+
"disabled": false,
|
11486
|
+
"document": "过期时间,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#52)。过期后的播单将停止播放,“9999-12-31T23:59:59+08:00“表示不过期。默认值:9999-12-31T23:59:59+08:00。",
|
11487
|
+
"example": "2025-03-01T00:00:00+08:00",
|
11488
|
+
"member": "string",
|
11489
|
+
"name": "ExpiredTime",
|
11490
|
+
"required": false,
|
11491
|
+
"type": "string"
|
11474
11492
|
}
|
11475
11493
|
],
|
11476
11494
|
"type": "object"
|
@@ -26844,6 +26862,15 @@
|
|
26844
26862
|
"name": "PlayBackMode",
|
26845
26863
|
"required": false,
|
26846
26864
|
"type": "string"
|
26865
|
+
},
|
26866
|
+
{
|
26867
|
+
"disabled": false,
|
26868
|
+
"document": "过期时间,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#52),过期后将停止播放。“9999-12-31T23:59:59+08:00”表示不过期。",
|
26869
|
+
"example": "2025-03-01T00:00:00+08:00",
|
26870
|
+
"member": "string",
|
26871
|
+
"name": "ExpiredTime",
|
26872
|
+
"required": false,
|
26873
|
+
"type": "string"
|
26847
26874
|
}
|
26848
26875
|
],
|
26849
26876
|
"type": "object"
|
@@ -34333,6 +34360,16 @@
|
|
34333
34360
|
"output_required": false,
|
34334
34361
|
"type": "string",
|
34335
34362
|
"value_allowed_null": true
|
34363
|
+
},
|
34364
|
+
{
|
34365
|
+
"disabled": false,
|
34366
|
+
"document": "过期时间,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#52),过期后将停止播单的播放。“9999-12-31T23:59:59+08:00”表示永不过期。",
|
34367
|
+
"example": "2025-02-01T00:00:00+08:00",
|
34368
|
+
"member": "string",
|
34369
|
+
"name": "ExpiredTime",
|
34370
|
+
"output_required": false,
|
34371
|
+
"type": "string",
|
34372
|
+
"value_allowed_null": false
|
34336
34373
|
}
|
34337
34374
|
],
|
34338
34375
|
"usage": "out"
|
@@ -34375,7 +34412,7 @@
|
|
34375
34412
|
},
|
34376
34413
|
{
|
34377
34414
|
"disabled": false,
|
34378
|
-
"document": "
|
34415
|
+
"document": "指定播放的转码模板,当 AudioVideoType 为 Transcode 时必须指定。",
|
34379
34416
|
"example": "10",
|
34380
34417
|
"member": "int64",
|
34381
34418
|
"name": "Definition",
|
@@ -290,6 +290,12 @@
|
|
290
290
|
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRoundPlay\n<公共请求参数>\n\n{\n \"StartTime\": \"2022-06-01T00:00:00+08:00\",\n \"RoundPlaylist\": [\n {\n \"FileId\": \"528xxx5487985271487\",\n \"AudioVideoType\": \"Transcode\",\n \"Definition\": 100210\n }\n ]\n}",
|
291
291
|
"output": "{\n \"Response\": {\n \"RoundPlayId\": \"bffb15f07530b57bc1aabb01fac74bca\",\n \"Url\": \"http://domain/round-play/bffb15f07530b57bc1aabb01fac74bca/playlist.m3u8\",\n \"RequestId\": \"6xxxxe3a-6b8e-4b4e-9256-fdc700064ef3\"\n }\n}",
|
292
292
|
"title": "创建轮播播单"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"document": "新建一个轮播播单,在2024-12-10T20:00:00+08:00后过期。",
|
296
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRoundPlay\n<公共请求参数>\n\n{\n \"StartTime\": \"2022-06-01T00:00:00+08:00\",\n \"RoundPlaylist\": [\n {\n \"FileId\": \"528xxx5487985271487\",\n \"AudioVideoType\": \"Transcode\",\n \"Definition\": 100210\n }\n ],\n \"RoundPlayId\": \"bffb15f07530b57bc1aabb01fac74bcb\",\n \"ExpiredTime\": \"2024-12-10T20:00:00+08:00\"\n}\n\n",
|
297
|
+
"output": "{\n \"Response\": {\n \"RoundPlayId\": \"bffb15f07530b57bc1aabb01fac74bcb\",\n \"Url\": \"http://domain/round-play/bffb15f07530b57bc1aabb01fac74bcb/playlist.m3u8\",\n \"RequestId\": \"6xxxxe3a-6b8e-4b4e-9256-fdc700064ef3\"\n }\n}",
|
298
|
+
"title": "创建轮播播单,2024-12-10T20:00:00+08:00 后过期"
|
293
299
|
}
|
294
300
|
],
|
295
301
|
"CreateSampleSnapshotTemplate": [
|
@@ -1496,8 +1502,14 @@
|
|
1496
1502
|
{
|
1497
1503
|
"document": "修改轮播信息,可以修改轮播播单文件,播单名称、描述等。",
|
1498
1504
|
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRoundPlay\n<公共请求参数>\n\n{\n \"RoundPlayId\": \"bffb15f07530b57bc1aabb01fac74bca\",\n \"RoundPlaylist\": [\n {\n \"FileId\": \"528xxx5487985271487\",\n \"AudioVideoType\": \"Transcode\",\n \"Definition\": 100210\n }\n ]\n}",
|
1499
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1505
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"7b9d6abb-4ec1-4ef3-b904-2b11e24012f3\"\n }\n}",
|
1500
1506
|
"title": "修改轮播播单"
|
1507
|
+
},
|
1508
|
+
{
|
1509
|
+
"document": "修改 bffb15f07530b57bc1aabb01fac74bca 播单的过期时间为2024-12-10T23:00:00+08:00",
|
1510
|
+
"input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRoundPlay\n<公共请求参数>\n\n{\n \"RoundPlayId\": \"bffb15f07530b57bc1aabb01fac74bca\",\n \"ExpiredTime\": \"2024-12-10T23:00:00+08:00\"\n}",
|
1511
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"7b9d6abb-4ec1-4ef3-b904-2b11e24012f5\"\n }\n}",
|
1512
|
+
"title": "修改播单过期时间为2024-12-10T23:00:00+08:00"
|
1501
1513
|
}
|
1502
1514
|
],
|
1503
1515
|
"ModifySampleSnapshotTemplate": [
|
@@ -1533,6 +1533,13 @@
|
|
1533
1533
|
"output": "DescribeTrafficPackagesResponse",
|
1534
1534
|
"status": "online"
|
1535
1535
|
},
|
1536
|
+
"DescribeTrafficQosPolicy": {
|
1537
|
+
"document": "查询流量调度规则",
|
1538
|
+
"input": "DescribeTrafficQosPolicyRequest",
|
1539
|
+
"name": "查询流量调度规则",
|
1540
|
+
"output": "DescribeTrafficQosPolicyResponse",
|
1541
|
+
"status": "online"
|
1542
|
+
},
|
1536
1543
|
"DescribeUsedIpAddress": {
|
1537
1544
|
"document": "本接口(DescribeUsedIpAddress)用于查询Subnet或者Vpc内的ip的使用情况,\n如ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值",
|
1538
1545
|
"input": "DescribeUsedIpAddressRequest",
|
@@ -7846,6 +7853,24 @@
|
|
7846
7853
|
"name": "Tags",
|
7847
7854
|
"required": false,
|
7848
7855
|
"type": "list"
|
7856
|
+
},
|
7857
|
+
{
|
7858
|
+
"disabled": false,
|
7859
|
+
"document": "HaVip绑定的子机或网卡。最多支持10个实例。",
|
7860
|
+
"example": "[{\"InstanceType\": \"CVM\", \"InstanceId\": \"ins-mdunqeb6\"}]",
|
7861
|
+
"member": "HaVipAssociation",
|
7862
|
+
"name": "HaVipAssociationSet",
|
7863
|
+
"required": false,
|
7864
|
+
"type": "list"
|
7865
|
+
},
|
7866
|
+
{
|
7867
|
+
"disabled": false,
|
7868
|
+
"document": "用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。",
|
7869
|
+
"example": "d7df28fd-dcba-4dbb-82bc-bce3bf4d3562",
|
7870
|
+
"member": "string",
|
7871
|
+
"name": "ClientToken",
|
7872
|
+
"required": false,
|
7873
|
+
"type": "string"
|
7849
7874
|
}
|
7850
7875
|
],
|
7851
7876
|
"type": "object"
|
@@ -12960,7 +12985,7 @@
|
|
12960
12985
|
{
|
12961
12986
|
"disabled": false,
|
12962
12987
|
"document": "过滤条件。\n<li>address-template-group-name - String - (过滤条件)IP地址模板集合名称。</li>\n<li>address-template-group-id - String - (过滤条件)IP地址模板实集合例ID,例如:ipmg-mdunqeb6。</li>",
|
12963
|
-
"example": "
|
12988
|
+
"example": "[{\"Name\": \"address-template-group-id\", \"Values\": [\"ipmg-mdunqeb6\"]}]",
|
12964
12989
|
"member": "Filter",
|
12965
12990
|
"name": "Filters",
|
12966
12991
|
"required": false,
|
@@ -12987,7 +13012,7 @@
|
|
12987
13012
|
{
|
12988
13013
|
"disabled": false,
|
12989
13014
|
"document": "是否查询IP地址模板成员标识。",
|
12990
|
-
"example": "
|
13015
|
+
"example": "false",
|
12991
13016
|
"member": "bool",
|
12992
13017
|
"name": "NeedMemberInfo",
|
12993
13018
|
"required": false,
|
@@ -13002,7 +13027,7 @@
|
|
13002
13027
|
{
|
13003
13028
|
"disabled": false,
|
13004
13029
|
"document": "符合条件的实例数量。",
|
13005
|
-
"example": "
|
13030
|
+
"example": "1",
|
13006
13031
|
"member": "uint64",
|
13007
13032
|
"name": "TotalCount",
|
13008
13033
|
"output_required": true,
|
@@ -13012,7 +13037,7 @@
|
|
13012
13037
|
{
|
13013
13038
|
"disabled": false,
|
13014
13039
|
"document": "IP地址模板。",
|
13015
|
-
"example": "
|
13040
|
+
"example": "[{\"CreatedTime\": \"2022-12-06 20:00:00\", \"AddressTemplateGroupName\": \"demo\", \"AddressTemplateIdSet\": [\"ipm-xxxxxxxx\", \"ipm-yyyyyyyy\"], \"AddressTemplateSet\": [{\"AddressTemplateName\": \"ipm demo\", \"AddressTemplateId\": \"ipm-siqmaox1\"}], \"AddressTemplateGroupId\": \"ipmg-mdunqeb6\"}]",
|
13016
13041
|
"member": "AddressTemplateGroup",
|
13017
13042
|
"name": "AddressTemplateGroupSet",
|
13018
13043
|
"output_required": true,
|
@@ -18614,6 +18639,61 @@
|
|
18614
18639
|
],
|
18615
18640
|
"type": "object"
|
18616
18641
|
},
|
18642
|
+
"DescribeTrafficQosPolicyRequest": {
|
18643
|
+
"document": "DescribeTrafficQosPolicy请求参数结构体",
|
18644
|
+
"members": [
|
18645
|
+
{
|
18646
|
+
"disabled": false,
|
18647
|
+
"document": "CCN实例ID。形如:ccn-f49l6u0z。",
|
18648
|
+
"example": "ccn-gjug0kul",
|
18649
|
+
"member": "string",
|
18650
|
+
"name": "CcnId",
|
18651
|
+
"required": true,
|
18652
|
+
"type": "string"
|
18653
|
+
},
|
18654
|
+
{
|
18655
|
+
"disabled": false,
|
18656
|
+
"document": "本端地域。",
|
18657
|
+
"example": "ap-guangzhou",
|
18658
|
+
"member": "string",
|
18659
|
+
"name": "LocalRegion",
|
18660
|
+
"required": true,
|
18661
|
+
"type": "string"
|
18662
|
+
},
|
18663
|
+
{
|
18664
|
+
"disabled": false,
|
18665
|
+
"document": "远端地域。",
|
18666
|
+
"example": "ap-shanghai",
|
18667
|
+
"member": "string",
|
18668
|
+
"name": "RemoteRegion",
|
18669
|
+
"required": true,
|
18670
|
+
"type": "string"
|
18671
|
+
}
|
18672
|
+
],
|
18673
|
+
"type": "object"
|
18674
|
+
},
|
18675
|
+
"DescribeTrafficQosPolicyResponse": {
|
18676
|
+
"document": "DescribeTrafficQosPolicy返回参数结构体",
|
18677
|
+
"members": [
|
18678
|
+
{
|
18679
|
+
"disabled": false,
|
18680
|
+
"document": "流量调度规则。",
|
18681
|
+
"example": "无",
|
18682
|
+
"member": "TrafficQosPolicySet",
|
18683
|
+
"name": "TrafficQosPolicySet",
|
18684
|
+
"output_required": false,
|
18685
|
+
"type": "list",
|
18686
|
+
"value_allowed_null": false
|
18687
|
+
},
|
18688
|
+
{
|
18689
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
18690
|
+
"member": "string",
|
18691
|
+
"name": "RequestId",
|
18692
|
+
"type": "string"
|
18693
|
+
}
|
18694
|
+
],
|
18695
|
+
"type": "object"
|
18696
|
+
},
|
18617
18697
|
"DescribeUsedIpAddressRequest": {
|
18618
18698
|
"document": "DescribeUsedIpAddress请求参数结构体",
|
18619
18699
|
"members": [
|
@@ -19318,7 +19398,7 @@
|
|
19318
19398
|
"example": "SUCCESS",
|
19319
19399
|
"member": "string",
|
19320
19400
|
"name": "Status",
|
19321
|
-
"
|
19401
|
+
"output_required": true,
|
19322
19402
|
"type": "string",
|
19323
19403
|
"value_allowed_null": false
|
19324
19404
|
},
|
@@ -19328,19 +19408,19 @@
|
|
19328
19408
|
"example": "SUCCESS",
|
19329
19409
|
"member": "string",
|
19330
19410
|
"name": "Output",
|
19331
|
-
"
|
19411
|
+
"output_required": true,
|
19332
19412
|
"type": "string",
|
19333
19413
|
"value_allowed_null": false
|
19334
19414
|
},
|
19335
19415
|
{
|
19336
19416
|
"disabled": false,
|
19337
|
-
"document": "
|
19338
|
-
"example": "
|
19417
|
+
"document": "异步任务详细结果。只用于特殊场景,如批量删除弹性网卡时查询成功的网卡列表和失败的列表。",
|
19418
|
+
"example": "[]",
|
19339
19419
|
"member": "VpcTaskResultDetailInfo",
|
19340
19420
|
"name": "Result",
|
19341
|
-
"
|
19421
|
+
"output_required": true,
|
19342
19422
|
"type": "list",
|
19343
|
-
"value_allowed_null":
|
19423
|
+
"value_allowed_null": false
|
19344
19424
|
},
|
19345
19425
|
{
|
19346
19426
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
@@ -25235,7 +25315,7 @@
|
|
25235
25315
|
"example": "demo",
|
25236
25316
|
"member": "string",
|
25237
25317
|
"name": "HaVipName",
|
25238
|
-
"required":
|
25318
|
+
"required": false,
|
25239
25319
|
"type": "string"
|
25240
25320
|
}
|
25241
25321
|
],
|
@@ -33676,6 +33756,78 @@
|
|
33676
33756
|
],
|
33677
33757
|
"usage": "out"
|
33678
33758
|
},
|
33759
|
+
"TrafficQosPolicySet": {
|
33760
|
+
"document": "流量调度规则",
|
33761
|
+
"members": [
|
33762
|
+
{
|
33763
|
+
"disabled": false,
|
33764
|
+
"document": "CCN实例ID。形如:ccn-f49l6u0z。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33765
|
+
"example": "ccn-gjug0kul",
|
33766
|
+
"member": "string",
|
33767
|
+
"name": "CcnId",
|
33768
|
+
"output_required": false,
|
33769
|
+
"required": false,
|
33770
|
+
"type": "string",
|
33771
|
+
"value_allowed_null": true
|
33772
|
+
},
|
33773
|
+
{
|
33774
|
+
"disabled": false,
|
33775
|
+
"document": "qos id。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33776
|
+
"example": "1",
|
33777
|
+
"member": "uint64",
|
33778
|
+
"name": "QosId",
|
33779
|
+
"output_required": false,
|
33780
|
+
"required": false,
|
33781
|
+
"type": "int",
|
33782
|
+
"value_allowed_null": true
|
33783
|
+
},
|
33784
|
+
{
|
33785
|
+
"disabled": false,
|
33786
|
+
"document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33787
|
+
"example": "test",
|
33788
|
+
"member": "string",
|
33789
|
+
"name": "QosPolicyDescription",
|
33790
|
+
"output_required": false,
|
33791
|
+
"required": false,
|
33792
|
+
"type": "string",
|
33793
|
+
"value_allowed_null": true
|
33794
|
+
},
|
33795
|
+
{
|
33796
|
+
"disabled": false,
|
33797
|
+
"document": "名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33798
|
+
"example": "test",
|
33799
|
+
"member": "string",
|
33800
|
+
"name": "QosPolicyName",
|
33801
|
+
"output_required": false,
|
33802
|
+
"required": false,
|
33803
|
+
"type": "string",
|
33804
|
+
"value_allowed_null": true
|
33805
|
+
},
|
33806
|
+
{
|
33807
|
+
"disabled": false,
|
33808
|
+
"document": "带宽。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33809
|
+
"example": "1",
|
33810
|
+
"member": "uint64",
|
33811
|
+
"name": "Bandwidth",
|
33812
|
+
"output_required": false,
|
33813
|
+
"required": false,
|
33814
|
+
"type": "int",
|
33815
|
+
"value_allowed_null": true
|
33816
|
+
},
|
33817
|
+
{
|
33818
|
+
"disabled": false,
|
33819
|
+
"document": "流量调度策略ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33820
|
+
"example": "qos-n4i5plee",
|
33821
|
+
"member": "string",
|
33822
|
+
"name": "QosPolicyId",
|
33823
|
+
"output_required": false,
|
33824
|
+
"required": false,
|
33825
|
+
"type": "string",
|
33826
|
+
"value_allowed_null": true
|
33827
|
+
}
|
33828
|
+
],
|
33829
|
+
"usage": "both"
|
33830
|
+
},
|
33679
33831
|
"TransformAddressRequest": {
|
33680
33832
|
"document": "TransformAddress请求参数结构体",
|
33681
33833
|
"members": [
|
@@ -1237,8 +1237,8 @@
|
|
1237
1237
|
"DescribeAddressTemplateGroups": [
|
1238
1238
|
{
|
1239
1239
|
"document": "查询IP地址模板集合",
|
1240
|
-
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeAddressTemplateGroups\n&Filters.0.Name=address-template-group-name\n&Filters.0.Values.0=
|
1241
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"
|
1240
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeAddressTemplateGroups\n&Filters.0.Name=address-template-group-name\n&Filters.0.Values.0=demo\n&Filters.1.Name=address-template-group-id\n&Filters.1.Values.0=ipmg-mdunqeb6\n&<公共请求参数>",
|
1241
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"8ed052ce-dddf-4af9-9cf5-9c150ff75210\",\n \"AddressTemplateGroupSet\": [\n {\n \"AddressTemplateGroupName\": \"demo\",\n \"AddressTemplateGroupId\": \"ipmg-mdunqeb6\",\n \"AddressTemplateIdSet\": [\n \"ipm-xxxxxxxx\",\n \"ipm-yyyyyyyy\"\n ],\n \"AddressTemplateSet\": [\n {\n \"AddressTemplateId\": \"ipm-siqmaox1\",\n \"AddressTemplateName\": \"ipm demo\",\n \"From\": \"\",\n \"To\": \"\"\n }\n ],\n \"CreatedTime\": \"2022-12-06 20:00:00\"\n }\n ]\n }\n}",
|
1242
1242
|
"title": "查询IP地址模板集合"
|
1243
1243
|
}
|
1244
1244
|
],
|
@@ -2052,6 +2052,14 @@
|
|
2052
2052
|
"title": "查询某一个账号所有的共享流量包信息"
|
2053
2053
|
}
|
2054
2054
|
],
|
2055
|
+
"DescribeTrafficQosPolicy": [
|
2056
|
+
{
|
2057
|
+
"document": "",
|
2058
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTrafficQosPolicy\n<公共请求参数>\n\n{\n \"CcnId\": \"ccn-mo8mumi7\",\n \"LocalRegion\": \"ap-guangzhou\",\n \"RemoteRegion\": \"ap-chengdu\"\n}",
|
2059
|
+
"output": "{\n \"Response\": {\n \"TrafficQosPolicySet\": [\n {\n \"CcnId\": \"ccn-0puqax1n\",\n \"QosId\": 1,\n \"QosPolicyDescription\": \"1\",\n \"QosPolicyName\": \"1\",\n \"Bandwidth\": 1\n }\n ],\n \"RequestId\": \"e052b088-c3a4-4efa-96e6-8af897abb369\"\n }\n}",
|
2060
|
+
"title": "查询流量调度规则"
|
2061
|
+
}
|
2062
|
+
],
|
2055
2063
|
"DescribeUsedIpAddress": [
|
2056
2064
|
{
|
2057
2065
|
"document": "查询子网下的ip使用情况,查询3个ip,只有2个ip被占用并返回资源信息",
|
tccli/services/vpc/vpc_client.py
CHANGED
@@ -14421,6 +14421,58 @@ def doModifyAddressAttribute(args, parsed_globals):
|
|
14421
14421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14422
14422
|
|
14423
14423
|
|
14424
|
+
def doDescribeTrafficQosPolicy(args, parsed_globals):
|
14425
|
+
g_param = parse_global_arg(parsed_globals)
|
14426
|
+
|
14427
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
14428
|
+
cred = credential.CVMRoleCredential()
|
14429
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
14430
|
+
cred = credential.STSAssumeRoleCredential(
|
14431
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
14432
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
14433
|
+
)
|
14434
|
+
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):
|
14435
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
14436
|
+
else:
|
14437
|
+
cred = credential.Credential(
|
14438
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
14439
|
+
)
|
14440
|
+
http_profile = HttpProfile(
|
14441
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
14442
|
+
reqMethod="POST",
|
14443
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
14444
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
14445
|
+
)
|
14446
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
14447
|
+
if g_param[OptionsDefine.Language]:
|
14448
|
+
profile.language = g_param[OptionsDefine.Language]
|
14449
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
14450
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
14451
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
14452
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
14453
|
+
model = models.DescribeTrafficQosPolicyRequest()
|
14454
|
+
model.from_json_string(json.dumps(args))
|
14455
|
+
start_time = time.time()
|
14456
|
+
while True:
|
14457
|
+
rsp = client.DescribeTrafficQosPolicy(model)
|
14458
|
+
result = rsp.to_json_string()
|
14459
|
+
try:
|
14460
|
+
json_obj = json.loads(result)
|
14461
|
+
except TypeError as e:
|
14462
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
14463
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
14464
|
+
break
|
14465
|
+
cur_time = time.time()
|
14466
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
14467
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
14468
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
14469
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
14470
|
+
else:
|
14471
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
14472
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
14473
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14474
|
+
|
14475
|
+
|
14424
14476
|
def doCreateFlowLog(args, parsed_globals):
|
14425
14477
|
g_param = parse_global_arg(parsed_globals)
|
14426
14478
|
|
@@ -19857,6 +19909,7 @@ ACTION_MAP = {
|
|
19857
19909
|
"DescribeSecurityGroupAssociationStatistics": doDescribeSecurityGroupAssociationStatistics,
|
19858
19910
|
"DescribeIpGeolocationDatabaseUrl": doDescribeIpGeolocationDatabaseUrl,
|
19859
19911
|
"ModifyAddressAttribute": doModifyAddressAttribute,
|
19912
|
+
"DescribeTrafficQosPolicy": doDescribeTrafficQosPolicy,
|
19860
19913
|
"CreateFlowLog": doCreateFlowLog,
|
19861
19914
|
"CreateRouteTable": doCreateRouteTable,
|
19862
19915
|
"ModifyPrivateNatGatewayAttribute": doModifyPrivateNatGatewayAttribute,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1228.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1228
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|