tccli-intl-en 3.0.1188.1__py2.py3-none-any.whl → 3.1.28.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/plugins/sso/__init__.py +14 -0
- tccli/plugins/sso/login.py +23 -6
- tccli/plugins/sso/texts.py +4 -0
- tccli/services/__init__.py +46 -2
- tccli/services/advisor/advisor_client.py +10 -4
- tccli/services/ai3d/__init__.py +4 -0
- tccli/services/ai3d/ai3d_client.py +266 -0
- tccli/services/ai3d/v20250513/api.json +264 -0
- tccli/services/ai3d/v20250513/examples.json +20 -0
- 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 +341 -114
- tccli/services/autoscaling/v20180419/api.json +444 -272
- tccli/services/autoscaling/v20180419/examples.json +46 -38
- tccli/services/batch/batch_client.py +140 -56
- tccli/services/bi/__init__.py +4 -0
- tccli/services/bi/bi_client.py +1498 -0
- tccli/services/bi/v20220105/api.json +5769 -0
- tccli/services/bi/v20220105/examples.json +215 -0
- tccli/services/billing/billing_client.py +1007 -139
- tccli/services/billing/v20180709/api.json +1707 -429
- tccli/services/billing/v20180709/examples.json +161 -25
- tccli/services/cam/cam_client.py +405 -162
- tccli/services/captcha/captcha_client.py +5 -2
- tccli/services/captcha/v20190722/api.json +16 -6
- tccli/services/captcha/v20190722/examples.json +3 -3
- tccli/services/car/car_client.py +165 -66
- tccli/services/cbs/cbs_client.py +190 -76
- tccli/services/ccc/ccc_client.py +1167 -268
- tccli/services/ccc/v20200210/api.json +2263 -202
- tccli/services/ccc/v20200210/examples.json +116 -12
- tccli/services/cdb/cdb_client.py +665 -266
- tccli/services/cdb/v20170320/api.json +463 -208
- tccli/services/cdb/v20170320/examples.json +8 -8
- tccli/services/cdc/cdc_client.py +100 -40
- tccli/services/cdc/v20201214/api.json +2 -2
- tccli/services/cdc/v20201214/examples.json +4 -4
- tccli/services/cdn/cdn_client.py +220 -88
- tccli/services/cdn/v20180606/api.json +22 -22
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cdwdoris/cdwdoris_client.py +385 -154
- tccli/services/cdwpg/cdwpg_client.py +120 -48
- tccli/services/cdz/__init__.py +4 -0
- tccli/services/cdz/cdz_client.py +210 -0
- tccli/services/cdz/v20221123/api.json +233 -0
- tccli/services/cdz/v20221123/examples.json +12 -0
- tccli/services/cfg/cfg_client.py +80 -32
- tccli/services/cfg/v20210820/api.json +30 -10
- tccli/services/cfg/v20210820/examples.json +1 -1
- 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 +1149 -259
- tccli/services/ckafka/v20190819/api.json +3738 -1696
- tccli/services/ckafka/v20190819/examples.json +266 -162
- tccli/services/clb/clb_client.py +1054 -469
- tccli/services/clb/v20180317/api.json +2273 -1020
- tccli/services/clb/v20180317/examples.json +184 -124
- tccli/services/cloudaudit/cloudaudit_client.py +90 -36
- tccli/services/cls/cls_client.py +434 -173
- tccli/services/cmq/cmq_client.py +14 -803
- tccli/services/cmq/v20190304/api.json +173 -1367
- tccli/services/cmq/v20190304/examples.json +0 -120
- tccli/services/config/config_client.py +30 -12
- tccli/services/controlcenter/controlcenter_client.py +229 -2
- tccli/services/controlcenter/v20230110/api.json +528 -5
- tccli/services/controlcenter/v20230110/examples.json +32 -0
- tccli/services/csip/csip_client.py +339 -78
- tccli/services/csip/v20221121/api.json +1011 -38
- tccli/services/csip/v20221121/examples.json +24 -0
- tccli/services/ctsdb/__init__.py +4 -0
- tccli/services/ctsdb/ctsdb_client.py +266 -0
- tccli/services/ctsdb/v20230202/api.json +677 -0
- tccli/services/ctsdb/v20230202/examples.json +20 -0
- tccli/services/cvm/cvm_client.py +706 -189
- tccli/services/cvm/v20170312/api.json +1003 -453
- tccli/services/cvm/v20170312/examples.json +176 -130
- tccli/services/cwp/cwp_client.py +2325 -930
- tccli/services/cynosdb/cynosdb_client.py +2272 -591
- tccli/services/cynosdb/v20190107/api.json +12480 -7740
- tccli/services/cynosdb/v20190107/examples.json +193 -9
- 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 +859 -214
- tccli/services/dlc/v20210125/api.json +637 -13
- tccli/services/dlc/v20210125/examples.json +48 -0
- tccli/services/dms/dms_client.py +10 -4
- tccli/services/dnspod/dnspod_client.py +390 -111
- tccli/services/dnspod/v20210323/api.json +196 -0
- tccli/services/dnspod/v20210323/examples.json +24 -0
- 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 +3104 -117
- tccli/services/emr/v20190103/api.json +15311 -4361
- tccli/services/emr/v20190103/examples.json +452 -42
- 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/api.json +172 -45
- tccli/services/faceid/v20180301/examples.json +3 -3
- 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/hunyuan/__init__.py +4 -0
- tccli/services/hunyuan/hunyuan_client.py +490 -0
- tccli/services/hunyuan/v20230901/api.json +566 -0
- tccli/services/hunyuan/v20230901/examples.json +52 -0
- tccli/services/iai/iai_client.py +145 -58
- tccli/services/iai/v20200303/api.json +187 -51
- tccli/services/iai/v20200303/examples.json +30 -12
- tccli/services/iap/iap_client.py +30 -12
- tccli/services/ims/ims_client.py +5 -2
- tccli/services/ims/v20201229/api.json +133 -141
- tccli/services/ims/v20201229/examples.json +3 -3
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +363 -78
- tccli/services/intlpartnersmgt/v20220928/api.json +513 -22
- tccli/services/intlpartnersmgt/v20220928/examples.json +24 -0
- tccli/services/iotcloud/iotcloud_client.py +100 -40
- tccli/services/iotcloud/v20210408/api.json +216 -107
- tccli/services/iotcloud/v20210408/examples.json +9 -9
- tccli/services/ip/ip_client.py +30 -12
- tccli/services/kms/kms_client.py +1226 -227
- tccli/services/kms/v20190118/api.json +1465 -123
- tccli/services/kms/v20190118/examples.json +129 -3
- tccli/services/lcic/lcic_client.py +265 -106
- tccli/services/lighthouse/lighthouse_client.py +730 -172
- tccli/services/lighthouse/v20200324/api.json +502 -14
- tccli/services/lighthouse/v20200324/examples.json +59 -5
- tccli/services/live/live_client.py +804 -232
- tccli/services/live/v20180801/api.json +272 -0
- tccli/services/live/v20180801/examples.json +32 -0
- tccli/services/lke/__init__.py +4 -0
- tccli/services/lke/lke_client.py +5194 -0
- tccli/services/lke/v20231130/api.json +14803 -0
- tccli/services/lke/v20231130/examples.json +736 -0
- tccli/services/lkeap/__init__.py +4 -0
- tccli/services/lkeap/lkeap_client.py +602 -0
- tccli/services/lkeap/v20240522/api.json +989 -0
- tccli/services/lkeap/v20240522/examples.json +92 -0
- tccli/services/mariadb/mariadb_client.py +250 -100
- tccli/services/mdc/mdc_client.py +90 -36
- tccli/services/mdl/mdl_client.py +402 -82
- tccli/services/mdl/v20200326/api.json +1437 -100
- tccli/services/mdl/v20200326/examples.json +48 -16
- tccli/services/mdp/mdp_client.py +785 -122
- tccli/services/mdp/v20200527/api.json +1336 -49
- tccli/services/mdp/v20200527/examples.json +151 -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 +1452 -136
- tccli/services/mongodb/v20190725/api.json +4393 -1462
- tccli/services/mongodb/v20190725/examples.json +265 -71
- tccli/services/monitor/monitor_client.py +1008 -296
- tccli/services/monitor/v20180724/api.json +664 -15
- tccli/services/monitor/v20180724/examples.json +152 -4
- tccli/services/mps/mps_client.py +1878 -379
- tccli/services/mps/v20190612/api.json +7473 -1626
- tccli/services/mps/v20190612/examples.json +276 -82
- tccli/services/mqtt/__init__.py +4 -0
- tccli/services/mqtt/mqtt_client.py +1610 -0
- tccli/services/mqtt/v20240516/api.json +3057 -0
- tccli/services/mqtt/v20240516/examples.json +213 -0
- tccli/services/msp/msp_client.py +35 -14
- tccli/services/ocr/ocr_client.py +515 -74
- tccli/services/ocr/v20181119/api.json +1991 -168
- tccli/services/ocr/v20181119/examples.json +58 -4
- 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/postgres/v20170312/api.json +134 -109
- tccli/services/postgres/v20170312/examples.json +14 -14
- tccli/services/privatedns/privatedns_client.py +206 -60
- tccli/services/privatedns/v20201028/api.json +179 -0
- tccli/services/privatedns/v20201028/examples.json +8 -0
- tccli/services/pts/pts_client.py +240 -96
- tccli/services/quota/__init__.py +4 -0
- tccli/services/quota/quota_client.py +434 -0
- tccli/services/quota/v20241204/api.json +548 -0
- tccli/services/quota/v20241204/examples.json +51 -0
- tccli/services/rce/rce_client.py +5 -2
- tccli/services/redis/redis_client.py +698 -212
- tccli/services/redis/v20180412/api.json +968 -563
- tccli/services/redis/v20180412/examples.json +98 -56
- tccli/services/region/__init__.py +4 -0
- tccli/services/region/region_client.py +322 -0
- tccli/services/region/v20220627/api.json +399 -0
- tccli/services/region/v20220627/examples.json +29 -0
- tccli/services/rum/rum_client.py +300 -120
- tccli/services/scf/scf_client.py +210 -84
- tccli/services/ses/ses_client.py +368 -69
- tccli/services/ses/v20201002/api.json +240 -0
- tccli/services/ses/v20201002/examples.json +32 -0
- tccli/services/smh/__init__.py +4 -0
- tccli/services/smh/smh_client.py +714 -0
- tccli/services/smh/v20210712/api.json +1287 -0
- tccli/services/smh/v20210712/examples.json +85 -0
- tccli/services/sms/sms_client.py +90 -36
- tccli/services/sqlserver/sqlserver_client.py +3855 -470
- tccli/services/sqlserver/v20180328/api.json +9757 -3347
- tccli/services/sqlserver/v20180328/examples.json +480 -20
- tccli/services/ssl/ssl_client.py +504 -72
- tccli/services/ssl/v20191205/api.json +789 -21
- tccli/services/ssl/v20191205/examples.json +54 -0
- 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/tcaplusdb/v20190823/api.json +836 -760
- tccli/services/tcaplusdb/v20190823/examples.json +3 -3
- 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 +1084 -980
- tccli/services/tcsas/v20250106/examples.json +15 -15
- tccli/services/tcss/tcss_client.py +1650 -660
- tccli/services/tdid/tdid_client.py +240 -96
- tccli/services/tdmq/tdmq_client.py +2876 -466
- tccli/services/tdmq/v20200217/api.json +11607 -3958
- tccli/services/tdmq/v20200217/examples.json +562 -264
- tccli/services/tem/tem_client.py +280 -112
- tccli/services/teo/teo_client.py +4507 -966
- tccli/services/teo/v20220901/api.json +7341 -1405
- tccli/services/teo/v20220901/examples.json +679 -99
- tccli/services/tione/__init__.py +4 -0
- tccli/services/tione/tione_client.py +210 -0
- tccli/services/tione/v20211111/api.json +3074 -0
- tccli/services/tione/v20211111/examples.json +12 -0
- tccli/services/tiw/tiw_client.py +255 -102
- tccli/services/tke/tke_client.py +858 -276
- tccli/services/tke/v20180525/api.json +227 -0
- tccli/services/tke/v20180525/examples.json +24 -0
- tccli/services/tms/tms_client.py +5 -2
- tccli/services/tms/v20201229/api.json +91 -100
- tccli/services/tmt/tmt_client.py +5 -2
- tccli/services/trabbit/trabbit_client.py +145 -58
- tccli/services/trocket/__init__.py +4 -0
- tccli/services/trocket/trocket_client.py +2450 -0
- tccli/services/trocket/v20230308/api.json +6062 -0
- tccli/services/trocket/v20230308/examples.json +339 -0
- tccli/services/trro/trro_client.py +95 -38
- tccli/services/trtc/trtc_client.py +928 -192
- tccli/services/trtc/v20190722/api.json +1810 -256
- tccli/services/trtc/v20190722/examples.json +100 -6
- tccli/services/tts/tts_client.py +5 -2
- tccli/services/vclm/vclm_client.py +10 -4
- tccli/services/vm/v20210922/api.json +61 -30
- tccli/services/vm/v20210922/examples.json +0 -12
- tccli/services/vm/vm_client.py +20 -8
- tccli/services/vod/v20180717/api.json +531 -54
- tccli/services/vod/v20180717/examples.json +25 -7
- tccli/services/vod/v20240718/api.json +1105 -0
- tccli/services/vod/v20240718/examples.json +97 -0
- tccli/services/vod/vod_client.py +1428 -350
- tccli/services/vpc/v20170312/api.json +1031 -133
- tccli/services/vpc/v20170312/examples.json +119 -23
- tccli/services/vpc/vpc_client.py +2159 -644
- tccli/services/waf/v20180125/api.json +1372 -194
- tccli/services/waf/v20180125/examples.json +89 -1
- tccli/services/waf/waf_client.py +1149 -245
- 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.1188.1.dist-info → tccli_intl_en-3.1.28.1.dist-info}/METADATA +4 -7
- {tccli_intl_en-3.0.1188.1.dist-info → tccli_intl_en-3.1.28.1.dist-info}/RECORD +292 -232
- {tccli_intl_en-3.0.1188.1.dist-info → tccli_intl_en-3.1.28.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1188.1.dist-info → tccli_intl_en-3.1.28.1.dist-info}/entry_points.txt +0 -1
- {tccli_intl_en-3.0.1188.1.dist-info → tccli_intl_en-3.1.28.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1188.1.dist-info → tccli_intl_en-3.1.28.1.dist-info}/top_level.txt +0 -0
|
@@ -420,8 +420,9 @@
|
|
|
420
420
|
"document": "CancelTask request structure.",
|
|
421
421
|
"members": [
|
|
422
422
|
{
|
|
423
|
+
"disabled": false,
|
|
423
424
|
"document": "Task ID",
|
|
424
|
-
"example": "
|
|
425
|
+
"example": "w-video-aDKaIiA4vq3ZaAA1",
|
|
425
426
|
"member": "string",
|
|
426
427
|
"name": "TaskId",
|
|
427
428
|
"required": true,
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
"document": "CancelTask response structure.",
|
|
435
436
|
"members": [
|
|
436
437
|
{
|
|
437
|
-
"document": "The unique request ID,
|
|
438
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
438
439
|
"member": "string",
|
|
439
440
|
"name": "RequestId",
|
|
440
441
|
"type": "string"
|
|
@@ -528,6 +529,7 @@
|
|
|
528
529
|
"document": "DescribeTaskDetail request structure.",
|
|
529
530
|
"members": [
|
|
530
531
|
{
|
|
532
|
+
"disabled": false,
|
|
531
533
|
"document": "Task ID, which is returned after a task is created",
|
|
532
534
|
"example": "task-video-Xw0mjnmaiu-Uv1fs",
|
|
533
535
|
"member": "string",
|
|
@@ -536,6 +538,7 @@
|
|
|
536
538
|
"type": "string"
|
|
537
539
|
},
|
|
538
540
|
{
|
|
541
|
+
"disabled": false,
|
|
539
542
|
"document": "Whether to show all segments. If it’s not specified, only hit segments are shown.",
|
|
540
543
|
"example": "true",
|
|
541
544
|
"member": "bool",
|
|
@@ -550,187 +553,207 @@
|
|
|
550
553
|
"document": "DescribeTaskDetail response structure.",
|
|
551
554
|
"members": [
|
|
552
555
|
{
|
|
556
|
+
"disabled": false,
|
|
553
557
|
"document": "This field is used to return the task ID (in the `Results` parameter) after a video moderation task is created. It is used to identify the moderation task for which to query the details.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
554
558
|
"example": "task-video-XwxJtbkKXWgCt8AZ",
|
|
555
559
|
"member": "string",
|
|
556
560
|
"name": "TaskId",
|
|
557
|
-
"
|
|
561
|
+
"output_required": true,
|
|
558
562
|
"type": "string",
|
|
559
563
|
"value_allowed_null": true
|
|
560
564
|
},
|
|
561
565
|
{
|
|
566
|
+
"disabled": false,
|
|
562
567
|
"document": "This field is used to return the data ID parameter passed in when the video moderation API is called for easier data identification and management.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
563
568
|
"example": "data_test_01",
|
|
564
569
|
"member": "string",
|
|
565
570
|
"name": "DataId",
|
|
566
|
-
"
|
|
571
|
+
"output_required": true,
|
|
567
572
|
"type": "string",
|
|
568
573
|
"value_allowed_null": true
|
|
569
574
|
},
|
|
570
575
|
{
|
|
576
|
+
"disabled": false,
|
|
571
577
|
"document": "This field is used to return the `BizType` parameter passed in when the video moderation API is called for easier data identification and management.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
572
578
|
"example": "1001",
|
|
573
579
|
"member": "string",
|
|
574
580
|
"name": "BizType",
|
|
575
|
-
"
|
|
581
|
+
"output_required": true,
|
|
576
582
|
"type": "string",
|
|
577
583
|
"value_allowed_null": true
|
|
578
584
|
},
|
|
579
585
|
{
|
|
586
|
+
"disabled": false,
|
|
580
587
|
"document": "This field is used to return the task name in the `TaskInput` parameter passed in when the video moderation API is called for easier task identification and management.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
581
588
|
"example": "22",
|
|
582
589
|
"member": "string",
|
|
583
590
|
"name": "Name",
|
|
584
|
-
"
|
|
591
|
+
"output_required": true,
|
|
585
592
|
"type": "string",
|
|
586
593
|
"value_allowed_null": true
|
|
587
594
|
},
|
|
588
595
|
{
|
|
596
|
+
"disabled": false,
|
|
589
597
|
"document": "This field is used to return the task status of the queried content.\n<br>Valid values: **FINISH** (task completed), **PENDING** (task pending), **RUNNING** (task in progress), **ERROR** (task error), **CANCELLED** (task canceled).\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
590
598
|
"example": "FINISH",
|
|
591
599
|
"member": "string",
|
|
592
600
|
"name": "Status",
|
|
593
|
-
"
|
|
601
|
+
"output_required": true,
|
|
594
602
|
"type": "string",
|
|
595
603
|
"value_allowed_null": true
|
|
596
604
|
},
|
|
597
605
|
{
|
|
606
|
+
"disabled": false,
|
|
598
607
|
"document": "This field is used to return the type of video for moderation. Valid values: `VIDEO` (video on demand), `LIVE_VIDEO` (video live streaming). Default value: `VIDEO`.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
599
608
|
"example": "VIDEO",
|
|
600
609
|
"member": "string",
|
|
601
610
|
"name": "Type",
|
|
602
|
-
"
|
|
611
|
+
"output_required": true,
|
|
603
612
|
"type": "string",
|
|
604
613
|
"value_allowed_null": true
|
|
605
614
|
},
|
|
606
615
|
{
|
|
616
|
+
"disabled": false,
|
|
607
617
|
"document": "This field is used to return the operation suggestion for the maliciousness tag. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Block**, **Review**, **Pass**.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
608
618
|
"example": "Block",
|
|
609
619
|
"member": "string",
|
|
610
620
|
"name": "Suggestion",
|
|
611
|
-
"
|
|
621
|
+
"output_required": true,
|
|
612
622
|
"type": "string",
|
|
613
623
|
"value_allowed_null": true
|
|
614
624
|
},
|
|
615
625
|
{
|
|
626
|
+
"disabled": false,
|
|
616
627
|
"document": "This field is used to return the maliciousness tag in the detection result.<br>Values: `Normal`: normal; `Porn`: pornographic; `Abuse`: abusive; `Ad`: advertising; `Custom`: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
617
628
|
"example": "无",
|
|
618
629
|
"member": "TaskLabel",
|
|
619
630
|
"name": "Labels",
|
|
620
|
-
"
|
|
631
|
+
"output_required": true,
|
|
621
632
|
"type": "list",
|
|
622
633
|
"value_allowed_null": true
|
|
623
634
|
},
|
|
624
635
|
{
|
|
636
|
+
"disabled": false,
|
|
625
637
|
"document": "This field is used to return the details of the input media file, including encoding/decoding formats and segment length. For details, see the description of the `MediaInfo` data structure.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
626
638
|
"example": "无",
|
|
627
639
|
"member": "MediaInfo",
|
|
628
640
|
"name": "MediaInfo",
|
|
629
|
-
"
|
|
641
|
+
"output_required": true,
|
|
630
642
|
"type": "object",
|
|
631
643
|
"value_allowed_null": true
|
|
632
644
|
},
|
|
633
645
|
{
|
|
646
|
+
"disabled": false,
|
|
634
647
|
"document": "This field is used to return the media content information of the moderation service, mainly including the input file type and access URL.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
635
648
|
"example": "无",
|
|
636
649
|
"member": "InputInfo",
|
|
637
650
|
"name": "InputInfo",
|
|
638
|
-
"
|
|
651
|
+
"output_required": true,
|
|
639
652
|
"type": "object",
|
|
640
653
|
"value_allowed_null": true
|
|
641
654
|
},
|
|
642
655
|
{
|
|
656
|
+
"disabled": false,
|
|
643
657
|
"document": "This field is used to return the creation time of the queried task in ISO 8601 format.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
644
658
|
"example": "2020-07-13T11:47:01.925Z",
|
|
645
659
|
"member": "string",
|
|
646
660
|
"name": "CreatedAt",
|
|
647
|
-
"
|
|
661
|
+
"output_required": true,
|
|
648
662
|
"type": "string",
|
|
649
663
|
"value_allowed_null": true
|
|
650
664
|
},
|
|
651
665
|
{
|
|
666
|
+
"disabled": false,
|
|
652
667
|
"document": "This field is used to return the last update time of the queried task in ISO 8601 format.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
653
668
|
"example": "2020-07-13T11:47:25.840Z",
|
|
654
669
|
"member": "string",
|
|
655
670
|
"name": "UpdatedAt",
|
|
656
|
-
"
|
|
671
|
+
"output_required": true,
|
|
657
672
|
"type": "string",
|
|
658
673
|
"value_allowed_null": true
|
|
659
674
|
},
|
|
660
675
|
{
|
|
676
|
+
"disabled": false,
|
|
661
677
|
"document": "Specifies how long, in seconds, to retry\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
662
678
|
"example": "0",
|
|
663
679
|
"member": "int64",
|
|
664
680
|
"name": "TryInSeconds",
|
|
665
|
-
"
|
|
681
|
+
"output_required": true,
|
|
666
682
|
"type": "int",
|
|
667
683
|
"value_allowed_null": true
|
|
668
684
|
},
|
|
669
685
|
{
|
|
686
|
+
"disabled": false,
|
|
670
687
|
"document": "This field is used to return the moderation result of the frames captured from the video. For the detailed returned content, see the description of the `ImageSegments` data structure.<br>Note: the data is valid for 24 hours. To extend the storage period, set it in the configured COS bucket.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
671
688
|
"example": "无",
|
|
672
689
|
"member": "ImageSegments",
|
|
673
690
|
"name": "ImageSegments",
|
|
674
|
-
"
|
|
691
|
+
"output_required": true,
|
|
675
692
|
"type": "list",
|
|
676
693
|
"value_allowed_null": true
|
|
677
694
|
},
|
|
678
695
|
{
|
|
696
|
+
"disabled": false,
|
|
679
697
|
"document": "This field is used to return the moderation result of the audio in the video. For the detailed returned content, see the description of the `AudioSegments` data structure.<br>Note: the data is valid for 24 hours. To extend the storage period, set it in the configured COS bucket.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
680
698
|
"example": "无",
|
|
681
699
|
"member": "AudioSegments",
|
|
682
700
|
"name": "AudioSegments",
|
|
683
|
-
"
|
|
701
|
+
"output_required": true,
|
|
684
702
|
"type": "list",
|
|
685
703
|
"value_allowed_null": true
|
|
686
704
|
},
|
|
687
705
|
{
|
|
706
|
+
"disabled": false,
|
|
688
707
|
"document": "When the task status is `Error`, the type of the error will be returned. Valid values: **DECODE_ERROR**: decoding failed (the input resource may contain video that cannot be decoded).\n**URL_ERROR**: download address verification failed.\n**TIMEOUT_ERROR**: processing timed out. When the task status is not `Error`, null will be returned by default.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
689
|
-
"example": "
|
|
708
|
+
"example": "URL_ERROR",
|
|
690
709
|
"member": "string",
|
|
691
710
|
"name": "ErrorType",
|
|
692
|
-
"
|
|
711
|
+
"output_required": true,
|
|
693
712
|
"type": "string",
|
|
694
713
|
"value_allowed_null": true
|
|
695
714
|
},
|
|
696
715
|
{
|
|
716
|
+
"disabled": false,
|
|
697
717
|
"document": "If the task status is `Error`, this field will return the error message; otherwise, null will be returned by default.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
698
|
-
"example": "
|
|
718
|
+
"example": "InvalidArgument",
|
|
699
719
|
"member": "string",
|
|
700
720
|
"name": "ErrorDescription",
|
|
701
|
-
"
|
|
721
|
+
"output_required": true,
|
|
702
722
|
"type": "string",
|
|
703
723
|
"value_allowed_null": true
|
|
704
724
|
},
|
|
705
725
|
{
|
|
726
|
+
"disabled": false,
|
|
706
727
|
"document": "If the recognition result is normal, this parameter is returned with the value `Normal`. If malicious content is recognized, the tag with the highest priority in the result of `Labels` is returned.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
707
728
|
"example": "Normal",
|
|
708
729
|
"member": "string",
|
|
709
730
|
"name": "Label",
|
|
710
|
-
"
|
|
731
|
+
"output_required": true,
|
|
711
732
|
"type": "string",
|
|
712
733
|
"value_allowed_null": true
|
|
713
734
|
},
|
|
714
735
|
{
|
|
736
|
+
"disabled": false,
|
|
715
737
|
"document": "This field is used to return the recognized text content of an audio file. **Up to the first 1,000 characters** can be recognized.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
716
|
-
"example": "
|
|
738
|
+
"example": "金牌讲师认证",
|
|
717
739
|
"member": "string",
|
|
718
740
|
"name": "AudioText",
|
|
719
|
-
"
|
|
741
|
+
"output_required": true,
|
|
720
742
|
"type": "string",
|
|
721
743
|
"value_allowed_null": true
|
|
722
744
|
},
|
|
723
745
|
{
|
|
746
|
+
"disabled": false,
|
|
724
747
|
"document": "The text content recognized from the audio \nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
725
748
|
"example": "无",
|
|
726
749
|
"member": "RcbAsr",
|
|
727
750
|
"name": "Asrs",
|
|
728
|
-
"
|
|
751
|
+
"output_required": true,
|
|
729
752
|
"type": "list",
|
|
730
753
|
"value_allowed_null": true
|
|
731
754
|
},
|
|
732
755
|
{
|
|
733
|
-
"document": "The unique request ID,
|
|
756
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
734
757
|
"member": "string",
|
|
735
758
|
"name": "RequestId",
|
|
736
759
|
"type": "string"
|
|
@@ -742,6 +765,7 @@
|
|
|
742
765
|
"document": "DescribeTasks request structure.",
|
|
743
766
|
"members": [
|
|
744
767
|
{
|
|
768
|
+
"disabled": false,
|
|
745
769
|
"document": "This parameter indicates the number of tasks to be displayed on each page of the task list. **Default value: 10**.",
|
|
746
770
|
"example": "无",
|
|
747
771
|
"member": "int64",
|
|
@@ -750,6 +774,7 @@
|
|
|
750
774
|
"type": "int"
|
|
751
775
|
},
|
|
752
776
|
{
|
|
777
|
+
"disabled": false,
|
|
753
778
|
"document": "This parameter indicates the input parameter of the task filter. You can filter tasks by business type, file type, processing suggestion, and task status. For the specific parameter content, see the detailed description of the `TaskFilter` data structure.",
|
|
754
779
|
"example": "无",
|
|
755
780
|
"member": "TaskFilter",
|
|
@@ -758,6 +783,7 @@
|
|
|
758
783
|
"type": "object"
|
|
759
784
|
},
|
|
760
785
|
{
|
|
786
|
+
"disabled": false,
|
|
761
787
|
"document": "This parameter indicates the `Token` information used during pagination. It is automatically generated by the system and will be passed to the next generated page for easy and fast pagination. When you turn to the last page, this field will be empty.",
|
|
762
788
|
"example": "无",
|
|
763
789
|
"member": "string",
|
|
@@ -766,6 +792,7 @@
|
|
|
766
792
|
"type": "string"
|
|
767
793
|
},
|
|
768
794
|
{
|
|
795
|
+
"disabled": false,
|
|
769
796
|
"document": "This parameter indicates the start time of the task list in ISO 8601 timestamp format. **Default value: 3 days ago**. If this parameter is passed in, tasks between this time point and `EndTime` will be filtered out.<br>Note: this parameter is used together with `Filter` to filter tasks in no particular order.",
|
|
770
797
|
"example": "无",
|
|
771
798
|
"member": "datetime_iso",
|
|
@@ -774,6 +801,7 @@
|
|
|
774
801
|
"type": "string"
|
|
775
802
|
},
|
|
776
803
|
{
|
|
804
|
+
"disabled": false,
|
|
777
805
|
"document": "This parameter indicates the end time of the task list in ISO 8601 timestamp format. **Default value: empty**. If this parameter is passed in, tasks between `StartTime` and this time point will be filtered out.<br>Note: this parameter is used together with `Filter` to filter tasks in no particular order.",
|
|
778
806
|
"example": "无",
|
|
779
807
|
"member": "datetime_iso",
|
|
@@ -788,34 +816,37 @@
|
|
|
788
816
|
"document": "DescribeTasks response structure.",
|
|
789
817
|
"members": [
|
|
790
818
|
{
|
|
819
|
+
"disabled": false,
|
|
791
820
|
"document": "This field is used to return the total number of queried tasks in the format of `int` string.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
792
821
|
"example": "1",
|
|
793
822
|
"member": "string",
|
|
794
823
|
"name": "Total",
|
|
795
|
-
"
|
|
824
|
+
"output_required": true,
|
|
796
825
|
"type": "string",
|
|
797
826
|
"value_allowed_null": true
|
|
798
827
|
},
|
|
799
828
|
{
|
|
829
|
+
"disabled": false,
|
|
800
830
|
"document": "This field is used to return the detailed data of the tasks on the current page. For the specific output content, see the detailed description of the `TaskData` data structure.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
801
831
|
"example": "无",
|
|
802
832
|
"member": "TaskData",
|
|
803
833
|
"name": "Data",
|
|
804
|
-
"
|
|
834
|
+
"output_required": true,
|
|
805
835
|
"type": "list",
|
|
806
836
|
"value_allowed_null": true
|
|
807
837
|
},
|
|
808
838
|
{
|
|
839
|
+
"disabled": false,
|
|
809
840
|
"document": "This field is used to return the `Token` information used during pagination. It is automatically generated by the system and will be passed to the next generated page for easy and fast pagination. When you turn to the last page, this field will be empty.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
810
841
|
"example": "4765-48dXwxJtbkKXW8d3eb",
|
|
811
842
|
"member": "string",
|
|
812
843
|
"name": "PageToken",
|
|
813
|
-
"
|
|
844
|
+
"output_required": true,
|
|
814
845
|
"type": "string",
|
|
815
846
|
"value_allowed_null": true
|
|
816
847
|
},
|
|
817
848
|
{
|
|
818
|
-
"document": "The unique request ID,
|
|
849
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
819
850
|
"member": "string",
|
|
820
851
|
"name": "RequestId",
|
|
821
852
|
"type": "string"
|
|
@@ -22,18 +22,6 @@
|
|
|
22
22
|
"input": "POST / HTTP/1.1\nHost: vm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<Common request parameters>\n\n{\n \"TaskId\": \"task-video-Xw0mjnmaiu-Uv1fs\"\n}",
|
|
23
23
|
"output": "{\n \"Response\": {\n \"TaskId\": \"task-video-XwxJtbkKXWgCt8AZ\",\n \"DataId\": \"data_test_01\",\n \"BizType\": \"1001\",\n \"Name\": \"\",\n \"Status\": \"FINISH\",\n \"Type\": \"VIDEO\",\n \"Suggestion\": \"Block\",\n \"Labels\": [\n {\n \"Label\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Score\": 99\n },\n {\n \"Label\": \"Hot\",\n \"Suggestion\": \"Block\",\n \"Score\": 70\n }\n ],\n \"MediaInfo\": {\n \"Codecs\": \"h264 aac\",\n \"Duration\": 36,\n \"Width\": 352,\n \"Height\": 640\n },\n \"InputInfo\": {\n \"Type\": \"URL\",\n \"Url\": \"https://cms-video-segments-1256309736.cos.ap-guangzhou.myqcloud.co/huang.mp4\",\n \"BucketInfo\": null\n },\n \"CreatedAt\": \"2020-07-13T11:47:01.925Z\",\n \"UpdatedAt\": \"2020-07-13T11:47:25.840Z\",\n \"ImageSegments\": [\n {\n \"Result\": {\n \"HitFlag\": 1,\n \"Label\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Score\": 85,\n \"Results\": [\n {\n \"Scene\": \"Porn\",\n \"HitFlag\": 1,\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"\",\n \"Score\": 85,\n \"Names\": [],\n \"Text\": \"\",\n \"Details\": []\n }\n ],\n \"Url\": \"https://cos.ap-zhou.myqcloud.com/c019/image_1.jpg\"\n },\n \"OffsetTime\": \"1\"\n },\n {\n \"Result\": {\n \"HitFlag\": 1,\n \"Label\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Score\": 77,\n \"Results\": [\n {\n \"Scene\": \"Porn\",\n \"HitFlag\": 1,\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"\",\n \"Score\": 77,\n \"Names\": [],\n \"Text\": \"\",\n \"Details\": []\n }\n ],\n \"Url\": \"https://cos.ap-guau.myqcloud.com/cc49b5b90a5d6802b7c019/image_2.jpg\"\n },\n \"OffsetTime\": \"2\"\n }\n ],\n \"AudioSegments\": [\n {\n \"Result\": {\n \"HitFlag\": 0,\n \"Label\": \"Normal\",\n \"SubLabel\": \"\",\n \"Suggestion\": \"Pass\",\n \"Score\": 0,\n \"Text\": \"Test audio text\",\n \"Url\": \"https://xxx.com/7c019/audio_0.mp3\",\n \"Duration\": \"36398\"\n },\n \"OffsetTime\": \"0\"\n }\n ],\n \"RequestId\": \"8d3e4765-48db-40b5-8fdb-aaf1d7225a60\",\n \"ErrorType\": \"\",\n \"ErrorDescription\": \"\",\n \"TryInSeconds\": 0,\n \"Label\": \"Porn\",\n \"AudioText\": \"\",\n \"Asrs\": []\n }\n}",
|
|
24
24
|
"title": "Viewing Task Details"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"document": "",
|
|
28
|
-
"input": "POST / HTTP/1.1\nHost: vm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<Common request parameters>\n\n{\n \"ShowAllSegments\": \"true\",\n \"TaskId\": \"w-video-YyBIZHP6L4buPOcg\"\n}",
|
|
29
|
-
"output": "{\n \"Response\": {\n \"TaskId\": \"w-video-YyBIZHP6L4buPOcg\",\n \"DataId\": \"1111\",\n \"BizType\": \"default\",\n \"Name\": \"111\",\n \"Status\": \"RUNNING\",\n \"Type\": \"VIDEO\",\n \"Suggestion\": \"UNSPECIFIED\",\n \"Labels\": [],\n \"InputInfo\": {\n \"Type\": \"URL\",\n \"Url\": \"https://test-resources-1306254157.cos.ap-guangzhou.myqcloud.com/audio_policy_test/4%E5%88%86%E9%92%9F%E8%B6%85%E9%95%BF.m4a\",\n \"BucketInfo\": null\n },\n \"MediaInfo\": {\n \"Codecs\": \"\",\n \"Duration\": 0,\n \"Width\": 0,\n \"Height\": 0,\n \"Thumbnail\": \"\"\n },\n \"AudioText\": \"\",\n \"ImageSegments\": [],\n \"AudioSegments\": [],\n \"TryInSeconds\": 0,\n \"CreatedAt\": \"2022-09-13T09:07:48.926Z\",\n \"UpdatedAt\": \"2022-09-13T09:07:49.059Z\",\n \"ErrorType\": \"\",\n \"ErrorDescription\": \"\",\n \"Asrs\": [],\n \"Label\": \"\",\n \"RequestId\": \"ba257e71-a04b-4ba9-9d67-0717a39b6a96\"\n }\n}",
|
|
30
|
-
"title": "ok"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"document": "",
|
|
34
|
-
"input": "POST / HTTP/1.1\nHost: vm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskDetail\n<Common request parameters>\n\n{\n \"ShowAllSegments\": \"true\",\n \"TaskId\": \"w-live_audio-YyBybeJJPvjum5DP\"\n}",
|
|
35
|
-
"output": "{\n \"Response\": {\n \"TaskId\": \"w-live_audio-YyBybeJJPvjum5DP\",\n \"DataId\": \"1111\",\n \"BizType\": \"default\",\n \"Name\": \"111\",\n \"Status\": \"RUNNING\",\n \"Type\": \"LIVE_AUDIO\",\n \"Suggestion\": \"UNSPECIFIED\",\n \"Labels\": [],\n \"InputInfo\": {\n \"Type\": \"URL\",\n \"Url\": \"https://test-resources-1306254157.cos.ap-guangzhou.myqcloud.com/audio_policy_test/4%E5%88%86%E9%92%9F%E8%B6%85%E9%95%BF.m4a\",\n \"BucketInfo\": null\n },\n \"MediaInfo\": {\n \"Codecs\": \"\",\n \"Duration\": 0,\n \"Width\": 0,\n \"Height\": 0,\n \"Thumbnail\": \"\"\n },\n \"AudioText\": \"\",\n \"ImageSegments\": [],\n \"AudioSegments\": [],\n \"TryInSeconds\": 120,\n \"CreatedAt\": \"2022-09-13T12:07:09.338Z\",\n \"UpdatedAt\": \"2022-09-13T12:07:09.623Z\",\n \"ErrorType\": \"\",\n \"ErrorDescription\": \"\",\n \"Asrs\": [],\n \"Label\": \"\",\n \"RequestId\": \"08895eaa-2c51-4dc6-94fc-7b9bad51632b\"\n }\n}",
|
|
36
|
-
"title": "Querying VM details"
|
|
37
25
|
}
|
|
38
26
|
],
|
|
39
27
|
"DescribeTasks": [
|
tccli/services/vm/vm_client.py
CHANGED
|
@@ -29,7 +29,10 @@ def doDescribeTaskDetail(args, parsed_globals):
|
|
|
29
29
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
30
30
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
31
31
|
)
|
|
32
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
32
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
33
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
34
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
35
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
33
36
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
34
37
|
else:
|
|
35
38
|
cred = credential.Credential(
|
|
@@ -41,7 +44,7 @@ def doDescribeTaskDetail(args, parsed_globals):
|
|
|
41
44
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
42
45
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
43
46
|
)
|
|
44
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
47
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
45
48
|
if g_param[OptionsDefine.Language]:
|
|
46
49
|
profile.language = g_param[OptionsDefine.Language]
|
|
47
50
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -81,7 +84,10 @@ def doCreateVideoModerationTask(args, parsed_globals):
|
|
|
81
84
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
82
85
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
83
86
|
)
|
|
84
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
87
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
88
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
89
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
90
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
85
91
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
86
92
|
else:
|
|
87
93
|
cred = credential.Credential(
|
|
@@ -93,7 +99,7 @@ def doCreateVideoModerationTask(args, parsed_globals):
|
|
|
93
99
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
94
100
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
95
101
|
)
|
|
96
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
102
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
97
103
|
if g_param[OptionsDefine.Language]:
|
|
98
104
|
profile.language = g_param[OptionsDefine.Language]
|
|
99
105
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -133,7 +139,10 @@ def doDescribeTasks(args, parsed_globals):
|
|
|
133
139
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
134
140
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
135
141
|
)
|
|
136
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
142
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
143
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
144
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
145
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
137
146
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
138
147
|
else:
|
|
139
148
|
cred = credential.Credential(
|
|
@@ -145,7 +154,7 @@ def doDescribeTasks(args, parsed_globals):
|
|
|
145
154
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
146
155
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
147
156
|
)
|
|
148
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
157
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
149
158
|
if g_param[OptionsDefine.Language]:
|
|
150
159
|
profile.language = g_param[OptionsDefine.Language]
|
|
151
160
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -185,7 +194,10 @@ def doCancelTask(args, parsed_globals):
|
|
|
185
194
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
186
195
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
187
196
|
)
|
|
188
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
197
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
198
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
199
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
200
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
189
201
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
190
202
|
else:
|
|
191
203
|
cred = credential.Credential(
|
|
@@ -197,7 +209,7 @@ def doCancelTask(args, parsed_globals):
|
|
|
197
209
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
198
210
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
199
211
|
)
|
|
200
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
212
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
201
213
|
if g_param[OptionsDefine.Language]:
|
|
202
214
|
profile.language = g_param[OptionsDefine.Language]
|
|
203
215
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|