tccli 3.0.1225.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/billing/v20180709/api.json +23 -23
- tccli/services/billing/v20180709/examples.json +5 -5
- tccli/services/cam/v20190116/api.json +19 -13
- tccli/services/cdb/v20170320/api.json +218 -2
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdwdoris/v20211228/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +1762 -1445
- 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/dts/v20211206/api.json +21 -1
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +297 -0
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/ims/v20201229/api.json +2 -2
- 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/live/live_client.py +53 -0
- tccli/services/live/v20180801/api.json +204 -35
- tccli/services/live/v20180801/examples.json +9 -1
- tccli/services/lke/v20231130/api.json +20 -20
- tccli/services/mps/v20190612/api.json +186 -25
- 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/scf/v20180416/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 +104 -0
- tccli/services/tsf/v20180326/api.json +1287 -118
- tccli/services/tsf/v20180326/examples.json +5 -5
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vclm/v20240523/api.json +77 -6
- tccli/services/vclm/v20240523/examples.json +9 -1
- tccli/services/vclm/vclm_client.py +53 -0
- tccli/services/vdb/v20230616/api.json +29 -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.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/license_files/LICENSE +0 -0
@@ -598,7 +598,7 @@
|
|
598
598
|
{
|
599
599
|
"document": "",
|
600
600
|
"input": "https://tsf.tencentcloudapi.com/?Action=DescribeApplications\n&Offset=0\n&Limit=20\n&SearchWord=driverapi\n&<公共请求参数>",
|
601
|
-
"output": "{\n \"Response\": {\n \"
|
601
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 0,\n \"Content\": [\n {\n \"ApplicationId\": \"abc\",\n \"ApplicationName\": \"abc\",\n \"ApplicationDesc\": \"abc\",\n \"ApplicationType\": \"abc\",\n \"MicroserviceType\": \"abc\",\n \"ProgLang\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\",\n \"ApplicationResourceType\": \"abc\",\n \"ApplicationRuntimeType\": \"abc\",\n \"ApigatewayServiceId\": \"abc\",\n \"ApplicationRemarkName\": \"abc\",\n \"ServiceConfigList\": [\n {\n \"Name\": \"abc\",\n \"Ports\": [\n {\n \"TargetPort\": 1,\n \"Protocol\": \"abc\"\n }\n ],\n \"HealthCheck\": {\n \"Path\": \"abc\"\n }\n }\n ],\n \"IgnoreCreateImageRepository\": true,\n \"ApmInstanceId\": \"abc\",\n \"ApmInstanceName\": \"abc\",\n \"SyncDeleteImageRepository\": true,\n \"MicroserviceSubType\": \"abc\",\n \"ProgramLanguage\": \"abc\",\n \"FrameworkType\": \"abc\"\n }\n ],\n \"SpecTotalCount\": 0\n },\n \"RequestId\": \"abc\"\n }\n}",
|
602
602
|
"title": "查询应用列表示例"
|
603
603
|
}
|
604
604
|
],
|
@@ -694,7 +694,7 @@
|
|
694
694
|
{
|
695
695
|
"document": "",
|
696
696
|
"input": "https://tsf.tencentcloudapi.com/?Action=DescribeContainerEvents\n&ResourceType=instance\n&ResourceId=test-event-6f46bcb6b-sxfcr\n&Offset=0\n&Limit=20\n&<公共请求参数>",
|
697
|
-
"output": "{\n \"Response\": {\n \"
|
697
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 0,\n \"Content\": [\n {\n \"FirstTimestamp\": 0,\n \"LastTimestamp\": 0,\n \"Type\": \"abc\",\n \"Kind\": \"abc\",\n \"Name\": \"abc\",\n \"Reason\": \"abc\",\n \"Message\": \"abc\",\n \"Count\": 0\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
698
698
|
"title": "DescribeContainerEvents"
|
699
699
|
}
|
700
700
|
],
|
@@ -910,7 +910,7 @@
|
|
910
910
|
{
|
911
911
|
"document": "",
|
912
912
|
"input": "https://tsf.tencentcloudapi.com/?Action=DescribeImageRepository\n&Offset=0\n&Limit=20\n&<公共请求参数>",
|
913
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"9cd915d7-f22e-4bb2-904d-4f5c9b002a30\",\n \"Result\": {\n \"Content\": [\n {\n \"Reponame\": \"tsf_100010349923/docker-java-provider\",\n \"Repotype\": \"tcr\",\n \"TagCount\": 0,\n \"IsPublic\": 0,\n \"IsUserFavor\": false,\n \"IsQcloudOfficial\": false,\n \"FavorCount\": 0,\n \"PullCount\": 0,\n \"Description\": \"\",\n \"CreationTime\": \"2019-05-29 15:02:08\",\n \"UpdateTime\": \"2019-05-29 15:02:08\",\n \"TcrRepoInfo\": {\n \"Region\": \"1\",\n \"RegistryId\": \"id\",\n \"RegistryName\": \"tsf/nginx\",\n \"Namespace\": \"tsf\",\n \"RepoName\": \"nginx\"\n },\n \"TcrBindingId\": null,\n \"ApplicationId\": \"abc\",\n \"ApplicationName\": null,\n \"ApplicationNameReal\": \"abc\",\n \"Public\": 0\n }\n ],\n \"TotalCount\": 2,\n \"Server\": \"ccr.ccs.tencentyun.com\"\n }\n }\n}",
|
913
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9cd915d7-f22e-4bb2-904d-4f5c9b002a30\",\n \"Result\": {\n \"Content\": [\n {\n \"Reponame\": \"tsf_100010349923/docker-java-provider\",\n \"Repotype\": \"tcr\",\n \"TagCount\": 0,\n \"CreateMode\": \"manual\",\n \"IsPublic\": 0,\n \"IsUserFavor\": false,\n \"IsQcloudOfficial\": false,\n \"FavorCount\": 0,\n \"PullCount\": 0,\n \"Description\": \"\",\n \"CreationTime\": \"2019-05-29 15:02:08\",\n \"UpdateTime\": \"2019-05-29 15:02:08\",\n \"TcrRepoInfo\": {\n \"Region\": \"1\",\n \"RegistryId\": \"id\",\n \"RegistryName\": \"tsf/nginx\",\n \"Namespace\": \"tsf\",\n \"RepoName\": \"nginx\"\n },\n \"TcrBindingId\": null,\n \"ApplicationId\": \"abc\",\n \"ApplicationName\": null,\n \"ApplicationNameReal\": \"abc\",\n \"Public\": 0\n }\n ],\n \"TotalCount\": 2,\n \"Server\": \"ccr.ccs.tencentyun.com\"\n }\n }\n}",
|
914
914
|
"title": "DescribeImageRepository"
|
915
915
|
}
|
916
916
|
],
|
@@ -1062,7 +1062,7 @@
|
|
1062
1062
|
{
|
1063
1063
|
"document": "",
|
1064
1064
|
"input": "https://tsf.tencentcloudapi.com/?Action=DescribePodInstances\n&GroupId=group-6a73w4v5\n&Offset=0\n&Limit=20\n&<公共请求参数>",
|
1065
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"Content\": [\n {\n \"Status\": \"
|
1065
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"Content\": [\n {\n \"Status\": \"Running\",\n \"ReadyCount\": 2,\n \"RestartCount\": 0,\n \"ServiceInstanceStatus\": \"Running\",\n \"PodId\": \"pod-sss\",\n \"Ip\": \"10.0.1.1\",\n \"Reason\": \"failed\",\n \"InstanceAvailableStatus\": \"Running\",\n \"PodName\": \"pod-sss\",\n \"InstanceStatus\": \"Running\",\n \"NodeIp\": \"10.0.1.0\",\n \"Runtime\": \"runtime\",\n \"NodeInstanceId\": \"id\",\n \"CreatedAt\": \"time\"\n }\n ],\n \"TotalCount\": 1\n },\n \"RequestId\": \"request-123\"\n }\n}",
|
1066
1066
|
"title": "DescribePodInstances"
|
1067
1067
|
}
|
1068
1068
|
],
|
@@ -1150,7 +1150,7 @@
|
|
1150
1150
|
{
|
1151
1151
|
"document": "",
|
1152
1152
|
"input": "https://tsf.tencentcloudapi.com/?Action=DescribeSimpleApplications\n&Offset=50\n&Limit=50\n&<公共请求参数>",
|
1153
|
-
"output": "{\n \"Response\": {\n \"
|
1153
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"TotalCount\": 0,\n \"Content\": [\n {\n \"ApplicationId\": \"abc\",\n \"ApplicationName\": \"abc\",\n \"ApplicationType\": \"abc\",\n \"MicroserviceType\": \"abc\",\n \"ApplicationDesc\": \"abc\",\n \"ProgLang\": \"abc\",\n \"ApplicationResourceType\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\",\n \"ApigatewayServiceId\": \"abc\",\n \"ApplicationRuntimeType\": \"abc\",\n \"AmpInstanceId\": \"abc\",\n \"ApmInstanceName\": \"abc\"\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
1154
1154
|
"title": "查询简单应用列表"
|
1155
1155
|
}
|
1156
1156
|
],
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"status": "online"
|
16
16
|
},
|
17
17
|
"TextToVoice": {
|
18
|
-
"document": "腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。\n腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。\n基础合成支持 SSML,语法详见 [SSML 标记语言](https://cloud.tencent.com/document/product/1073/49575)。\n默认接口请求频率限制:\n精品音色和标准音色:20次/秒\n大模型音色:10次/秒\n
|
18
|
+
"document": "腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。\n腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。\n基础合成支持 SSML,语法详见 [SSML 标记语言](https://cloud.tencent.com/document/product/1073/49575)。\n默认接口请求频率限制:\n精品音色和标准音色:20次/秒\n大模型音色:10次/秒\n一句话复刻音色:暂不支持",
|
19
19
|
"input": "TextToVoiceRequest",
|
20
20
|
"name": "基础语音合成",
|
21
21
|
"output": "TextToVoiceResponse",
|
@@ -499,7 +499,7 @@
|
|
499
499
|
},
|
500
500
|
{
|
501
501
|
"disabled": false,
|
502
|
-
"document": "一句话版声音复刻音色ID
|
502
|
+
"document": "一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。【已废弃】",
|
503
503
|
"example": "无",
|
504
504
|
"member": "string",
|
505
505
|
"name": "FastVoiceType",
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"CheckAnimateImageJob": {
|
4
|
+
"document": "检查图片跳舞输入图",
|
5
|
+
"input": "CheckAnimateImageJobRequest",
|
6
|
+
"name": "校验图片跳舞输入图",
|
7
|
+
"output": "CheckAnimateImageJobResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"ConfirmVideoTranslateJob": {
|
4
11
|
"document": "确认视频转译结果",
|
5
12
|
"input": "ConfirmVideoTranslateJobRequest",
|
@@ -110,6 +117,70 @@
|
|
110
117
|
],
|
111
118
|
"usage": "both"
|
112
119
|
},
|
120
|
+
"CheckAnimateImageJobRequest": {
|
121
|
+
"document": "CheckAnimateImageJob请求参数结构体",
|
122
|
+
"members": [
|
123
|
+
{
|
124
|
+
"disabled": false,
|
125
|
+
"document": "动作模板ID。",
|
126
|
+
"example": "ke3",
|
127
|
+
"member": "string",
|
128
|
+
"name": "TemplateId",
|
129
|
+
"required": true,
|
130
|
+
"type": "string"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"disabled": false,
|
134
|
+
"document": "图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;\n图片分辨率:长边分辨率范围【192,4096】;\n图片大小:不超过10M;\n图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内",
|
135
|
+
"example": "https://console.cloud.tencent.com/cos/image.png",
|
136
|
+
"member": "string",
|
137
|
+
"name": "ImageUrl",
|
138
|
+
"required": false,
|
139
|
+
"type": "string"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"disabled": false,
|
143
|
+
"document": "图片base64数据。\n图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;\n图片分辨率:长边分辨率范围【192,4096】;\n图片大小:不超过10M;\n图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内",
|
144
|
+
"example": "MIIHNjCCBh6gAwIBAgIQCVe4E0h49mzI0NcSqMy1",
|
145
|
+
"member": "string",
|
146
|
+
"name": "ImageBase64",
|
147
|
+
"required": false,
|
148
|
+
"type": "string"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"disabled": false,
|
152
|
+
"document": "是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。",
|
153
|
+
"example": "false",
|
154
|
+
"member": "bool",
|
155
|
+
"name": "EnableBodyJoins",
|
156
|
+
"required": false,
|
157
|
+
"type": "bool"
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"type": "object"
|
161
|
+
},
|
162
|
+
"CheckAnimateImageJobResponse": {
|
163
|
+
"document": "CheckAnimateImageJob返回参数结构体",
|
164
|
+
"members": [
|
165
|
+
{
|
166
|
+
"disabled": false,
|
167
|
+
"document": "输入图是否通过校验。",
|
168
|
+
"example": "true",
|
169
|
+
"member": "bool",
|
170
|
+
"name": "CheckPass",
|
171
|
+
"output_required": false,
|
172
|
+
"type": "bool",
|
173
|
+
"value_allowed_null": false
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
177
|
+
"member": "string",
|
178
|
+
"name": "RequestId",
|
179
|
+
"type": "string"
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"type": "object"
|
183
|
+
},
|
113
184
|
"ConfirmVideoTranslateJobRequest": {
|
114
185
|
"document": "ConfirmVideoTranslateJob请求参数结构体",
|
115
186
|
"members": [
|
@@ -678,8 +749,8 @@
|
|
678
749
|
"members": [
|
679
750
|
{
|
680
751
|
"disabled": false,
|
681
|
-
"document": "图片格式:支持PNG、JPG、JPEG格式;\n
|
682
|
-
"example": "https://
|
752
|
+
"document": "图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;\n图片分辨率:长边分辨率范围【192,4096】;\n图片大小:不超过10M;\n图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内",
|
753
|
+
"example": "https://console.cloud.tencent.com/cos/image.png",
|
683
754
|
"member": "string",
|
684
755
|
"name": "ImageUrl",
|
685
756
|
"required": false,
|
@@ -687,7 +758,7 @@
|
|
687
758
|
},
|
688
759
|
{
|
689
760
|
"disabled": false,
|
690
|
-
"document": "图片base64
|
761
|
+
"document": "图片base64数据。\n图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;\n图片分辨率:长边分辨率范围【192,4096】;\n图片大小:不超过10M;\n图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内",
|
691
762
|
"example": "MIIHNjCCBh6gAwIBAgIQCVe4E0h49mzI0NcSqMy1+jANBgkqhkiG9w0BAQsFADB1 MQswCQYDVQQGEwJVUzEVMBMG",
|
692
763
|
"member": "string",
|
693
764
|
"name": "ImageBase64",
|
@@ -723,7 +794,7 @@
|
|
723
794
|
},
|
724
795
|
{
|
725
796
|
"disabled": false,
|
726
|
-
"document": "
|
797
|
+
"document": "最终视频是否保留原图的背景,默认不保留。\n",
|
727
798
|
"example": "false",
|
728
799
|
"member": "bool",
|
729
800
|
"name": "EnableSegment",
|
@@ -756,8 +827,8 @@
|
|
756
827
|
"members": [
|
757
828
|
{
|
758
829
|
"disabled": false,
|
759
|
-
"document": "
|
760
|
-
"example": "
|
830
|
+
"document": "图片跳舞任务ID。",
|
831
|
+
"example": "1194931538865782784",
|
761
832
|
"member": "string",
|
762
833
|
"name": "JobId",
|
763
834
|
"output_required": false,
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"CheckAnimateImageJob": [
|
4
|
+
{
|
5
|
+
"document": "检测输入图成功案例",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckAnimateImageJob\n<公共请求参数>\n\n{\n \"TemplateId\": \"ke3\",\n \"ImageUrl\": \"https://tencent.cos.ap-guangzhou.myqcloud.com/image-animate/user_input/image.png\",\n \"EnableBodyJoins\": true\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"CheckPass\": true,\n \"RequestId\": \"96c02249-a683-4c0b-ac1c-50a2dee71695\"\n }\n}",
|
8
|
+
"title": "检测输入图成功案例"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"ConfirmVideoTranslateJob": [
|
4
12
|
{
|
5
13
|
"document": "确认视频翻译结果正例",
|
@@ -49,7 +57,7 @@
|
|
49
57
|
"SubmitImageAnimateJob": [
|
50
58
|
{
|
51
59
|
"document": "调用成功示例",
|
52
|
-
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitImageAnimateJob\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://
|
60
|
+
"input": "POST / HTTP/1.1\nHost: vclm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitImageAnimateJob\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://console.cloud.tencent.com/cos/image.png\",\n \"TemplateId\": \"ke3\",\n \"EnableAudio\": true,\n \"EnableBodyJoins\": true,\n \"EnableSegment\": true,\n \"LogoAdd\": 1,\n \"LogoParam\": {\n \"LogoUrl\": \"https://console.cloud.tencent.com/cos/logo.png\",\n \"LogoRect\": {\n \"X\": -222,\n \"Y\": -54,\n \"Width\": 202,\n \"Height\": 34\n }\n }\n}",
|
53
61
|
"output": "{\n \"Response\": {\n \"JobId\": \"1194931538865782784\",\n \"RequestId\": \"4e6722ba-367b-454e-add0-681a5c50fe20\"\n }\n}",
|
54
62
|
"title": "调用成功示例"
|
55
63
|
}
|
@@ -433,6 +433,58 @@ def doSubmitImageAnimateJob(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
+
def doCheckAnimateImageJob(args, parsed_globals):
|
437
|
+
g_param = parse_global_arg(parsed_globals)
|
438
|
+
|
439
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
440
|
+
cred = credential.CVMRoleCredential()
|
441
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
|
+
cred = credential.STSAssumeRoleCredential(
|
443
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
|
+
)
|
446
|
+
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):
|
447
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
448
|
+
else:
|
449
|
+
cred = credential.Credential(
|
450
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
451
|
+
)
|
452
|
+
http_profile = HttpProfile(
|
453
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
454
|
+
reqMethod="POST",
|
455
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
456
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
457
|
+
)
|
458
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
459
|
+
if g_param[OptionsDefine.Language]:
|
460
|
+
profile.language = g_param[OptionsDefine.Language]
|
461
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
462
|
+
client = mod.VclmClient(cred, g_param[OptionsDefine.Region], profile)
|
463
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
464
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
+
model = models.CheckAnimateImageJobRequest()
|
466
|
+
model.from_json_string(json.dumps(args))
|
467
|
+
start_time = time.time()
|
468
|
+
while True:
|
469
|
+
rsp = client.CheckAnimateImageJob(model)
|
470
|
+
result = rsp.to_json_string()
|
471
|
+
try:
|
472
|
+
json_obj = json.loads(result)
|
473
|
+
except TypeError as e:
|
474
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
475
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
476
|
+
break
|
477
|
+
cur_time = time.time()
|
478
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
479
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
480
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
481
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
482
|
+
else:
|
483
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
484
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
485
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
|
+
|
487
|
+
|
436
488
|
def doDescribeVideoStylizationJob(args, parsed_globals):
|
437
489
|
g_param = parse_global_arg(parsed_globals)
|
438
490
|
|
@@ -504,6 +556,7 @@ ACTION_MAP = {
|
|
504
556
|
"DescribePortraitSingJob": doDescribePortraitSingJob,
|
505
557
|
"DescribeImageAnimateJob": doDescribeImageAnimateJob,
|
506
558
|
"SubmitImageAnimateJob": doSubmitImageAnimateJob,
|
559
|
+
"CheckAnimateImageJob": doCheckAnimateImageJob,
|
507
560
|
"DescribeVideoStylizationJob": doDescribeVideoStylizationJob,
|
508
561
|
|
509
562
|
}
|
@@ -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": "按照创建时间筛选实例。",
|
@@ -838,6 +847,26 @@
|
|
838
847
|
"output_required": true,
|
839
848
|
"type": "int",
|
840
849
|
"value_allowed_null": true
|
850
|
+
},
|
851
|
+
{
|
852
|
+
"disabled": false,
|
853
|
+
"document": "旧 ip 保留时长,单位天",
|
854
|
+
"example": "1",
|
855
|
+
"member": "int64",
|
856
|
+
"name": "PreserveDuration",
|
857
|
+
"output_required": false,
|
858
|
+
"type": "int",
|
859
|
+
"value_allowed_null": false
|
860
|
+
},
|
861
|
+
{
|
862
|
+
"disabled": false,
|
863
|
+
"document": "旧 ip 到期时间",
|
864
|
+
"example": "2024 10-30 12:00:00",
|
865
|
+
"member": "string",
|
866
|
+
"name": "ExpireTime",
|
867
|
+
"output_required": false,
|
868
|
+
"type": "string",
|
869
|
+
"value_allowed_null": false
|
841
870
|
}
|
842
871
|
],
|
843
872
|
"usage": "out"
|
@@ -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
|
# 命令行工具简介
|