tccli-intl-en 3.0.1265.1__py2.py3-none-any.whl → 3.1.1.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/argument.py +1 -1
- tccli/services/__init__.py +5 -1
- tccli/services/advisor/advisor_client.py +10 -4
- tccli/services/aiart/aiart_client.py +5 -2
- tccli/services/ams/ams_client.py +20 -8
- tccli/services/antiddos/antiddos_client.py +350 -140
- tccli/services/apigateway/apigateway_client.py +465 -186
- tccli/services/apm/apm_client.py +835 -68
- tccli/services/apm/v20210622/api.json +3936 -1145
- tccli/services/apm/v20210622/examples.json +133 -23
- tccli/services/asr/asr_client.py +10 -4
- tccli/services/autoscaling/autoscaling_client.py +290 -116
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/batch/batch_client.py +140 -56
- tccli/services/bi/bi_client.py +120 -48
- tccli/services/billing/billing_client.py +210 -84
- tccli/services/cam/cam_client.py +405 -162
- tccli/services/captcha/captcha_client.py +5 -2
- tccli/services/car/car_client.py +165 -66
- tccli/services/cbs/cbs_client.py +190 -76
- tccli/services/ccc/ccc_client.py +515 -146
- tccli/services/ccc/v20200210/api.json +511 -27
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +665 -266
- tccli/services/cdc/cdc_client.py +100 -40
- tccli/services/cdn/cdn_client.py +220 -88
- tccli/services/cdwdoris/cdwdoris_client.py +385 -154
- tccli/services/cdwpg/cdwpg_client.py +120 -48
- tccli/services/cdz/cdz_client.py +5 -2
- tccli/services/cfg/cfg_client.py +80 -32
- tccli/services/cfs/cfs_client.py +195 -78
- tccli/services/cfw/cfw_client.py +330 -132
- tccli/services/chdfs/chdfs_client.py +145 -58
- tccli/services/ciam/ciam_client.py +80 -32
- tccli/services/ckafka/ckafka_client.py +629 -131
- tccli/services/ckafka/v20190819/api.json +2749 -1470
- tccli/services/ckafka/v20190819/examples.json +209 -155
- tccli/services/clb/clb_client.py +415 -166
- tccli/services/clb/v20180317/api.json +1022 -647
- tccli/services/clb/v20180317/examples.json +19 -19
- tccli/services/cloudaudit/cloudaudit_client.py +90 -36
- tccli/services/cls/cls_client.py +434 -173
- tccli/services/cmq/cmq_client.py +10 -4
- tccli/services/config/config_client.py +30 -12
- tccli/services/controlcenter/controlcenter_client.py +5 -2
- tccli/services/csip/csip_client.py +170 -68
- tccli/services/ctsdb/ctsdb_client.py +10 -4
- tccli/services/cvm/cvm_client.py +420 -168
- tccli/services/cvm/v20170312/api.json +280 -174
- tccli/services/cvm/v20170312/examples.json +116 -116
- tccli/services/cwp/cwp_client.py +2325 -930
- tccli/services/cynosdb/cynosdb_client.py +1887 -577
- tccli/services/cynosdb/v20190107/api.json +11763 -7697
- tccli/services/cynosdb/v20190107/examples.json +132 -4
- tccli/services/dataintegration/dataintegration_client.py +5 -2
- tccli/services/dayu/dayu_client.py +515 -206
- tccli/services/dbbrain/dbbrain_client.py +210 -84
- tccli/services/dc/dc_client.py +90 -36
- tccli/services/dcdb/dcdb_client.py +310 -124
- tccli/services/dlc/dlc_client.py +808 -216
- tccli/services/dlc/v20210125/api.json +534 -13
- tccli/services/dlc/v20210125/examples.json +40 -0
- tccli/services/dms/dms_client.py +10 -4
- tccli/services/dnspod/dnspod_client.py +200 -80
- tccli/services/domain/domain_client.py +120 -48
- tccli/services/dts/dts_client.py +415 -166
- tccli/services/eb/eb_client.py +130 -52
- tccli/services/ecdn/ecdn_client.py +75 -30
- tccli/services/ecm/ecm_client.py +620 -248
- tccli/services/eiam/eiam_client.py +200 -80
- tccli/services/emr/emr_client.py +385 -154
- tccli/services/es/es_client.py +105 -42
- tccli/services/facefusion/facefusion_client.py +15 -6
- tccli/services/faceid/faceid_client.py +95 -38
- tccli/services/faceid/v20180301/examples.json +2 -2
- tccli/services/gaap/gaap_client.py +440 -176
- tccli/services/gme/gme_client.py +50 -20
- tccli/services/gpm/gpm_client.py +90 -36
- tccli/services/gse/gse_client.py +110 -44
- tccli/services/gwlb/gwlb_client.py +90 -36
- tccli/services/iai/iai_client.py +145 -58
- tccli/services/iap/iap_client.py +30 -12
- tccli/services/ims/ims_client.py +5 -2
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +210 -84
- tccli/services/iotcloud/iotcloud_client.py +100 -40
- tccli/services/ip/ip_client.py +30 -12
- tccli/services/kms/kms_client.py +340 -136
- tccli/services/lcic/lcic_client.py +265 -106
- tccli/services/lighthouse/lighthouse_client.py +370 -148
- tccli/services/live/live_client.py +600 -240
- tccli/services/lke/lke_client.py +450 -180
- tccli/services/lkeap/lkeap_client.py +142 -12
- tccli/services/lkeap/v20240522/api.json +263 -0
- tccli/services/lkeap/v20240522/examples.json +35 -1
- tccli/services/mariadb/mariadb_client.py +250 -100
- tccli/services/mdc/mdc_client.py +90 -36
- tccli/services/mdl/mdl_client.py +165 -66
- tccli/services/mdl/v20200326/api.json +186 -12
- tccli/services/mdl/v20200326/examples.json +16 -16
- tccli/services/mdp/mdp_client.py +416 -124
- tccli/services/mdp/v20200527/api.json +146 -14
- tccli/services/mdp/v20200527/examples.json +95 -79
- tccli/services/message/__init__.py +4 -0
- tccli/services/message/message_client.py +210 -0
- tccli/services/message/v20181225/api.json +72 -0
- tccli/services/message/v20181225/examples.json +13 -0
- tccli/services/mongodb/mongodb_client.py +369 -58
- tccli/services/mongodb/v20190725/api.json +811 -226
- tccli/services/mongodb/v20190725/examples.json +54 -22
- tccli/services/monitor/monitor_client.py +1008 -296
- tccli/services/monitor/v20180724/api.json +657 -8
- tccli/services/monitor/v20180724/examples.json +152 -4
- tccli/services/mps/mps_client.py +684 -184
- tccli/services/mps/v20190612/api.json +1656 -222
- tccli/services/mps/v20190612/examples.json +60 -10
- tccli/services/msp/msp_client.py +35 -14
- tccli/services/ocr/ocr_client.py +246 -76
- tccli/services/ocr/v20181119/api.json +119 -10
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/omics/omics_client.py +100 -40
- tccli/services/organization/organization_client.py +580 -232
- tccli/services/postgres/postgres_client.py +455 -182
- tccli/services/privatedns/privatedns_client.py +155 -62
- tccli/services/pts/pts_client.py +240 -96
- tccli/services/quota/quota_client.py +229 -2
- tccli/services/quota/v20241204/api.json +451 -2
- tccli/services/quota/v20241204/examples.json +42 -3
- tccli/services/rce/rce_client.py +5 -2
- tccli/services/redis/redis_client.py +545 -218
- tccli/services/redis/v20180412/api.json +225 -113
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/region/region_client.py +15 -6
- tccli/services/rum/rum_client.py +300 -120
- tccli/services/scf/scf_client.py +210 -84
- tccli/services/ses/ses_client.py +145 -58
- tccli/services/sms/sms_client.py +90 -36
- tccli/services/sqlserver/sqlserver_client.py +695 -278
- tccli/services/ssl/ssl_client.py +190 -76
- tccli/services/ssm/ssm_client.py +120 -48
- tccli/services/sts/sts_client.py +25 -10
- tccli/services/tag/tag_client.py +150 -60
- tccli/services/tat/tat_client.py +95 -38
- tccli/services/tbaas/tbaas_client.py +20 -8
- tccli/services/tcaplusdb/tcaplusdb_client.py +260 -104
- tccli/services/tchd/tchd_client.py +5 -2
- tccli/services/tcmpp/tcmpp_client.py +520 -208
- tccli/services/tcr/tcr_client.py +380 -152
- tccli/services/tcsas/tcsas_client.py +295 -118
- tccli/services/tcsas/v20250106/api.json +101 -61
- tccli/services/tcsas/v20250106/examples.json +2 -2
- tccli/services/tcss/tcss_client.py +1650 -660
- tccli/services/tdid/tdid_client.py +240 -96
- tccli/services/tdmq/tdmq_client.py +470 -188
- tccli/services/tem/tem_client.py +280 -112
- tccli/services/teo/teo_client.py +1365 -483
- tccli/services/teo/v20220901/api.json +354 -39
- tccli/services/teo/v20220901/examples.json +24 -0
- tccli/services/tione/tione_client.py +5 -2
- tccli/services/tiw/tiw_client.py +255 -102
- tccli/services/tke/tke_client.py +690 -276
- tccli/services/tms/tms_client.py +5 -2
- tccli/services/tmt/tmt_client.py +5 -2
- tccli/services/trabbit/trabbit_client.py +145 -58
- tccli/services/trro/trro_client.py +95 -38
- tccli/services/trtc/trtc_client.py +255 -102
- tccli/services/trtc/v20190722/api.json +11 -11
- tccli/services/trtc/v20190722/examples.json +7 -7
- tccli/services/tts/tts_client.py +5 -2
- tccli/services/vclm/vclm_client.py +10 -4
- tccli/services/vm/vm_client.py +20 -8
- tccli/services/vod/vod_client.py +895 -358
- tccli/services/vpc/v20170312/api.json +970 -75
- tccli/services/vpc/v20170312/examples.json +106 -10
- tccli/services/vpc/vpc_client.py +2159 -644
- tccli/services/waf/waf_client.py +535 -214
- tccli/services/wedata/v20250806/api.json +13644 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +6067 -1263
- tccli/services/yunjing/yunjing_client.py +355 -142
- {tccli_intl_en-3.0.1265.1.dist-info → tccli_intl_en-3.1.1.1.dist-info}/METADATA +4 -7
- {tccli_intl_en-3.0.1265.1.dist-info → tccli_intl_en-3.1.1.1.dist-info}/RECORD +186 -180
- {tccli_intl_en-3.0.1265.1.dist-info → tccli_intl_en-3.1.1.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1265.1.dist-info → tccli_intl_en-3.1.1.1.dist-info}/entry_points.txt +0 -1
- {tccli_intl_en-3.0.1265.1.dist-info → tccli_intl_en-3.1.1.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1265.1.dist-info → tccli_intl_en-3.1.1.1.dist-info}/top_level.txt +0 -0
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
],
|
|
109
109
|
"CreateLiveRecordTemplate": [
|
|
110
110
|
{
|
|
111
|
-
"document": "This example shows you how to create a live
|
|
112
|
-
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLiveRecordTemplate\n<Common request parameters>\n\n{\n \"HLSConfigure\": {\n \"ItemDuration\": 10,\n \"Interval\": 3600\n },\n \"Name\": \"Template 1\",\n \"Comment\": \"
|
|
111
|
+
"document": "This example shows you how to create a live recording template.",
|
|
112
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateLiveRecordTemplate\n<Common request parameters>\n\n{\n \"HLSConfigure\": {\n \"ItemDuration\": 10,\n \"Interval\": 3600\n },\n \"Name\": \"Template 1\",\n \"Comment\": \"Template description\"\n}",
|
|
113
113
|
"output": "{\n \"Response\": {\n \"Definition\": 20001,\n \"RequestId\": \"12ae8cxc-dce3-4151-9cyt-5594145287e1\"\n }\n}",
|
|
114
|
-
"title": "Creating a Live
|
|
114
|
+
"title": "Creating a Live Recording Template"
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
117
|
"CreatePersonSample": [
|
|
@@ -152,6 +152,20 @@
|
|
|
152
152
|
"title": "Configuring a transcoding rule"
|
|
153
153
|
}
|
|
154
154
|
],
|
|
155
|
+
"CreateSmartEraseTemplate": [
|
|
156
|
+
{
|
|
157
|
+
"document": "This example shows you how to create a subtitle erasing template with extraction and translation features.",
|
|
158
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSmartEraseTemplate\n<Common request parameters>\n\n{\n \"Name\": \"Subtitle erasing template 2.\",\n \"EraseType\": \"subtitle\",\n \"EraseSubtitleConfig\": {\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"OcrSwitch\": \"ON\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleFormat\": \"vtt\",\n \"TransSwitch\": \"ON\",\n \"TransDstLang\": \"en\"\n }\n}",
|
|
159
|
+
"output": "{\n \"Response\": {\n \"Definition\": 200409,\n \"RequestId\": \"ac14b422-1c7b-407d-9b95-530f1eea063d\"\n }\n}",
|
|
160
|
+
"title": "Creating a Subtitle Erasing Template with Extraction and Translation Features"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"document": "This example shows you how to create a subtitle erasing template that has the capability to detect and erase the text in the preset area while also allowing for direct erasure in the specified area during the specified time period.",
|
|
164
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSmartEraseTemplate\n<Common request parameters>\n\n{\n \"Name\": \"Subtitle erasing template 2.\",\n \"EraseType\": \"subtitle\",\n \"EraseSubtitleConfig\": {\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"CustomAreas\": [\n {\n \"BeginMs\": 200,\n \"EndMs\": 3000,\n \"Areas\": [\n {\n \"LeftTopX\": 0.05,\n \"LeftTopY\": 0.1,\n \"RightBottomX\": 0.75,\n \"RightBottomY\": 0.9,\n \"Unit\": 1\n }\n ]\n }\n ]\n }\n}",
|
|
165
|
+
"output": "{\n \"Response\": {\n \"Definition\": 200410,\n \"RequestId\": \"835f2ecd-8666-4717-998b-02680437a8ef\"\n }\n}",
|
|
166
|
+
"title": "Creating a Subtitle Erasing Template with Automatic and Area Erasing Capabilities"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
155
169
|
"CreateSmartSubtitleTemplate": [
|
|
156
170
|
{
|
|
157
171
|
"document": "",
|
|
@@ -179,9 +193,9 @@
|
|
|
179
193
|
"CreateWatermarkTemplate": [
|
|
180
194
|
{
|
|
181
195
|
"document": " ",
|
|
182
|
-
"input": "
|
|
183
|
-
"output": "{\n \"Response\": {\n \"Definition\":
|
|
184
|
-
"title": "Creating a
|
|
196
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWatermarkTemplate\n<Common request parameters>\n\n{\n\"Name\": \"Watermark Template 1\",\n\"Comment\": \"svg watermark\"\n \"Type\": \"svg\",\n \"CoordinateOrigin\": \"TopRight\",\n \"XPos\": \"5%\",\n \"YPos\": \"5%\",\n \"ImageTemplate\": {\n \"ImageContent\": \"\",\n \"Width\": \"10%\",\n \"Height\": \"0px\",\n \"RepeatType\": \"once\"\n },\n \"TextTemplate\": {\n \"FontType\": \"arial.ttf\",\n \"FontSize\": \"10px\",\n \"FontColor\": \"#ffffff\",\n \"FontAlpha\": 0.5\n },\n \"SvgTemplate\": {\n \"Width\": \"10%\",\n \"Height\": \"0px\"\n }\n}",
|
|
197
|
+
"output": "{\n \"Response\": {\n \"Definition\": 123,\n \"ImageUrl\": \"\",\n \"RequestId\": \"93dda61a-c2c5-465d-a78c-0860997fb01b\"\n }\n}",
|
|
198
|
+
"title": "Creating a Watermark Template"
|
|
185
199
|
}
|
|
186
200
|
],
|
|
187
201
|
"CreateWordSamples": [
|
|
@@ -314,6 +328,14 @@
|
|
|
314
328
|
"title": "Deleting a scheme"
|
|
315
329
|
}
|
|
316
330
|
],
|
|
331
|
+
"DeleteSmartEraseTemplate": [
|
|
332
|
+
{
|
|
333
|
+
"document": "This example shows you how to delete the specified smart erasing template.",
|
|
334
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteSmartEraseTemplate\n<Common request parameters>\n\n{\n \"Definition\": 200019\n}",
|
|
335
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3d3a3b90-9be7-4a3c-bd53-52fe399d976c\"\n }\n}",
|
|
336
|
+
"title": "Deleting the Specified Smart Erasing Template"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
317
339
|
"DeleteSmartSubtitleTemplate": [
|
|
318
340
|
{
|
|
319
341
|
"document": "This example shows you how to delete a user-defined smart subtitle template.",
|
|
@@ -514,6 +536,20 @@
|
|
|
514
536
|
"title": "Querying a scheme"
|
|
515
537
|
}
|
|
516
538
|
],
|
|
539
|
+
"DescribeSmartEraseTemplates": [
|
|
540
|
+
{
|
|
541
|
+
"document": "This example shows you how to query information about all smart erasing templates, including system preset templates and custom templates.",
|
|
542
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSmartEraseTemplates\n<Common request parameters>\n\n{}",
|
|
543
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e2ad2688-ca7c-4f85-bbb0-1cfbdf258013\",\n \"SmartEraseTemplateSet\": [\n {\n \"AliasName\": \"FaceAndLicensePlateBlur\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 302,\n \"ErasePrivacyConfig\": {\n \"PrivacyModel\": \"blur\",\n \"PrivacyTargets\": [\n \"plate\",\n \"face\"\n ]\n },\n \"EraseSubtitleConfig\": null,\n \"EraseType\": \"privacy\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"The human face and license plate are blurred.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"FaceBlur\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 301,\n \"ErasePrivacyConfig\": {\n \"PrivacyModel\": \"blur\",\n \"PrivacyTargets\": [\n \"face\"\n ]\n },\n \"EraseSubtitleConfig\": null,\n \"EraseType\": \"privacy\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"The human face is blurred.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"WatermarkRemoval-AdvancedVersion\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 201,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": null,\n \"EraseType\": \"watermark\",\n \"EraseWatermarkConfig\": {\n \"WatermarkEraseMethod\": \"auto\",\n \"WatermarkModel\": \"advanced\"\n },\n \"Name\": \"Watermark removal-Advanced Edition.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"SubtitleRemoval_OCRExtractSubtitlesAndTranslateToEnglish\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 103,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"ON\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleModel\": \"standard\",\n \"TransDstLang\": \"en\",\n \"TransSwitch\": \"ON\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Subtitle removal_extract subtitles through OCR and translate them into English.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T18:36:53+08:00\"\n },\n {\n \"AliasName\": \"SubtitleRemovalAndOCRExtractSubtitles\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 102,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"ON\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleFormat\": \"vtt\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Subtitle removal_extract subtitles through OCR.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T18:36:53+08:00\"\n },\n {\n \"AliasName\": \"SubtitleRemoval\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-15T10:51:04+08:00\",\n \"Definition\": 101,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Subtitle removal.\",\n \"Type\": \"Preset\",\n \"UpdateTime\": \"2025-07-15T10:51:04+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-08-04T15:16:25+08:00\",\n \"Definition\": 200385,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 8.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T20:49:04+08:00\",\n \"Definition\": 200022,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 7.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T20:48:48+08:00\",\n \"Definition\": 200021,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 6.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n },\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T19:21:24+08:00\",\n \"Definition\": 200019,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"custom\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 5.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n }\n ],\n \"TotalCount\": 14\n }\n}",
|
|
544
|
+
"title": "Querying All Smart Erasing Templates"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"document": "This example shows you how to query information about the specified smart erasing template.",
|
|
548
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSmartEraseTemplates\n<Common request parameters>\n\n{\n \"Definitions\": [\n 200019\n ]\n}",
|
|
549
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"83c6c7c2-3dab-4c6a-bedb-227371c038c0\",\n \"SmartEraseTemplateSet\": [\n {\n \"AliasName\": \"\",\n \"Comment\": \"\",\n \"CreateTime\": \"2025-07-02T19:21:24+08:00\",\n \"Definition\": 200019,\n \"ErasePrivacyConfig\": null,\n \"EraseSubtitleConfig\": {\n \"OcrSwitch\": \"OFF\",\n \"SubtitleEraseMethod\": \"custom\",\n \"SubtitleModel\": \"standard\",\n \"TransSwitch\": \"OFF\"\n },\n \"EraseType\": \"subtitle\",\n \"EraseWatermarkConfig\": null,\n \"Name\": \"Testing 5.\",\n \"Type\": \"Custom\",\n \"UpdateTime\": \"2025-08-04T20:08:14+08:00\"\n }\n ],\n \"TotalCount\": 1\n }\n}",
|
|
550
|
+
"title": "Querying the Specified Smart Erasing Template"
|
|
551
|
+
}
|
|
552
|
+
],
|
|
517
553
|
"DescribeSmartSubtitleTemplates": [
|
|
518
554
|
{
|
|
519
555
|
"document": "",
|
|
@@ -600,8 +636,8 @@
|
|
|
600
636
|
{
|
|
601
637
|
"document": "This example shows you how to query the workflow with ID 78459.",
|
|
602
638
|
"input": "https://mps.tencentcloudapi.com/?Action=DescribeWorkflows\n&WorkflowIds.0=78459\n&<Common request parameters>",
|
|
603
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"WorkflowInfoSet\": [\n {\n \"WorkflowId\": 0,\n \"WorkflowName\": \"abc\",\n \"Status\": \"abc\",\n \"Trigger\": {\n \"Type\": \"abc\",\n \"CosFileUploadTrigger\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ]\n },\n \"AwsS3FileUploadTrigger\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ],\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n },\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"MediaProcessTask\": {\n \"TranscodeTaskSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 0,\n \"RemoveAudio\": 0,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n },\n \"StdExtInfo\": \"abc\",\n \"EnhanceConfig\": {\n \"VideoEnhance\": {\n \"FrameRate\": {\n \"Switch\": \"abc\",\n \"Fps\": 1\n },\n \"SuperResolution\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\",\n \"Size\": 0\n },\n \"Hdr\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"Denoise\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ImageQualityEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ColorEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"SharpEnhance\": {\n \"Switch\": \"abc\",\n \"Intensity\": 0\n },\n \"FaceEnhance\": {\n \"Switch\": \"abc\",\n \"Intensity\": 0\n },\n \"LowLightEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ScratchRepair\": {\n \"Switch\": \"abc\",\n \"Intensity\": 0\n },\n \"ArtifactRepair\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n }\n },\n \"AudioEnhance\": {\n \"Denoise\": {\n \"Switch\": \"abc\"\n },\n \"Separate\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\",\n \"Track\": \"abc\"\n },\n \"VolumeBalance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"Beautify\": {\n \"Switch\": \"abc\",\n \"Types\": [\n \"abc\"\n ]\n }\n }\n }\n },\n \"OverrideParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 1,\n \"RemoveAudio\": 1,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"ContentAdaptStream\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0,\n \"StreamSelects\": [\n 0\n ]\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n },\n \"SubtitleTemplate\": {\n \"Path\": \"abc\",\n \"StreamIndex\": 0,\n \"FontType\": \"abc\",\n \"FontSize\": \"abc\",\n \"FontColor\": \"abc\",\n \"FontAlpha\": 0\n },\n \"AddonAudioStream\": [\n {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n ],\n \"StdExtInfo\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\",\n \"Subtitle\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n }\n ]\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"MosaicSet\": [\n {\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n },\n \"HeadTailParameter\": {}\n }\n ],\n \"AnimatedGraphicTaskSet\": [\n {\n \"Definition\": 1,\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\"\n }\n ],\n \"SnapshotByTimeOffsetTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"ExtTimeOffsetSet\": [\n \"abc\"\n ],\n \"TimeOffsetSet\": [\n 0\n ],\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"SampleSnapshotTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"ImageSpriteTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputObjectPath\": \"abc\",\n \"WebVttObjectName\": \"abc\"\n }\n ],\n \"AdaptiveDynamicStreamingTaskSet\": [\n {\n \"Definition\": 1,\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SubStreamObjectName\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\"\n }\n ],\n \"DrmInfo\": {\n \"Type\": \"abc\",\n \"SimpleAesDrm\": {\n \"Uri\": \"abc\",\n \"Key\": \"abc\",\n \"Vector\": \"abc\"\n }\n },\n \"DefinitionType\": \"abc\"\n }\n ]\n },\n \"AiContentReviewTask\": {\n \"Definition\": 1\n },\n \"AiAnalysisTask\": {\n \"Definition\": 1,\n \"ExtendedParameter\": \"abc\"\n },\n \"AiRecognitionTask\": {\n \"Definition\": 1\n },\n \"TaskNotifyConfig\": {\n \"NotifyType\": \"abc\",\n \"NotifyMode\": \"abc\",\n \"NotifyUrl\": \"abc\",\n \"CmqModel\": \"abc\",\n \"CmqRegion\": \"abc\",\n \"TopicName\": \"abc\",\n \"QueueName\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n },\n \"NotifyKey\": \"abc\"\n },\n \"TaskPriority\": 0,\n \"OutputDir\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
|
604
|
-
"title": "Querying a Workflow"
|
|
639
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"WorkflowInfoSet\": [\n {\n \"WorkflowId\": 0,\n \"WorkflowName\": \"abc\",\n \"Status\": \"abc\",\n \"Trigger\": {\n \"Type\": \"abc\",\n \"CosFileUploadTrigger\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ]\n },\n \"AwsS3FileUploadTrigger\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"Dir\": \"abc\",\n \"Formats\": [\n \"abc\"\n ],\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n },\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"MediaProcessTask\": {\n \"TranscodeTaskSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 0,\n \"RemoveAudio\": 0,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n },\n \"StdExtInfo\": \"abc\",\n \"EnhanceConfig\": {\n \"VideoEnhance\": {\n \"FrameRate\": {\n \"Switch\": \"abc\",\n \"Fps\": 1\n },\n \"SuperResolution\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\",\n \"Size\": 0\n },\n \"Hdr\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"Denoise\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ImageQualityEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ColorEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"LowLightEnhance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"ScratchRepair\": {\n \"Switch\": \"abc\",\n \"Intensity\": 0\n },\n \"ArtifactRepair\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n }\n },\n \"AudioEnhance\": {\n \"Denoise\": {\n \"Switch\": \"abc\"\n },\n \"Separate\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\",\n \"Track\": \"abc\"\n },\n \"VolumeBalance\": {\n \"Switch\": \"abc\",\n \"Type\": \"abc\"\n },\n \"Beautify\": {\n \"Switch\": \"abc\",\n \"Types\": [\n \"abc\"\n ]\n }\n }\n }\n },\n \"OverrideParameter\": {\n \"Container\": \"abc\",\n \"RemoveVideo\": 1,\n \"RemoveAudio\": 1,\n \"VideoTemplate\": {\n \"Codec\": \"abc\",\n \"Fps\": 0,\n \"Bitrate\": 0,\n \"ResolutionAdaptive\": \"abc\",\n \"Width\": 1,\n \"Height\": 1,\n \"Gop\": 1,\n \"FillType\": \"abc\",\n \"Vcrf\": 1,\n \"ContentAdaptStream\": 1,\n \"HlsTime\": 1,\n \"SegmentType\": 0\n },\n \"AudioTemplate\": {\n \"Codec\": \"abc\",\n \"Bitrate\": 0,\n \"SampleRate\": 1,\n \"AudioChannel\": 0,\n \"StreamSelects\": [\n 0\n ]\n },\n \"TEHDConfig\": {\n \"Type\": \"abc\",\n \"MaxVideoBitrate\": 0\n },\n \"SubtitleTemplate\": {\n \"Path\": \"abc\",\n \"StreamIndex\": 0,\n \"FontType\": \"abc\",\n \"FontSize\": \"abc\",\n \"FontColor\": \"abc\",\n \"FontAlpha\": 0\n },\n \"AddonAudioStream\": [\n {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n ],\n \"StdExtInfo\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\",\n \"Subtitle\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n }\n }\n ]\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"MosaicSet\": [\n {\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n },\n \"HeadTailParameter\": {}\n }\n ],\n \"AnimatedGraphicTaskSet\": [\n {\n \"Definition\": 1,\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\"\n }\n ],\n \"SnapshotByTimeOffsetTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"ExtTimeOffsetSet\": [\n \"abc\"\n ],\n \"TimeOffsetSet\": [\n 0\n ],\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"SampleSnapshotTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputObjectPath\": \"abc\",\n \"ObjectNumberFormat\": {\n \"InitialValue\": 1,\n \"Increment\": 1,\n \"MinLength\": 1,\n \"PlaceHolder\": \"abc\"\n }\n }\n ],\n \"ImageSpriteTaskSet\": [\n {\n \"Definition\": 1,\n \"OutputObjectPath\": \"abc\",\n \"WebVttObjectName\": \"abc\"\n }\n ],\n \"AdaptiveDynamicStreamingTaskSet\": [\n {\n \"Definition\": 1,\n \"WatermarkSet\": [\n {\n \"Definition\": 1,\n \"RawParameter\": {\n \"Type\": \"abc\",\n \"CoordinateOrigin\": \"abc\",\n \"XPos\": \"abc\",\n \"YPos\": \"abc\",\n \"ImageTemplate\": {\n \"ImageContent\": {\n \"Type\": \"abc\",\n \"CosInputInfo\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"Object\": \"abc\"\n },\n \"UrlInputInfo\": {\n \"Url\": \"abc\"\n },\n \"S3InputInfo\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3Object\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"Width\": \"abc\",\n \"Height\": \"abc\",\n \"RepeatType\": \"abc\"\n }\n },\n \"TextContent\": \"abc\",\n \"SvgContent\": \"abc\",\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0\n }\n ],\n \"OutputStorage\": {\n \"Type\": \"abc\",\n \"CosOutputStorage\": {\n \"Bucket\": \"abc\",\n \"Region\": \"abc\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"abc\",\n \"S3Region\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n }\n },\n \"OutputObjectPath\": \"abc\",\n \"SubStreamObjectName\": \"abc\",\n \"SegmentObjectName\": \"abc\",\n \"AddOnSubtitles\": [\n {\n \"Type\": \"abc\"\n }\n ],\n \"DrmInfo\": {\n \"Type\": \"abc\",\n \"SimpleAesDrm\": {\n \"Uri\": \"abc\",\n \"Key\": \"abc\",\n \"Vector\": \"abc\"\n }\n },\n \"DefinitionType\": \"abc\"\n }\n ]\n },\n \"AiContentReviewTask\": {\n \"Definition\": 1\n },\n \"AiAnalysisTask\": {\n \"Definition\": 1,\n \"ExtendedParameter\": \"abc\"\n },\n \"AiRecognitionTask\": {\n \"Definition\": 1\n },\n \"TaskNotifyConfig\": {\n \"NotifyType\": \"abc\",\n \"NotifyMode\": \"abc\",\n \"NotifyUrl\": \"abc\",\n \"CmqModel\": \"abc\",\n \"CmqRegion\": \"abc\",\n \"TopicName\": \"abc\",\n \"QueueName\": \"abc\",\n \"AwsSQS\": {\n \"SQSRegion\": \"abc\",\n \"SQSQueueName\": \"abc\",\n \"S3SecretId\": \"abc\",\n \"S3SecretKey\": \"abc\"\n },\n \"NotifyKey\": \"abc\"\n },\n \"TaskPriority\": 0,\n \"OutputDir\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
|
640
|
+
"title": "Querying a Specific Workflow"
|
|
605
641
|
}
|
|
606
642
|
],
|
|
607
643
|
"DisableSchedule": [
|
|
@@ -822,6 +858,20 @@
|
|
|
822
858
|
"title": "Modifying Orchestration"
|
|
823
859
|
}
|
|
824
860
|
],
|
|
861
|
+
"ModifySmartEraseTemplate": [
|
|
862
|
+
{
|
|
863
|
+
"document": "This example shows you how to modify a subtitle erasing template and enable the OCR extraction and translation features.",
|
|
864
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySmartEraseTemplate\n<Common request parameters>\n\n{\n \"Definition\": 200410,\n \"EraseSubtitleConfig\": {\n \"SubtitleEraseMethod\": \"auto\",\n \"SubtitleModel\": \"standard\",\n \"OcrSwitch\": \"ON\",\n \"SubtitleLang\": \"zh_en\",\n \"SubtitleFormat\": \"vtt\",\n \"TransSwitch\": \"ON\",\n \"TransDstLang\": \"en\"\n }\n}",
|
|
865
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"84265f8e-43ec-4449-9521-b9332f64ee79\"\n }\n}",
|
|
866
|
+
"title": "Modifying a Subtitle Erasing Template and Enabling the Extraction Feature"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"document": "This example shows you how to modify a watermark erasing template and change the watermark erasing model to the Advanced Edition.",
|
|
870
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySmartEraseTemplate\n<Common request parameters>\n\n{\n \"Definition\": 200407,\n \"EraseWatermarkConfig\": {\n \"WatermarkEraseMethod\": \"auto\",\n \"WatermarkModel\": \"advanced\"\n }\n}",
|
|
871
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e4d526f3-f1bb-4030-9f0d-00df485a7eae\"\n }\n}",
|
|
872
|
+
"title": "Modifying a Watermark Erasing Template and Changing the Model"
|
|
873
|
+
}
|
|
874
|
+
],
|
|
825
875
|
"ModifySmartSubtitleTemplate": [
|
|
826
876
|
{
|
|
827
877
|
"document": "",
|
|
@@ -879,8 +929,8 @@
|
|
|
879
929
|
"ParseNotification": [
|
|
880
930
|
{
|
|
881
931
|
"document": "This example shows you how to parse an event notification.",
|
|
882
|
-
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ParseNotification\n<Common request parameters>\n\n
|
|
883
|
-
"output": "{\n \"Response\": {\n \"EventType\": \"WorkflowTask\",\n \"WorkflowTaskEvent\": {\n \"TaskId\": \"1256768367-Procedure-475b7237438a39560b9879a4556cb177t1\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"TopRankVideo-125xxx88\",\n \"Region\": \"ap-chongqing\",\n \"Object\": \"/movie/201907/WildAnimal.mov\"\n },\n \"UrlInputInfo\": null,\n \"S3InputInfo\": null\n },\n \"MetaData\": {\n \"AudioDuration\": 59.990001678467,\n \"AudioStreamSet\": [\n {\n \"Bitrate\": 383854,\n \"SamplingRate\": 48000,\n \"Codec\": \"aac\",\n \"Channel\": 0\n }\n ],\n \"Bitrate\": 1021028,\n \"Container\": \"mov,mp4,m4a,3gp,3g2,mj2\",\n \"Duration\": 60,\n \"Height\": 480,\n \"Rotate\": 0,\n \"Size\": 7700180,\n \"VideoDuration\": 60,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 637174,\n \"Codec\": \"h264\",\n \"Fps\": 23,\n \"Height\": 480,\n \"Width\": 640,\n \"ColorPrimaries\": \"
|
|
932
|
+
"input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ParseNotification\n<Common request parameters>\n\n{\n \"Content\": \"{\\\"EventType\\\":\\\"ProcedureStateChanged\\\",XXX\"\n}",
|
|
933
|
+
"output": "{\n \"Response\": {\n \"EventType\": \"WorkflowTask\",\n \"WorkflowTaskEvent\": {\n \"TaskId\": \"1256768367-Procedure-475b7237438a39560b9879a4556cb177t1\",\n \"Status\": \"FINISH\",\n \"ErrCode\": 0,\n \"Message\": \"\",\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"TopRankVideo-125xxx88\",\n \"Region\": \"ap-chongqing\",\n \"Object\": \"/movie/201907/WildAnimal.mov\"\n },\n \"UrlInputInfo\": null,\n \"S3InputInfo\": null\n },\n \"MetaData\": {\n \"AudioDuration\": 59.990001678467,\n \"AudioStreamSet\": [\n {\n \"Bitrate\": 383854,\n \"SamplingRate\": 48000,\n \"Codec\": \"aac\",\n \"Channel\": 0\n }\n ],\n \"Bitrate\": 1021028,\n \"Container\": \"mov,mp4,m4a,3gp,3g2,mj2\",\n \"Duration\": 60,\n \"Height\": 480,\n \"Rotate\": 0,\n \"Size\": 7700180,\n \"VideoDuration\": 60,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 637174,\n \"Codec\": \"h264\",\n \"Fps\": 23,\n \"Height\": 480,\n \"Width\": 640,\n \"ColorPrimaries\": \"bt470bg\",\n \"ColorSpace\": \"gbr\",\n \"ColorTransfer\": \"bt709\",\n \"HdrType\": \"sdr\",\n \"Codecs\": \"avc1.ffe100\"\n }\n ],\n \"Width\": 640\n },\n \"MediaProcessResultSet\": [\n {\n \"Type\": \"Transcode\",\n \"TranscodeTask\": {\n \"Status\": \"SUCCESS\",\n \"ErrCodeExt\": \"SUCCESS\",\n \"ErrCode\": 0,\n \"Message\": \"SUCCESS\",\n \"Progress\": 0,\n \"Input\": {\n \"Definition\": 20,\n \"WatermarkSet\": null,\n \"OutputObjectPath\": \"\",\n \"RawParameter\": null,\n \"StartTimeOffset\": 0,\n \"EndTimeOffset\": 0,\n \"OverrideParameter\": null,\n \"ObjectNumberFormat\": null,\n \"OutputStorage\": null,\n \"SegmentObjectName\": \"\",\n \"HeadTailParameter\": null,\n \"MosaicSet\": []\n },\n \"Output\": {\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"test-123\",\n \"Region\": \"ap-nanjing\"\n },\n \"S3OutputStorage\": {\n \"S3Bucket\": \"test-223\",\n \"S3Region\": \"us-east-1\",\n \"S3SecretId\": \"TEST**************K5W\",\n \"S3SecretKey\": \"testab****************0SS\"\n }\n },\n \"Path\": \"/movie/201907/WildAnimal_transcode_20.mp4\",\n \"Size\": 4189073,\n \"Container\": \"mov,mp4,m4a,3gp,3g2,mj2\",\n \"Height\": 480,\n \"Width\": 640,\n \"Bitrate\": 552218,\n \"Md5\": \"eff7031ad7877865f9a3240e9ab165ad\",\n \"Duration\": 60.04700088501,\n \"VideoStreamSet\": [\n {\n \"Bitrate\": 503727,\n \"Codec\": \"h264\",\n \"Fps\": 24,\n \"Height\": 480,\n \"Width\": 640,\n \"ColorPrimaries\": \"bt470bg\",\n \"ColorSpace\": \"gbr\",\n \"ColorTransfer\": \"bt709\",\n \"HdrType\": \"sdr\",\n \"Codecs\": \"avc1.ffe100\"\n }\n ],\n \"AudioStreamSet\": [\n {\n \"Bitrate\": 48491,\n \"Codec\": \"aac\",\n \"SamplingRate\": 44100,\n \"Channel\": 0\n }\n ],\n \"Definition\": 0\n }\n },\n \"AnimatedGraphicTask\": null,\n \"SnapshotByTimeOffsetTask\": null,\n \"SampleSnapshotTask\": null,\n \"ImageSpriteTask\": null,\n \"AdaptiveDynamicStreamingTask\": null\n }\n ],\n \"AiQualityControlTaskResult\": null,\n \"AiAnalysisResultSet\": [],\n \"AiRecognitionResultSet\": [],\n \"AiContentReviewResultSet\": []\n },\n \"RequestId\": \"335bdaa3-db0e-46ce-9946-51941d9cb0f5\",\n \"ScheduleTaskEvent\": null,\n \"EditMediaTaskEvent\": null,\n \"SessionId\": \"\",\n \"SessionContext\": \"\"\n }\n}",
|
|
884
934
|
"title": "Parsing an Event Notification"
|
|
885
935
|
}
|
|
886
936
|
],
|
tccli/services/msp/msp_client.py
CHANGED
|
@@ -27,7 +27,10 @@ def doListMigrationTask(args, parsed_globals):
|
|
|
27
27
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
28
28
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
29
29
|
)
|
|
30
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
30
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
31
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
32
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
33
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
31
34
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
32
35
|
else:
|
|
33
36
|
cred = credential.Credential(
|
|
@@ -39,7 +42,7 @@ def doListMigrationTask(args, parsed_globals):
|
|
|
39
42
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
40
43
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
41
44
|
)
|
|
42
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
45
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
43
46
|
if g_param[OptionsDefine.Language]:
|
|
44
47
|
profile.language = g_param[OptionsDefine.Language]
|
|
45
48
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -79,7 +82,10 @@ def doRegisterMigrationTask(args, parsed_globals):
|
|
|
79
82
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
80
83
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
81
84
|
)
|
|
82
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
85
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
86
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
87
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
88
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
83
89
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
84
90
|
else:
|
|
85
91
|
cred = credential.Credential(
|
|
@@ -91,7 +97,7 @@ def doRegisterMigrationTask(args, parsed_globals):
|
|
|
91
97
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
92
98
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
93
99
|
)
|
|
94
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
100
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
95
101
|
if g_param[OptionsDefine.Language]:
|
|
96
102
|
profile.language = g_param[OptionsDefine.Language]
|
|
97
103
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -131,7 +137,10 @@ def doModifyMigrationTaskStatus(args, parsed_globals):
|
|
|
131
137
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
132
138
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
133
139
|
)
|
|
134
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
140
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
141
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
142
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
143
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
135
144
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
136
145
|
else:
|
|
137
146
|
cred = credential.Credential(
|
|
@@ -143,7 +152,7 @@ def doModifyMigrationTaskStatus(args, parsed_globals):
|
|
|
143
152
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
144
153
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
145
154
|
)
|
|
146
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
155
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
147
156
|
if g_param[OptionsDefine.Language]:
|
|
148
157
|
profile.language = g_param[OptionsDefine.Language]
|
|
149
158
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -183,7 +192,10 @@ def doDeregisterMigrationTask(args, parsed_globals):
|
|
|
183
192
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
184
193
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
185
194
|
)
|
|
186
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
195
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
196
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
197
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
198
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
187
199
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
188
200
|
else:
|
|
189
201
|
cred = credential.Credential(
|
|
@@ -195,7 +207,7 @@ def doDeregisterMigrationTask(args, parsed_globals):
|
|
|
195
207
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
196
208
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
197
209
|
)
|
|
198
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
210
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
199
211
|
if g_param[OptionsDefine.Language]:
|
|
200
212
|
profile.language = g_param[OptionsDefine.Language]
|
|
201
213
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -235,7 +247,10 @@ def doDescribeMigrationTask(args, parsed_globals):
|
|
|
235
247
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
236
248
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
237
249
|
)
|
|
238
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
250
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
251
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
252
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
253
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
239
254
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
240
255
|
else:
|
|
241
256
|
cred = credential.Credential(
|
|
@@ -247,7 +262,7 @@ def doDescribeMigrationTask(args, parsed_globals):
|
|
|
247
262
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
248
263
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
249
264
|
)
|
|
250
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
265
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
251
266
|
if g_param[OptionsDefine.Language]:
|
|
252
267
|
profile.language = g_param[OptionsDefine.Language]
|
|
253
268
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -287,7 +302,10 @@ def doModifyMigrationTaskBelongToProject(args, parsed_globals):
|
|
|
287
302
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
288
303
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
289
304
|
)
|
|
290
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
305
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
306
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
307
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
308
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
291
309
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
292
310
|
else:
|
|
293
311
|
cred = credential.Credential(
|
|
@@ -299,7 +317,7 @@ def doModifyMigrationTaskBelongToProject(args, parsed_globals):
|
|
|
299
317
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
300
318
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
301
319
|
)
|
|
302
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
320
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
303
321
|
if g_param[OptionsDefine.Language]:
|
|
304
322
|
profile.language = g_param[OptionsDefine.Language]
|
|
305
323
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -339,7 +357,10 @@ def doListMigrationProject(args, parsed_globals):
|
|
|
339
357
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
340
358
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
341
359
|
)
|
|
342
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
360
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
361
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
362
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
363
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
343
364
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
344
365
|
else:
|
|
345
366
|
cred = credential.Credential(
|
|
@@ -351,7 +372,7 @@ def doListMigrationProject(args, parsed_globals):
|
|
|
351
372
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
352
373
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
353
374
|
)
|
|
354
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
375
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
355
376
|
if g_param[OptionsDefine.Language]:
|
|
356
377
|
profile.language = g_param[OptionsDefine.Language]
|
|
357
378
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|