tccli 3.0.1224.1__py2.py3-none-any.whl → 3.0.1226.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/autoscaling/v20180419/api.json +11 -0
- tccli/services/batch/v20170312/api.json +33 -11
- tccli/services/billing/v20180709/api.json +60 -30
- tccli/services/billing/v20180709/examples.json +7 -7
- tccli/services/cbs/v20170312/api.json +1 -1
- 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 +791 -679
- tccli/services/cvm/v20170312/api.json +33 -11
- tccli/services/cwp/v20180228/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +4 -4
- tccli/services/dts/v20211206/api.json +21 -1
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/ess/v20201111/examples.json +2 -2
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/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/v20190423/api.json +11 -11
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/live/live_client.py +548 -71
- tccli/services/live/v20180801/api.json +803 -45
- tccli/services/live/v20180801/examples.json +73 -1
- tccli/services/lke/v20231130/api.json +1 -1
- tccli/services/mps/v20190612/api.json +174 -13
- tccli/services/mrs/v20200910/api.json +4217 -4211
- tccli/services/mrs/v20200910/examples.json +14 -14
- tccli/services/ocr/ocr_client.py +0 -53
- tccli/services/ocr/v20181119/api.json +0 -162
- tccli/services/ocr/v20181119/examples.json +0 -8
- tccli/services/scf/v20180416/api.json +1 -1
- tccli/services/teo/teo_client.py +159 -0
- tccli/services/teo/v20220901/api.json +199 -0
- tccli/services/teo/v20220901/examples.json +36 -0
- tccli/services/trtc/v20190722/api.json +20 -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 +20 -0
- {tccli-3.0.1224.1.dist-info → tccli-3.0.1226.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1224.1.dist-info → tccli-3.0.1226.1.dist-info}/RECORD +52 -52
- {tccli-3.0.1224.1.dist-info → tccli-3.0.1226.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1224.1.dist-info → tccli-3.0.1226.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1224.1.dist-info → tccli-3.0.1226.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
|
}
|
@@ -838,6 +838,26 @@
|
|
838
838
|
"output_required": true,
|
839
839
|
"type": "int",
|
840
840
|
"value_allowed_null": true
|
841
|
+
},
|
842
|
+
{
|
843
|
+
"disabled": false,
|
844
|
+
"document": "旧 ip 保留时长,单位天",
|
845
|
+
"example": "1",
|
846
|
+
"member": "int64",
|
847
|
+
"name": "PreserveDuration",
|
848
|
+
"output_required": false,
|
849
|
+
"type": "int",
|
850
|
+
"value_allowed_null": false
|
851
|
+
},
|
852
|
+
{
|
853
|
+
"disabled": false,
|
854
|
+
"document": "旧 ip 到期时间",
|
855
|
+
"example": "2024 10-30 12:00:00",
|
856
|
+
"member": "string",
|
857
|
+
"name": "ExpireTime",
|
858
|
+
"output_required": false,
|
859
|
+
"type": "string",
|
860
|
+
"value_allowed_null": false
|
841
861
|
}
|
842
862
|
],
|
843
863
|
"usage": "out"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1226.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.1226
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|