tccli 3.0.1226.1__py2.py3-none-any.whl → 3.0.1227.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/cam/v20190116/api.json +19 -13
- tccli/services/ckafka/v20190819/api.json +964 -759
- tccli/services/ckafka/v20190819/examples.json +22 -22
- tccli/services/cloudapp/v20220530/api.json +2 -2
- tccli/services/cloudapp/v20220530/examples.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/v20231130/api.json +19 -19
- tccli/services/mps/v20190612/api.json +12 -12
- 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/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 +1 -1
- tccli/services/trtc/v20190722/api.json +84 -0
- tccli/services/vdb/v20230616/api.json +9 -0
- tccli/services/vod/v20180717/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +134 -0
- tccli/services/vpc/v20170312/examples.json +8 -0
- tccli/services/vpc/vpc_client.py +53 -0
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1227.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1227.1.dist-info}/RECORD +34 -34
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1227.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1227.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1226.1.dist-info → tccli-3.0.1227.1.dist-info}/license_files/LICENSE +0 -0
@@ -9243,7 +9243,7 @@
|
|
9243
9243
|
},
|
9244
9244
|
{
|
9245
9245
|
"disabled": false,
|
9246
|
-
"document": "查询的指标,取值有:\n<li> l7Flow_outFlux_country:按国家/地区维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_province:按中国大陆境内省份维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_statusCode:按状态码维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_domain:按域名维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_url:按 URL Path 维度统计 L7 EdgeOne 响应流量指标; </li>\n<li> l7Flow_outFlux_resourceType:按资源类型维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_sip:按客户端 IP 维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_referers:按 Referer 维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_ua_device:按设备类型维度统计 L7 EdgeOne 响应流量指标; </li>\n<li> l7Flow_outFlux_ua_browser:按浏览器类型维度统计 L7 EdgeOne 响应流量指标;</li>\n<li>
|
9246
|
+
"document": "查询的指标,取值有:\n<li> l7Flow_outFlux_country:按国家/地区维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_province:按中国大陆境内省份维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_statusCode:按状态码维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_domain:按域名维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_url:按 URL Path 维度统计 L7 EdgeOne 响应流量指标; </li>\n<li> l7Flow_outFlux_resourceType:按资源类型维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_sip:按客户端 IP 维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_referers:按 Referer 维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_ua_device:按设备类型维度统计 L7 EdgeOne 响应流量指标; </li>\n<li> l7Flow_outFlux_ua_browser:按浏览器类型维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_outFlux_ua_os:按操作系统类型维度统计 L7 EdgeOne 响应流量指标;</li>\n<li> l7Flow_request_country:按国家/地区维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_province:按中国大陆境内省份维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_statusCode:按状态码维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_domain:按域名维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_url:按 URL Path 维度统计 L7 访问请求数指标; </li>\n<li> l7Flow_request_resourceType:按资源类型维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_sip:按客户端 IP 维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_referer:按 Referer 维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_ua_device:按设备类型维度统计 L7 访问请求数指标; </li>\n<li> l7Flow_request_ua_browser:按浏览器类型维度统计 L7 访问请求数指标;</li>\n<li> l7Flow_request_ua_os:按操作系统类型维度统计 L7 访问请求数指标。</li>\n",
|
9247
9247
|
"example": "l7Flow_outFlux_country",
|
9248
9248
|
"member": "string",
|
9249
9249
|
"name": "MetricName",
|
@@ -16710,7 +16710,7 @@
|
|
16710
16710
|
},
|
16711
16711
|
{
|
16712
16712
|
"disabled": false,
|
16713
|
-
"document": "匹配类型,取值有: <li> filename:文件名; </li> <li> extension:文件后缀; </li> <li> host:HOST; </li> <li> full_url:URL Full,当前站点下完整 URL 路径,必须包含 HTTP 协议,Host 和 路径; </li> <li> url:URL Path,当前站点下 URL 路径的请求; </li><li>client_country:客户端国家/地区;</li> <li> query_string:查询字符串,当前站点下请求URL的查询字符串; </li> <li> request_header:HTTP请求头部。 </li><li> client_ip:客户端 IP。 </li>",
|
16713
|
+
"document": "匹配类型,取值有: <li> filename:文件名; </li> <li> extension:文件后缀; </li> <li> host:HOST; </li> <li> full_url:URL Full,当前站点下完整 URL 路径,必须包含 HTTP 协议,Host 和 路径; </li> <li> url:URL Path,当前站点下 URL 路径的请求; </li><li>client_country:客户端国家/地区;</li> <li> query_string:查询字符串,当前站点下请求 URL 的查询字符串; </li> <li> request_header:HTTP 请求头部。 </li><li> client_ip:客户端 IP。 </li><li> request_protocol:请求协议。 </li><li> request_method:HTTP 请求方法。 </li>",
|
16714
16714
|
"example": "url",
|
16715
16715
|
"member": "string",
|
16716
16716
|
"name": "Target",
|
@@ -16721,7 +16721,7 @@
|
|
16721
16721
|
},
|
16722
16722
|
{
|
16723
16723
|
"disabled": false,
|
16724
|
-
"document": "对应匹配类型的参数值,仅在匹配类型为查询字符串或HTTP请求头并且运算符取值为存在或不存在时允许传空数组,对应匹配类型有:\n<li> 文件后缀:jpg、txt等文件后缀;</li>\n<li> 文件名称:例如 foo.jpg 中的 foo;</li>\n<li> 全部(站点任意请求):
|
16724
|
+
"document": "对应匹配类型的参数值,仅在匹配类型为查询字符串或HTTP请求头并且运算符取值为存在或不存在时允许传空数组,对应匹配类型有:\n<li> 文件后缀:jpg、txt 等文件后缀;</li>\n<li> 文件名称:例如 foo.jpg 中的 foo;</li>\n<li> 全部(站点任意请求):all;</li>\n<li> HOST:当前站点下的 host ,例如www.maxx55.com;</li>\n<li> URL Path:当前站点下 URL 路径的请求,例如:/example;</li>\n<li> URL Full:当前站点下完整 URL 请求,必须包含 HTTP 协议,Host 和 路径,例如:https://www.maxx55.cn/example;</li>\n<li> 客户端国家/地区:符合 ISO3166 标准的国家/地区标识;</li>\n<li> 查询字符串: 当前站点下 URL 请求中查询字符串的参数值,例如 lang=cn&version=1 中的 cn 和 1; </li>\n<li> HTTP 请求头: HTTP 请求头部字段值,例如 Accept-Language:zh-CN,zh;q=0.9中的zh-CN,zh;q=0.9 ;</li>\n<li> 客户端 IP: 当前请求携带的客户端请求 IP,支持 IPv4/IPv6, 支持 IP 段; </li>\n<li> 请求协议: 当前请求的协议,取值范围为:HTTP、HTTPS;</li>\n<li> HTTP 请求方法: 当前请求的方法,取值范围为:GET、HEAD、POST、PUT、DELETE、TRACE、CONNECT、OPTIONS、PATCH、COPY、LOCK、MKCOL、MOVE、PROPFIND、PROPPATCH、UNLOCK。 </li>",
|
16725
16725
|
"example": "[\"www.maxx55.com\"]",
|
16726
16726
|
"member": "string",
|
16727
16727
|
"name": "Values",
|
@@ -1257,6 +1257,106 @@
|
|
1257
1257
|
],
|
1258
1258
|
"usage": "in"
|
1259
1259
|
},
|
1260
|
+
"GPUConfig": {
|
1261
|
+
"document": "机型名称与GPU相关的参数,包括驱动版本,CUDA版本,cuDNN版本,是否开启MIG以及是否开启Fabric等相关配置信息",
|
1262
|
+
"members": [
|
1263
|
+
{
|
1264
|
+
"disabled": false,
|
1265
|
+
"document": "机型名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
1266
|
+
"example": "GN7.2XLARGE40",
|
1267
|
+
"member": "string",
|
1268
|
+
"name": "InstanceType",
|
1269
|
+
"output_required": true,
|
1270
|
+
"required": true,
|
1271
|
+
"type": "string",
|
1272
|
+
"value_allowed_null": true
|
1273
|
+
},
|
1274
|
+
{
|
1275
|
+
"disabled": false,
|
1276
|
+
"document": "GPU相关的参数,包括驱动版本,CUDA版本,cuDNN版本,是否开启MIG以及是否开启Fabric等\n注意:此字段可能返回 null,表示取不到有效值。",
|
1277
|
+
"example": "无",
|
1278
|
+
"member": "GPUParams",
|
1279
|
+
"name": "GPUParams",
|
1280
|
+
"output_required": true,
|
1281
|
+
"required": true,
|
1282
|
+
"type": "object",
|
1283
|
+
"value_allowed_null": true
|
1284
|
+
}
|
1285
|
+
],
|
1286
|
+
"usage": "both"
|
1287
|
+
},
|
1288
|
+
"GPUParams": {
|
1289
|
+
"document": "GPU相关的参数,包括驱动版本,CUDA版本,cuDNN版本,是否开启MIG以及是否开启Fabric",
|
1290
|
+
"members": [
|
1291
|
+
{
|
1292
|
+
"disabled": false,
|
1293
|
+
"document": "GPU驱动版本\n注意:此字段可能返回 null,表示取不到有效值。",
|
1294
|
+
"example": "470.82.01",
|
1295
|
+
"member": "string",
|
1296
|
+
"name": "Driver",
|
1297
|
+
"output_required": false,
|
1298
|
+
"required": false,
|
1299
|
+
"type": "string",
|
1300
|
+
"value_allowed_null": true
|
1301
|
+
},
|
1302
|
+
{
|
1303
|
+
"disabled": false,
|
1304
|
+
"document": "CUDA版本\n注意:此字段可能返回 null,表示取不到有效值。",
|
1305
|
+
"example": "11.4",
|
1306
|
+
"member": "string",
|
1307
|
+
"name": "CUDA",
|
1308
|
+
"output_required": false,
|
1309
|
+
"required": false,
|
1310
|
+
"type": "string",
|
1311
|
+
"value_allowed_null": true
|
1312
|
+
},
|
1313
|
+
{
|
1314
|
+
"disabled": false,
|
1315
|
+
"document": "CUDNN版本\n注意:此字段可能返回 null,表示取不到有效值。",
|
1316
|
+
"example": "7.5.0",
|
1317
|
+
"member": "string",
|
1318
|
+
"name": "CUDNN",
|
1319
|
+
"output_required": false,
|
1320
|
+
"required": false,
|
1321
|
+
"type": "string",
|
1322
|
+
"value_allowed_null": true
|
1323
|
+
},
|
1324
|
+
{
|
1325
|
+
"disabled": false,
|
1326
|
+
"document": "是否启用MIG特性\n注意:此字段可能返回 null,表示取不到有效值。",
|
1327
|
+
"example": "false",
|
1328
|
+
"member": "bool",
|
1329
|
+
"name": "MIGEnable",
|
1330
|
+
"output_required": false,
|
1331
|
+
"required": false,
|
1332
|
+
"type": "bool",
|
1333
|
+
"value_allowed_null": true
|
1334
|
+
},
|
1335
|
+
{
|
1336
|
+
"disabled": false,
|
1337
|
+
"document": "是否启用Fabric特性\n注意:此字段可能返回 null,表示取不到有效值。",
|
1338
|
+
"example": "false",
|
1339
|
+
"member": "bool",
|
1340
|
+
"name": "Fabric",
|
1341
|
+
"output_required": false,
|
1342
|
+
"required": false,
|
1343
|
+
"type": "bool",
|
1344
|
+
"value_allowed_null": true
|
1345
|
+
},
|
1346
|
+
{
|
1347
|
+
"disabled": false,
|
1348
|
+
"document": "自定义驱动下载地址\n注意:此字段可能返回 null,表示取不到有效值。",
|
1349
|
+
"example": "http://mirrors.tencentyun.com/install/GPU/NVIDIA-Linux-x86_64-525.105.17.run",
|
1350
|
+
"member": "string",
|
1351
|
+
"name": "CustomGPUDriver",
|
1352
|
+
"output_required": false,
|
1353
|
+
"required": false,
|
1354
|
+
"type": "string",
|
1355
|
+
"value_allowed_null": true
|
1356
|
+
}
|
1357
|
+
],
|
1358
|
+
"usage": "both"
|
1359
|
+
},
|
1260
1360
|
"HealthCheckPolicy": {
|
1261
1361
|
"document": "健康检测规则",
|
1262
1362
|
"members": [
|
@@ -3518,6 +3618,15 @@
|
|
3518
3618
|
"name": "KeyIds",
|
3519
3619
|
"required": false,
|
3520
3620
|
"type": "list"
|
3621
|
+
},
|
3622
|
+
{
|
3623
|
+
"disabled": false,
|
3624
|
+
"document": "节点池 GPU 配置",
|
3625
|
+
"example": "[{\"InstanceType\":\"GN7Large.32\",\"GPUParams\":{\"Driver\":\"450.104.51\"}}]",
|
3626
|
+
"member": "GPUConfig",
|
3627
|
+
"name": "GPUConfigs",
|
3628
|
+
"required": false,
|
3629
|
+
"type": "list"
|
3521
3630
|
}
|
3522
3631
|
],
|
3523
3632
|
"usage": "in"
|
@@ -740,6 +740,81 @@
|
|
740
740
|
],
|
741
741
|
"usage": "in"
|
742
742
|
},
|
743
|
+
"AuditStorageParams": {
|
744
|
+
"document": "审核存储参数",
|
745
|
+
"members": [
|
746
|
+
{
|
747
|
+
"disabled": false,
|
748
|
+
"document": "腾讯云对象存储COS以及第三方云存储的账号信息",
|
749
|
+
"example": "无",
|
750
|
+
"member": "CloudAuditStorage",
|
751
|
+
"name": "CloudAuditStorage",
|
752
|
+
"required": false,
|
753
|
+
"type": "object"
|
754
|
+
}
|
755
|
+
],
|
756
|
+
"usage": "in"
|
757
|
+
},
|
758
|
+
"CloudAuditStorage": {
|
759
|
+
"document": "腾讯云对象存储COS以及第三方云存储的账号信息",
|
760
|
+
"members": [
|
761
|
+
{
|
762
|
+
"disabled": false,
|
763
|
+
"document": "腾讯云对象存储COS以及第三方云存储账号信息\n0:腾讯云对象存储 COS\n1:AWS\n【注意】目前第三方云存储仅支持AWS,更多第三方云存储陆续支持中\n示例值:0",
|
764
|
+
"example": "0",
|
765
|
+
"member": "uint64",
|
766
|
+
"name": "Vendor",
|
767
|
+
"required": true,
|
768
|
+
"type": "int"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"disabled": false,
|
772
|
+
"document": "腾讯云对象存储的[地域信息](https://cloud.tencent.com/document/product/436/6224#.E5.9C.B0.E5.9F.9F)。\n示例值:cn-shanghai-1\n\nAWS S3[地域信息](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)\n示例值:ap-southeast-3\t",
|
773
|
+
"example": "cn-shanghai-1",
|
774
|
+
"member": "string",
|
775
|
+
"name": "Region",
|
776
|
+
"required": true,
|
777
|
+
"type": "string"
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"disabled": false,
|
781
|
+
"document": "云存储桶名称。",
|
782
|
+
"example": "test-bucket",
|
783
|
+
"member": "string",
|
784
|
+
"name": "Bucket",
|
785
|
+
"required": true,
|
786
|
+
"type": "string"
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"disabled": false,
|
790
|
+
"document": "云存储的access_key账号信息。\n若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。\n示例值:test-accesskey",
|
791
|
+
"example": "test-accesskey",
|
792
|
+
"member": "string",
|
793
|
+
"name": "AccessKey",
|
794
|
+
"required": true,
|
795
|
+
"type": "string"
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"disabled": false,
|
799
|
+
"document": "云存储的secret_key账号信息。\n若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。\n示例值:test-secretkey",
|
800
|
+
"example": "test-secretkey",
|
801
|
+
"member": "string",
|
802
|
+
"name": "SecretKey",
|
803
|
+
"required": true,
|
804
|
+
"type": "string"
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"disabled": false,
|
808
|
+
"document": "云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围az,AZ,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 [\"prefix1\", \"prefix2\"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。\n示例值:[\"prefix1\", \"prefix2\"]",
|
809
|
+
"example": "[\"prefix1\", \"prefix2\"]",
|
810
|
+
"member": "string",
|
811
|
+
"name": "FileNamePrefix",
|
812
|
+
"required": false,
|
813
|
+
"type": "list"
|
814
|
+
}
|
815
|
+
],
|
816
|
+
"usage": "in"
|
817
|
+
},
|
743
818
|
"CloudStorage": {
|
744
819
|
"document": "腾讯云对象存储COS以及第三方云存储的账号信息",
|
745
820
|
"members": [
|
@@ -899,6 +974,15 @@
|
|
899
974
|
"name": "RoomIdType",
|
900
975
|
"required": false,
|
901
976
|
"type": "int"
|
977
|
+
},
|
978
|
+
{
|
979
|
+
"disabled": false,
|
980
|
+
"document": "音频文件上传到云存储的参数",
|
981
|
+
"example": "无",
|
982
|
+
"member": "AuditStorageParams",
|
983
|
+
"name": "AuditStorageParams",
|
984
|
+
"required": false,
|
985
|
+
"type": "object"
|
902
986
|
}
|
903
987
|
],
|
904
988
|
"type": "object"
|
@@ -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",
|
@@ -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",
|
@@ -18614,6 +18621,61 @@
|
|
18614
18621
|
],
|
18615
18622
|
"type": "object"
|
18616
18623
|
},
|
18624
|
+
"DescribeTrafficQosPolicyRequest": {
|
18625
|
+
"document": "DescribeTrafficQosPolicy请求参数结构体",
|
18626
|
+
"members": [
|
18627
|
+
{
|
18628
|
+
"disabled": false,
|
18629
|
+
"document": "CCN实例ID。形如:ccn-f49l6u0z。",
|
18630
|
+
"example": "ccn-gjug0kul",
|
18631
|
+
"member": "string",
|
18632
|
+
"name": "CcnId",
|
18633
|
+
"required": true,
|
18634
|
+
"type": "string"
|
18635
|
+
},
|
18636
|
+
{
|
18637
|
+
"disabled": false,
|
18638
|
+
"document": "本端地域。",
|
18639
|
+
"example": "ap-guangzhou",
|
18640
|
+
"member": "string",
|
18641
|
+
"name": "LocalRegion",
|
18642
|
+
"required": true,
|
18643
|
+
"type": "string"
|
18644
|
+
},
|
18645
|
+
{
|
18646
|
+
"disabled": false,
|
18647
|
+
"document": "远端地域。",
|
18648
|
+
"example": "ap-shanghai",
|
18649
|
+
"member": "string",
|
18650
|
+
"name": "RemoteRegion",
|
18651
|
+
"required": true,
|
18652
|
+
"type": "string"
|
18653
|
+
}
|
18654
|
+
],
|
18655
|
+
"type": "object"
|
18656
|
+
},
|
18657
|
+
"DescribeTrafficQosPolicyResponse": {
|
18658
|
+
"document": "DescribeTrafficQosPolicy返回参数结构体",
|
18659
|
+
"members": [
|
18660
|
+
{
|
18661
|
+
"disabled": false,
|
18662
|
+
"document": "流量调度规则。",
|
18663
|
+
"example": "无",
|
18664
|
+
"member": "TrafficQosPolicySet",
|
18665
|
+
"name": "TrafficQosPolicySet",
|
18666
|
+
"output_required": false,
|
18667
|
+
"type": "list",
|
18668
|
+
"value_allowed_null": false
|
18669
|
+
},
|
18670
|
+
{
|
18671
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
18672
|
+
"member": "string",
|
18673
|
+
"name": "RequestId",
|
18674
|
+
"type": "string"
|
18675
|
+
}
|
18676
|
+
],
|
18677
|
+
"type": "object"
|
18678
|
+
},
|
18617
18679
|
"DescribeUsedIpAddressRequest": {
|
18618
18680
|
"document": "DescribeUsedIpAddress请求参数结构体",
|
18619
18681
|
"members": [
|
@@ -33676,6 +33738,78 @@
|
|
33676
33738
|
],
|
33677
33739
|
"usage": "out"
|
33678
33740
|
},
|
33741
|
+
"TrafficQosPolicySet": {
|
33742
|
+
"document": "流量调度规则",
|
33743
|
+
"members": [
|
33744
|
+
{
|
33745
|
+
"disabled": false,
|
33746
|
+
"document": "CCN实例ID。形如:ccn-f49l6u0z。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33747
|
+
"example": "ccn-gjug0kul",
|
33748
|
+
"member": "string",
|
33749
|
+
"name": "CcnId",
|
33750
|
+
"output_required": false,
|
33751
|
+
"required": false,
|
33752
|
+
"type": "string",
|
33753
|
+
"value_allowed_null": true
|
33754
|
+
},
|
33755
|
+
{
|
33756
|
+
"disabled": false,
|
33757
|
+
"document": "qos id。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33758
|
+
"example": "1",
|
33759
|
+
"member": "uint64",
|
33760
|
+
"name": "QosId",
|
33761
|
+
"output_required": false,
|
33762
|
+
"required": false,
|
33763
|
+
"type": "int",
|
33764
|
+
"value_allowed_null": true
|
33765
|
+
},
|
33766
|
+
{
|
33767
|
+
"disabled": false,
|
33768
|
+
"document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33769
|
+
"example": "test",
|
33770
|
+
"member": "string",
|
33771
|
+
"name": "QosPolicyDescription",
|
33772
|
+
"output_required": false,
|
33773
|
+
"required": false,
|
33774
|
+
"type": "string",
|
33775
|
+
"value_allowed_null": true
|
33776
|
+
},
|
33777
|
+
{
|
33778
|
+
"disabled": false,
|
33779
|
+
"document": "名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33780
|
+
"example": "test",
|
33781
|
+
"member": "string",
|
33782
|
+
"name": "QosPolicyName",
|
33783
|
+
"output_required": false,
|
33784
|
+
"required": false,
|
33785
|
+
"type": "string",
|
33786
|
+
"value_allowed_null": true
|
33787
|
+
},
|
33788
|
+
{
|
33789
|
+
"disabled": false,
|
33790
|
+
"document": "带宽。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33791
|
+
"example": "1",
|
33792
|
+
"member": "uint64",
|
33793
|
+
"name": "Bandwidth",
|
33794
|
+
"output_required": false,
|
33795
|
+
"required": false,
|
33796
|
+
"type": "int",
|
33797
|
+
"value_allowed_null": true
|
33798
|
+
},
|
33799
|
+
{
|
33800
|
+
"disabled": false,
|
33801
|
+
"document": "流量调度策略ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
33802
|
+
"example": "qos-n4i5plee",
|
33803
|
+
"member": "string",
|
33804
|
+
"name": "QosPolicyId",
|
33805
|
+
"output_required": false,
|
33806
|
+
"required": false,
|
33807
|
+
"type": "string",
|
33808
|
+
"value_allowed_null": true
|
33809
|
+
}
|
33810
|
+
],
|
33811
|
+
"usage": "both"
|
33812
|
+
},
|
33679
33813
|
"TransformAddressRequest": {
|
33680
33814
|
"document": "TransformAddress请求参数结构体",
|
33681
33815
|
"members": [
|
@@ -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.1227.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.1227
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|