tccli-intl-en 3.0.1168.1__py2.py3-none-any.whl → 3.1.16.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 +49 -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 +514 -333
- 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 +1055 -134
- tccli/services/billing/v20180709/api.json +1654 -243
- tccli/services/billing/v20180709/examples.json +169 -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 +426 -173
- tccli/services/cdb/v20170320/examples.json +6 -6
- 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/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 +1033 -255
- tccli/services/ckafka/v20190819/api.json +3378 -1681
- tccli/services/ckafka/v20190819/examples.json +254 -160
- tccli/services/clb/clb_client.py +1054 -469
- tccli/services/clb/v20180317/api.json +2307 -1024
- tccli/services/clb/v20180317/examples.json +186 -126
- 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 +1141 -510
- tccli/services/cvm/v20170312/examples.json +174 -128
- tccli/services/cwp/cwp_client.py +2325 -930
- tccli/services/cynosdb/cynosdb_client.py +3051 -575
- tccli/services/cynosdb/v20190107/api.json +14074 -7139
- tccli/services/cynosdb/v20190107/examples.json +597 -287
- 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 +266 -0
- tccli/services/hunyuan/v20230901/api.json +270 -0
- tccli/services/hunyuan/v20230901/examples.json +20 -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 +516 -72
- tccli/services/intlpartnersmgt/v20220928/api.json +976 -60
- tccli/services/intlpartnersmgt/v20220928/examples.json +50 -2
- 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 +1562 -144
- tccli/services/kms/v20190118/examples.json +204 -78
- tccli/services/lcic/lcic_client.py +265 -106
- tccli/services/lighthouse/lighthouse_client.py +370 -148
- tccli/services/lighthouse/v20200324/api.json +14 -14
- tccli/services/lighthouse/v20200324/examples.json +5 -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 +953 -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 +1144 -58
- tccli/services/mdl/v20200326/examples.json +48 -16
- tccli/services/mdp/mdp_client.py +785 -122
- tccli/services/mdp/v20200527/api.json +1168 -44
- 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 +660 -11
- tccli/services/monitor/v20180724/examples.json +152 -4
- tccli/services/mps/mps_client.py +1573 -354
- tccli/services/mps/v20190612/api.json +12394 -7243
- tccli/services/mps/v20190612/examples.json +244 -84
- tccli/services/msp/msp_client.py +35 -14
- tccli/services/ocr/ocr_client.py +596 -102
- tccli/services/ocr/v20181119/api.json +2271 -181
- tccli/services/ocr/v20181119/examples.json +70 -8
- 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/__init__.py +4 -0
- tccli/services/tbaas/tbaas_client.py +378 -0
- tccli/services/tbaas/v20180416/api.json +551 -0
- tccli/services/tbaas/v20180416/examples.json +37 -0
- 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 +155 -79
- tccli/services/tcsas/v20250106/examples.json +3 -3
- 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 +741 -274
- tccli/services/tke/v20180525/api.json +132 -7
- tccli/services/tke/v20180525/examples.json +42 -16
- 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/__init__.py +4 -0
- tccli/services/trabbit/trabbit_client.py +1778 -0
- tccli/services/trabbit/v20230418/api.json +4772 -0
- tccli/services/trabbit/v20230418/examples.json +237 -0
- 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 +332 -52
- tccli/services/vod/v20180717/examples.json +9 -1
- tccli/services/vod/v20240718/api.json +1105 -0
- tccli/services/vod/v20240718/examples.json +97 -0
- tccli/services/vod/vod_client.py +1316 -350
- tccli/services/vpc/v20170312/api.json +1166 -106
- tccli/services/vpc/v20170312/examples.json +197 -23
- tccli/services/vpc/vpc_client.py +2413 -739
- 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/v20210820/api.json +1577 -231
- tccli/services/wedata/v20210820/examples.json +74 -12
- tccli/services/wedata/v20250806/api.json +13644 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +6366 -1191
- tccli/services/yunjing/yunjing_client.py +355 -142
- {tccli_intl_en-3.0.1168.1.dist-info → tccli_intl_en-3.1.16.1.dist-info}/METADATA +4 -7
- {tccli_intl_en-3.0.1168.1.dist-info → tccli_intl_en-3.1.16.1.dist-info}/RECORD +294 -230
- {tccli_intl_en-3.0.1168.1.dist-info → tccli_intl_en-3.1.16.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1168.1.dist-info → tccli_intl_en-3.1.16.1.dist-info}/entry_points.txt +0 -1
- {tccli_intl_en-3.0.1168.1.dist-info → tccli_intl_en-3.1.16.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1168.1.dist-info → tccli_intl_en-3.1.16.1.dist-info}/top_level.txt +0 -0
tccli/services/vod/vod_client.py
CHANGED
|
@@ -11,6 +11,8 @@ from tccli.exceptions import ConfigurationError, ClientError, ParamError
|
|
|
11
11
|
from tencentcloud.common import credential
|
|
12
12
|
from tencentcloud.common.profile.http_profile import HttpProfile
|
|
13
13
|
from tencentcloud.common.profile.client_profile import ClientProfile
|
|
14
|
+
from tencentcloud.vod.v20240718 import vod_client as vod_client_v20240718
|
|
15
|
+
from tencentcloud.vod.v20240718 import models as models_v20240718
|
|
14
16
|
from tencentcloud.vod.v20180717 import vod_client as vod_client_v20180717
|
|
15
17
|
from tencentcloud.vod.v20180717 import models as models_v20180717
|
|
16
18
|
|
|
@@ -27,7 +29,10 @@ def doCreateImageProcessingTemplate(args, parsed_globals):
|
|
|
27
29
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
28
30
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
29
31
|
)
|
|
30
|
-
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):
|
|
31
36
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
32
37
|
else:
|
|
33
38
|
cred = credential.Credential(
|
|
@@ -39,7 +44,7 @@ def doCreateImageProcessingTemplate(args, parsed_globals):
|
|
|
39
44
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
40
45
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
41
46
|
)
|
|
42
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
47
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
43
48
|
if g_param[OptionsDefine.Language]:
|
|
44
49
|
profile.language = g_param[OptionsDefine.Language]
|
|
45
50
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -79,7 +84,10 @@ def doCreateRoundPlay(args, parsed_globals):
|
|
|
79
84
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
80
85
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
81
86
|
)
|
|
82
|
-
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):
|
|
83
91
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
84
92
|
else:
|
|
85
93
|
cred = credential.Credential(
|
|
@@ -91,7 +99,7 @@ def doCreateRoundPlay(args, parsed_globals):
|
|
|
91
99
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
92
100
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
93
101
|
)
|
|
94
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
102
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
95
103
|
if g_param[OptionsDefine.Language]:
|
|
96
104
|
profile.language = g_param[OptionsDefine.Language]
|
|
97
105
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -131,7 +139,10 @@ def doModifyDefaultStorageRegion(args, parsed_globals):
|
|
|
131
139
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
132
140
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
133
141
|
)
|
|
134
|
-
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):
|
|
135
146
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
136
147
|
else:
|
|
137
148
|
cred = credential.Credential(
|
|
@@ -143,7 +154,7 @@ def doModifyDefaultStorageRegion(args, parsed_globals):
|
|
|
143
154
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
144
155
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
145
156
|
)
|
|
146
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
157
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
147
158
|
if g_param[OptionsDefine.Language]:
|
|
148
159
|
profile.language = g_param[OptionsDefine.Language]
|
|
149
160
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -183,7 +194,10 @@ def doExtractTraceWatermark(args, parsed_globals):
|
|
|
183
194
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
184
195
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
185
196
|
)
|
|
186
|
-
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):
|
|
187
201
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
188
202
|
else:
|
|
189
203
|
cred = credential.Credential(
|
|
@@ -195,7 +209,7 @@ def doExtractTraceWatermark(args, parsed_globals):
|
|
|
195
209
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
196
210
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
197
211
|
)
|
|
198
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
212
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
199
213
|
if g_param[OptionsDefine.Language]:
|
|
200
214
|
profile.language = g_param[OptionsDefine.Language]
|
|
201
215
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -235,7 +249,10 @@ def doDescribeFileAttributes(args, parsed_globals):
|
|
|
235
249
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
236
250
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
237
251
|
)
|
|
238
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
252
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
253
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
254
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
255
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
239
256
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
240
257
|
else:
|
|
241
258
|
cred = credential.Credential(
|
|
@@ -247,7 +264,7 @@ def doDescribeFileAttributes(args, parsed_globals):
|
|
|
247
264
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
248
265
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
249
266
|
)
|
|
250
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
267
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
251
268
|
if g_param[OptionsDefine.Language]:
|
|
252
269
|
profile.language = g_param[OptionsDefine.Language]
|
|
253
270
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -287,7 +304,10 @@ def doEditMedia(args, parsed_globals):
|
|
|
287
304
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
288
305
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
289
306
|
)
|
|
290
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
307
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
308
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
309
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
310
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
291
311
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
292
312
|
else:
|
|
293
313
|
cred = credential.Credential(
|
|
@@ -299,7 +319,7 @@ def doEditMedia(args, parsed_globals):
|
|
|
299
319
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
300
320
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
301
321
|
)
|
|
302
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
322
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
303
323
|
if g_param[OptionsDefine.Language]:
|
|
304
324
|
profile.language = g_param[OptionsDefine.Language]
|
|
305
325
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -339,7 +359,10 @@ def doDescribeVodDomains(args, parsed_globals):
|
|
|
339
359
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
340
360
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
341
361
|
)
|
|
342
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
362
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
363
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
364
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
365
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
343
366
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
344
367
|
else:
|
|
345
368
|
cred = credential.Credential(
|
|
@@ -351,7 +374,7 @@ def doDescribeVodDomains(args, parsed_globals):
|
|
|
351
374
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
352
375
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
353
376
|
)
|
|
354
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
377
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
355
378
|
if g_param[OptionsDefine.Language]:
|
|
356
379
|
profile.language = g_param[OptionsDefine.Language]
|
|
357
380
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -391,7 +414,10 @@ def doApplyUpload(args, parsed_globals):
|
|
|
391
414
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
392
415
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
393
416
|
)
|
|
394
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
417
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
418
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
419
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
420
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
395
421
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
396
422
|
else:
|
|
397
423
|
cred = credential.Credential(
|
|
@@ -403,7 +429,7 @@ def doApplyUpload(args, parsed_globals):
|
|
|
403
429
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
404
430
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
405
431
|
)
|
|
406
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
432
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
407
433
|
if g_param[OptionsDefine.Language]:
|
|
408
434
|
profile.language = g_param[OptionsDefine.Language]
|
|
409
435
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -443,7 +469,10 @@ def doCreateSnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
443
469
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
444
470
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
445
471
|
)
|
|
446
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
472
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
473
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
474
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
475
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
447
476
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
448
477
|
else:
|
|
449
478
|
cred = credential.Credential(
|
|
@@ -455,7 +484,7 @@ def doCreateSnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
455
484
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
456
485
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
457
486
|
)
|
|
458
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
487
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
459
488
|
if g_param[OptionsDefine.Language]:
|
|
460
489
|
profile.language = g_param[OptionsDefine.Language]
|
|
461
490
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -495,7 +524,10 @@ def doCreateClass(args, parsed_globals):
|
|
|
495
524
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
496
525
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
497
526
|
)
|
|
498
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
527
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
528
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
529
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
530
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
499
531
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
500
532
|
else:
|
|
501
533
|
cred = credential.Credential(
|
|
@@ -507,7 +539,7 @@ def doCreateClass(args, parsed_globals):
|
|
|
507
539
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
508
540
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
509
541
|
)
|
|
510
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
542
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
511
543
|
if g_param[OptionsDefine.Language]:
|
|
512
544
|
profile.language = g_param[OptionsDefine.Language]
|
|
513
545
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -547,7 +579,10 @@ def doDescribeAIAnalysisTemplates(args, parsed_globals):
|
|
|
547
579
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
548
580
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
549
581
|
)
|
|
550
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
582
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
583
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
584
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
585
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
551
586
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
552
587
|
else:
|
|
553
588
|
cred = credential.Credential(
|
|
@@ -559,7 +594,7 @@ def doDescribeAIAnalysisTemplates(args, parsed_globals):
|
|
|
559
594
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
560
595
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
561
596
|
)
|
|
562
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
597
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
563
598
|
if g_param[OptionsDefine.Language]:
|
|
564
599
|
profile.language = g_param[OptionsDefine.Language]
|
|
565
600
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -599,7 +634,10 @@ def doPullEvents(args, parsed_globals):
|
|
|
599
634
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
600
635
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
601
636
|
)
|
|
602
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
637
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
638
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
639
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
640
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
603
641
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
604
642
|
else:
|
|
605
643
|
cred = credential.Credential(
|
|
@@ -611,7 +649,7 @@ def doPullEvents(args, parsed_globals):
|
|
|
611
649
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
612
650
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
613
651
|
)
|
|
614
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
652
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
615
653
|
if g_param[OptionsDefine.Language]:
|
|
616
654
|
profile.language = g_param[OptionsDefine.Language]
|
|
617
655
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -651,7 +689,10 @@ def doProcessMediaByProcedure(args, parsed_globals):
|
|
|
651
689
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
652
690
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
653
691
|
)
|
|
654
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
692
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
693
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
694
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
695
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
655
696
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
656
697
|
else:
|
|
657
698
|
cred = credential.Credential(
|
|
@@ -663,7 +704,7 @@ def doProcessMediaByProcedure(args, parsed_globals):
|
|
|
663
704
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
664
705
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
665
706
|
)
|
|
666
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
707
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
667
708
|
if g_param[OptionsDefine.Language]:
|
|
668
709
|
profile.language = g_param[OptionsDefine.Language]
|
|
669
710
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -703,7 +744,10 @@ def doCreateQualityInspectTemplate(args, parsed_globals):
|
|
|
703
744
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
704
745
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
705
746
|
)
|
|
706
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
747
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
748
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
749
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
750
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
707
751
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
708
752
|
else:
|
|
709
753
|
cred = credential.Credential(
|
|
@@ -715,7 +759,7 @@ def doCreateQualityInspectTemplate(args, parsed_globals):
|
|
|
715
759
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
716
760
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
717
761
|
)
|
|
718
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
762
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
719
763
|
if g_param[OptionsDefine.Language]:
|
|
720
764
|
profile.language = g_param[OptionsDefine.Language]
|
|
721
765
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -755,7 +799,10 @@ def doModifyRebuildMediaTemplate(args, parsed_globals):
|
|
|
755
799
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
756
800
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
757
801
|
)
|
|
758
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
802
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
803
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
804
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
805
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
759
806
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
760
807
|
else:
|
|
761
808
|
cred = credential.Credential(
|
|
@@ -767,7 +814,7 @@ def doModifyRebuildMediaTemplate(args, parsed_globals):
|
|
|
767
814
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
768
815
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
769
816
|
)
|
|
770
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
817
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
771
818
|
if g_param[OptionsDefine.Language]:
|
|
772
819
|
profile.language = g_param[OptionsDefine.Language]
|
|
773
820
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -807,7 +854,10 @@ def doDeleteTranscodeTemplate(args, parsed_globals):
|
|
|
807
854
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
808
855
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
809
856
|
)
|
|
810
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
857
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
858
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
859
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
860
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
811
861
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
812
862
|
else:
|
|
813
863
|
cred = credential.Credential(
|
|
@@ -819,7 +869,7 @@ def doDeleteTranscodeTemplate(args, parsed_globals):
|
|
|
819
869
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
820
870
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
821
871
|
)
|
|
822
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
872
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
823
873
|
if g_param[OptionsDefine.Language]:
|
|
824
874
|
profile.language = g_param[OptionsDefine.Language]
|
|
825
875
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -859,7 +909,10 @@ def doDescribeTaskDetail(args, parsed_globals):
|
|
|
859
909
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
860
910
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
861
911
|
)
|
|
862
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
912
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
913
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
914
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
915
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
863
916
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
864
917
|
else:
|
|
865
918
|
cred = credential.Credential(
|
|
@@ -871,7 +924,7 @@ def doDescribeTaskDetail(args, parsed_globals):
|
|
|
871
924
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
872
925
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
873
926
|
)
|
|
874
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
927
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
875
928
|
if g_param[OptionsDefine.Language]:
|
|
876
929
|
profile.language = g_param[OptionsDefine.Language]
|
|
877
930
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -911,7 +964,10 @@ def doDescribeReviewDetails(args, parsed_globals):
|
|
|
911
964
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
912
965
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
913
966
|
)
|
|
914
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
967
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
968
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
969
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
970
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
915
971
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
916
972
|
else:
|
|
917
973
|
cred = credential.Credential(
|
|
@@ -923,7 +979,7 @@ def doDescribeReviewDetails(args, parsed_globals):
|
|
|
923
979
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
924
980
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
925
981
|
)
|
|
926
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
982
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
927
983
|
if g_param[OptionsDefine.Language]:
|
|
928
984
|
profile.language = g_param[OptionsDefine.Language]
|
|
929
985
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -963,7 +1019,10 @@ def doDescribeWordSamples(args, parsed_globals):
|
|
|
963
1019
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
964
1020
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
965
1021
|
)
|
|
966
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1022
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1023
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1024
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1025
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
967
1026
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
968
1027
|
else:
|
|
969
1028
|
cred = credential.Credential(
|
|
@@ -975,7 +1034,7 @@ def doDescribeWordSamples(args, parsed_globals):
|
|
|
975
1034
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
976
1035
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
977
1036
|
)
|
|
978
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1037
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
979
1038
|
if g_param[OptionsDefine.Language]:
|
|
980
1039
|
profile.language = g_param[OptionsDefine.Language]
|
|
981
1040
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1015,7 +1074,10 @@ def doDescribeStorageData(args, parsed_globals):
|
|
|
1015
1074
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1016
1075
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1017
1076
|
)
|
|
1018
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1077
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1078
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1079
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1080
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1019
1081
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1020
1082
|
else:
|
|
1021
1083
|
cred = credential.Credential(
|
|
@@ -1027,7 +1089,7 @@ def doDescribeStorageData(args, parsed_globals):
|
|
|
1027
1089
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1028
1090
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1029
1091
|
)
|
|
1030
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1092
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1031
1093
|
if g_param[OptionsDefine.Language]:
|
|
1032
1094
|
profile.language = g_param[OptionsDefine.Language]
|
|
1033
1095
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1067,7 +1129,10 @@ def doSplitMedia(args, parsed_globals):
|
|
|
1067
1129
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1068
1130
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1069
1131
|
)
|
|
1070
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1132
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1133
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1134
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1135
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1071
1136
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1072
1137
|
else:
|
|
1073
1138
|
cred = credential.Credential(
|
|
@@ -1079,7 +1144,7 @@ def doSplitMedia(args, parsed_globals):
|
|
|
1079
1144
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1080
1145
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1081
1146
|
)
|
|
1082
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1147
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1083
1148
|
if g_param[OptionsDefine.Language]:
|
|
1084
1149
|
profile.language = g_param[OptionsDefine.Language]
|
|
1085
1150
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1119,7 +1184,10 @@ def doDescribeImageProcessingTemplates(args, parsed_globals):
|
|
|
1119
1184
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1120
1185
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1121
1186
|
)
|
|
1122
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1187
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1188
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1189
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1190
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1123
1191
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1124
1192
|
else:
|
|
1125
1193
|
cred = credential.Credential(
|
|
@@ -1131,7 +1199,7 @@ def doDescribeImageProcessingTemplates(args, parsed_globals):
|
|
|
1131
1199
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1132
1200
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1133
1201
|
)
|
|
1134
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1202
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1135
1203
|
if g_param[OptionsDefine.Language]:
|
|
1136
1204
|
profile.language = g_param[OptionsDefine.Language]
|
|
1137
1205
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1171,7 +1239,10 @@ def doDeleteProcedureTemplate(args, parsed_globals):
|
|
|
1171
1239
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1172
1240
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1173
1241
|
)
|
|
1174
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1242
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1243
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1244
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1245
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1175
1246
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1176
1247
|
else:
|
|
1177
1248
|
cred = credential.Credential(
|
|
@@ -1183,7 +1254,7 @@ def doDeleteProcedureTemplate(args, parsed_globals):
|
|
|
1183
1254
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1184
1255
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1185
1256
|
)
|
|
1186
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1257
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1187
1258
|
if g_param[OptionsDefine.Language]:
|
|
1188
1259
|
profile.language = g_param[OptionsDefine.Language]
|
|
1189
1260
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1223,7 +1294,10 @@ def doDeleteAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
1223
1294
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1224
1295
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1225
1296
|
)
|
|
1226
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1297
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1298
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1299
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1300
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1227
1301
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1228
1302
|
else:
|
|
1229
1303
|
cred = credential.Credential(
|
|
@@ -1235,7 +1309,7 @@ def doDeleteAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
1235
1309
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1236
1310
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1237
1311
|
)
|
|
1238
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1312
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1239
1313
|
if g_param[OptionsDefine.Language]:
|
|
1240
1314
|
profile.language = g_param[OptionsDefine.Language]
|
|
1241
1315
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1275,7 +1349,10 @@ def doCreateAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
1275
1349
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1276
1350
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1277
1351
|
)
|
|
1278
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1352
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1353
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1354
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1355
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1279
1356
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1280
1357
|
else:
|
|
1281
1358
|
cred = credential.Credential(
|
|
@@ -1287,7 +1364,7 @@ def doCreateAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
1287
1364
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1288
1365
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1289
1366
|
)
|
|
1290
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1367
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1291
1368
|
if g_param[OptionsDefine.Language]:
|
|
1292
1369
|
profile.language = g_param[OptionsDefine.Language]
|
|
1293
1370
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1327,7 +1404,10 @@ def doDescribeSampleSnapshotTemplates(args, parsed_globals):
|
|
|
1327
1404
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1328
1405
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1329
1406
|
)
|
|
1330
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1407
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1408
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1409
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1410
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1331
1411
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1332
1412
|
else:
|
|
1333
1413
|
cred = credential.Credential(
|
|
@@ -1339,7 +1419,7 @@ def doDescribeSampleSnapshotTemplates(args, parsed_globals):
|
|
|
1339
1419
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1340
1420
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1341
1421
|
)
|
|
1342
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1422
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1343
1423
|
if g_param[OptionsDefine.Language]:
|
|
1344
1424
|
profile.language = g_param[OptionsDefine.Language]
|
|
1345
1425
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1379,7 +1459,10 @@ def doCloneCDNDomain(args, parsed_globals):
|
|
|
1379
1459
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1380
1460
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1381
1461
|
)
|
|
1382
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1462
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1463
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1464
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1465
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1383
1466
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1384
1467
|
else:
|
|
1385
1468
|
cred = credential.Credential(
|
|
@@ -1391,7 +1474,7 @@ def doCloneCDNDomain(args, parsed_globals):
|
|
|
1391
1474
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1392
1475
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1393
1476
|
)
|
|
1394
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1477
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1395
1478
|
if g_param[OptionsDefine.Language]:
|
|
1396
1479
|
profile.language = g_param[OptionsDefine.Language]
|
|
1397
1480
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1431,7 +1514,10 @@ def doDeleteSnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
1431
1514
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1432
1515
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1433
1516
|
)
|
|
1434
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1517
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1518
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1519
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1520
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1435
1521
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1436
1522
|
else:
|
|
1437
1523
|
cred = credential.Credential(
|
|
@@ -1443,7 +1529,7 @@ def doDeleteSnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
1443
1529
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1444
1530
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1445
1531
|
)
|
|
1446
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1532
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1447
1533
|
if g_param[OptionsDefine.Language]:
|
|
1448
1534
|
profile.language = g_param[OptionsDefine.Language]
|
|
1449
1535
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1483,7 +1569,10 @@ def doRemoveWatermark(args, parsed_globals):
|
|
|
1483
1569
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1484
1570
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1485
1571
|
)
|
|
1486
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1572
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1573
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1574
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1575
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1487
1576
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1488
1577
|
else:
|
|
1489
1578
|
cred = credential.Credential(
|
|
@@ -1495,7 +1584,7 @@ def doRemoveWatermark(args, parsed_globals):
|
|
|
1495
1584
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1496
1585
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1497
1586
|
)
|
|
1498
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1587
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1499
1588
|
if g_param[OptionsDefine.Language]:
|
|
1500
1589
|
profile.language = g_param[OptionsDefine.Language]
|
|
1501
1590
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1535,7 +1624,10 @@ def doDescribeCdnLogs(args, parsed_globals):
|
|
|
1535
1624
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1536
1625
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1537
1626
|
)
|
|
1538
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1627
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1628
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1629
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1630
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1539
1631
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1540
1632
|
else:
|
|
1541
1633
|
cred = credential.Credential(
|
|
@@ -1547,7 +1639,7 @@ def doDescribeCdnLogs(args, parsed_globals):
|
|
|
1547
1639
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1548
1640
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1549
1641
|
)
|
|
1550
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1642
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1551
1643
|
if g_param[OptionsDefine.Language]:
|
|
1552
1644
|
profile.language = g_param[OptionsDefine.Language]
|
|
1553
1645
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1587,7 +1679,10 @@ def doModifyClass(args, parsed_globals):
|
|
|
1587
1679
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1588
1680
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1589
1681
|
)
|
|
1590
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1682
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1683
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1684
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1685
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1591
1686
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1592
1687
|
else:
|
|
1593
1688
|
cred = credential.Credential(
|
|
@@ -1599,7 +1694,7 @@ def doModifyClass(args, parsed_globals):
|
|
|
1599
1694
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1600
1695
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1601
1696
|
)
|
|
1602
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1697
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1603
1698
|
if g_param[OptionsDefine.Language]:
|
|
1604
1699
|
profile.language = g_param[OptionsDefine.Language]
|
|
1605
1700
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1639,7 +1734,10 @@ def doDescribeTasks(args, parsed_globals):
|
|
|
1639
1734
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1640
1735
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1641
1736
|
)
|
|
1642
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1737
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1738
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1739
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1740
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1643
1741
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1644
1742
|
else:
|
|
1645
1743
|
cred = credential.Credential(
|
|
@@ -1651,7 +1749,7 @@ def doDescribeTasks(args, parsed_globals):
|
|
|
1651
1749
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1652
1750
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1653
1751
|
)
|
|
1654
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1752
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1655
1753
|
if g_param[OptionsDefine.Language]:
|
|
1656
1754
|
profile.language = g_param[OptionsDefine.Language]
|
|
1657
1755
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1681,7 +1779,7 @@ def doDescribeTasks(args, parsed_globals):
|
|
|
1681
1779
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1682
1780
|
|
|
1683
1781
|
|
|
1684
|
-
def
|
|
1782
|
+
def doDescribeStorage(args, parsed_globals):
|
|
1685
1783
|
g_param = parse_global_arg(parsed_globals)
|
|
1686
1784
|
|
|
1687
1785
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1691,7 +1789,10 @@ def doCreateStorageRegion(args, parsed_globals):
|
|
|
1691
1789
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1692
1790
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1693
1791
|
)
|
|
1694
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1792
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1793
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1794
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1795
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1695
1796
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1696
1797
|
else:
|
|
1697
1798
|
cred = credential.Credential(
|
|
@@ -1703,18 +1804,18 @@ def doCreateStorageRegion(args, parsed_globals):
|
|
|
1703
1804
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1704
1805
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1705
1806
|
)
|
|
1706
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1807
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1707
1808
|
if g_param[OptionsDefine.Language]:
|
|
1708
1809
|
profile.language = g_param[OptionsDefine.Language]
|
|
1709
1810
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1710
1811
|
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1711
1812
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1712
1813
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1713
|
-
model = models.
|
|
1814
|
+
model = models.DescribeStorageRequest()
|
|
1714
1815
|
model.from_json_string(json.dumps(args))
|
|
1715
1816
|
start_time = time.time()
|
|
1716
1817
|
while True:
|
|
1717
|
-
rsp = client.
|
|
1818
|
+
rsp = client.DescribeStorage(model)
|
|
1718
1819
|
result = rsp.to_json_string()
|
|
1719
1820
|
try:
|
|
1720
1821
|
json_obj = json.loads(result)
|
|
@@ -1743,7 +1844,10 @@ def doResetProcedureTemplate(args, parsed_globals):
|
|
|
1743
1844
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1744
1845
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1745
1846
|
)
|
|
1746
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1847
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1848
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1849
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1850
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1747
1851
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1748
1852
|
else:
|
|
1749
1853
|
cred = credential.Credential(
|
|
@@ -1755,7 +1859,7 @@ def doResetProcedureTemplate(args, parsed_globals):
|
|
|
1755
1859
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1756
1860
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1757
1861
|
)
|
|
1758
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1862
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1759
1863
|
if g_param[OptionsDefine.Language]:
|
|
1760
1864
|
profile.language = g_param[OptionsDefine.Language]
|
|
1761
1865
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1795,7 +1899,10 @@ def doDescribeCDNUsageData(args, parsed_globals):
|
|
|
1795
1899
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1796
1900
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1797
1901
|
)
|
|
1798
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1902
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1903
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1904
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1905
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1799
1906
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1800
1907
|
else:
|
|
1801
1908
|
cred = credential.Credential(
|
|
@@ -1807,7 +1914,7 @@ def doDescribeCDNUsageData(args, parsed_globals):
|
|
|
1807
1914
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1808
1915
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1809
1916
|
)
|
|
1810
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1917
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1811
1918
|
if g_param[OptionsDefine.Language]:
|
|
1812
1919
|
profile.language = g_param[OptionsDefine.Language]
|
|
1813
1920
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1847,7 +1954,10 @@ def doCreateTranscodeTemplate(args, parsed_globals):
|
|
|
1847
1954
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1848
1955
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1849
1956
|
)
|
|
1850
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
1957
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
1958
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
1959
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
1960
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1851
1961
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1852
1962
|
else:
|
|
1853
1963
|
cred = credential.Credential(
|
|
@@ -1859,7 +1969,7 @@ def doCreateTranscodeTemplate(args, parsed_globals):
|
|
|
1859
1969
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1860
1970
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1861
1971
|
)
|
|
1862
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1972
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1863
1973
|
if g_param[OptionsDefine.Language]:
|
|
1864
1974
|
profile.language = g_param[OptionsDefine.Language]
|
|
1865
1975
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1899,7 +2009,10 @@ def doDescribeCDNStatDetails(args, parsed_globals):
|
|
|
1899
2009
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1900
2010
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1901
2011
|
)
|
|
1902
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2012
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2013
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2014
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2015
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1903
2016
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1904
2017
|
else:
|
|
1905
2018
|
cred = credential.Credential(
|
|
@@ -1911,7 +2024,7 @@ def doDescribeCDNStatDetails(args, parsed_globals):
|
|
|
1911
2024
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1912
2025
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1913
2026
|
)
|
|
1914
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2027
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1915
2028
|
if g_param[OptionsDefine.Language]:
|
|
1916
2029
|
profile.language = g_param[OptionsDefine.Language]
|
|
1917
2030
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1951,7 +2064,10 @@ def doDescribeMediaPlayStatDetails(args, parsed_globals):
|
|
|
1951
2064
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1952
2065
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1953
2066
|
)
|
|
1954
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2067
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2068
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2069
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2070
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
1955
2071
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1956
2072
|
else:
|
|
1957
2073
|
cred = credential.Credential(
|
|
@@ -1963,7 +2079,7 @@ def doDescribeMediaPlayStatDetails(args, parsed_globals):
|
|
|
1963
2079
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1964
2080
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1965
2081
|
)
|
|
1966
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2082
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1967
2083
|
if g_param[OptionsDefine.Language]:
|
|
1968
2084
|
profile.language = g_param[OptionsDefine.Language]
|
|
1969
2085
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2003,7 +2119,10 @@ def doCreateWordSamples(args, parsed_globals):
|
|
|
2003
2119
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2004
2120
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2005
2121
|
)
|
|
2006
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2122
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2123
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2124
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2125
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2007
2126
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2008
2127
|
else:
|
|
2009
2128
|
cred = credential.Credential(
|
|
@@ -2015,7 +2134,7 @@ def doCreateWordSamples(args, parsed_globals):
|
|
|
2015
2134
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2016
2135
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2017
2136
|
)
|
|
2018
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2137
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2019
2138
|
if g_param[OptionsDefine.Language]:
|
|
2020
2139
|
profile.language = g_param[OptionsDefine.Language]
|
|
2021
2140
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2055,7 +2174,10 @@ def doModifyReviewTemplate(args, parsed_globals):
|
|
|
2055
2174
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2056
2175
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2057
2176
|
)
|
|
2058
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2177
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2178
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2179
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2180
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2059
2181
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2060
2182
|
else:
|
|
2061
2183
|
cred = credential.Credential(
|
|
@@ -2067,7 +2189,7 @@ def doModifyReviewTemplate(args, parsed_globals):
|
|
|
2067
2189
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2068
2190
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2069
2191
|
)
|
|
2070
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2192
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2071
2193
|
if g_param[OptionsDefine.Language]:
|
|
2072
2194
|
profile.language = g_param[OptionsDefine.Language]
|
|
2073
2195
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2107,7 +2229,10 @@ def doDescribeLicenseUsageData(args, parsed_globals):
|
|
|
2107
2229
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2108
2230
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2109
2231
|
)
|
|
2110
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2232
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2233
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2234
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2235
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2111
2236
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2112
2237
|
else:
|
|
2113
2238
|
cred = credential.Credential(
|
|
@@ -2119,7 +2244,7 @@ def doDescribeLicenseUsageData(args, parsed_globals):
|
|
|
2119
2244
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2120
2245
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2121
2246
|
)
|
|
2122
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2247
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2123
2248
|
if g_param[OptionsDefine.Language]:
|
|
2124
2249
|
profile.language = g_param[OptionsDefine.Language]
|
|
2125
2250
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2159,7 +2284,10 @@ def doModifyImageSpriteTemplate(args, parsed_globals):
|
|
|
2159
2284
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2160
2285
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2161
2286
|
)
|
|
2162
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2287
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2288
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2289
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2290
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2163
2291
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2164
2292
|
else:
|
|
2165
2293
|
cred = credential.Credential(
|
|
@@ -2171,7 +2299,7 @@ def doModifyImageSpriteTemplate(args, parsed_globals):
|
|
|
2171
2299
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2172
2300
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2173
2301
|
)
|
|
2174
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2175
2303
|
if g_param[OptionsDefine.Language]:
|
|
2176
2304
|
profile.language = g_param[OptionsDefine.Language]
|
|
2177
2305
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2201,6 +2329,61 @@ def doModifyImageSpriteTemplate(args, parsed_globals):
|
|
|
2201
2329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2202
2330
|
|
|
2203
2331
|
|
|
2332
|
+
def doCreateStorage(args, parsed_globals):
|
|
2333
|
+
g_param = parse_global_arg(parsed_globals)
|
|
2334
|
+
|
|
2335
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2336
|
+
cred = credential.CVMRoleCredential()
|
|
2337
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2338
|
+
cred = credential.STSAssumeRoleCredential(
|
|
2339
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2341
|
+
)
|
|
2342
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2343
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2344
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2345
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2346
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2347
|
+
else:
|
|
2348
|
+
cred = credential.Credential(
|
|
2349
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2350
|
+
)
|
|
2351
|
+
http_profile = HttpProfile(
|
|
2352
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2353
|
+
reqMethod="POST",
|
|
2354
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2355
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2356
|
+
)
|
|
2357
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2358
|
+
if g_param[OptionsDefine.Language]:
|
|
2359
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
2360
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2361
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2362
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
2363
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2364
|
+
model = models.CreateStorageRequest()
|
|
2365
|
+
model.from_json_string(json.dumps(args))
|
|
2366
|
+
start_time = time.time()
|
|
2367
|
+
while True:
|
|
2368
|
+
rsp = client.CreateStorage(model)
|
|
2369
|
+
result = rsp.to_json_string()
|
|
2370
|
+
try:
|
|
2371
|
+
json_obj = json.loads(result)
|
|
2372
|
+
except TypeError as e:
|
|
2373
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2374
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2375
|
+
break
|
|
2376
|
+
cur_time = time.time()
|
|
2377
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2378
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2379
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2380
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2381
|
+
else:
|
|
2382
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2383
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2384
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2385
|
+
|
|
2386
|
+
|
|
2204
2387
|
def doDeleteClass(args, parsed_globals):
|
|
2205
2388
|
g_param = parse_global_arg(parsed_globals)
|
|
2206
2389
|
|
|
@@ -2211,7 +2394,10 @@ def doDeleteClass(args, parsed_globals):
|
|
|
2211
2394
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2212
2395
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2213
2396
|
)
|
|
2214
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2397
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2398
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2399
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2400
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2215
2401
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2216
2402
|
else:
|
|
2217
2403
|
cred = credential.Credential(
|
|
@@ -2223,7 +2409,7 @@ def doDeleteClass(args, parsed_globals):
|
|
|
2223
2409
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2224
2410
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2225
2411
|
)
|
|
2226
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2412
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2227
2413
|
if g_param[OptionsDefine.Language]:
|
|
2228
2414
|
profile.language = g_param[OptionsDefine.Language]
|
|
2229
2415
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2263,7 +2449,10 @@ def doExecuteFunction(args, parsed_globals):
|
|
|
2263
2449
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2264
2450
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2265
2451
|
)
|
|
2266
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2452
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2453
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2454
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2455
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2267
2456
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2268
2457
|
else:
|
|
2269
2458
|
cred = credential.Credential(
|
|
@@ -2275,7 +2464,7 @@ def doExecuteFunction(args, parsed_globals):
|
|
|
2275
2464
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2276
2465
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2277
2466
|
)
|
|
2278
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2467
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2279
2468
|
if g_param[OptionsDefine.Language]:
|
|
2280
2469
|
profile.language = g_param[OptionsDefine.Language]
|
|
2281
2470
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2315,7 +2504,10 @@ def doDescribeClientUploadAccelerationUsageData(args, parsed_globals):
|
|
|
2315
2504
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2316
2505
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2317
2506
|
)
|
|
2318
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2507
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2508
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2509
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2510
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2319
2511
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2320
2512
|
else:
|
|
2321
2513
|
cred = credential.Credential(
|
|
@@ -2327,7 +2519,7 @@ def doDescribeClientUploadAccelerationUsageData(args, parsed_globals):
|
|
|
2327
2519
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2328
2520
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2329
2521
|
)
|
|
2330
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2522
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2331
2523
|
if g_param[OptionsDefine.Language]:
|
|
2332
2524
|
profile.language = g_param[OptionsDefine.Language]
|
|
2333
2525
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2367,7 +2559,10 @@ def doDescribeMediaProcessUsageData(args, parsed_globals):
|
|
|
2367
2559
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2368
2560
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2369
2561
|
)
|
|
2370
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2562
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2563
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2564
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2565
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2371
2566
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2372
2567
|
else:
|
|
2373
2568
|
cred = credential.Credential(
|
|
@@ -2379,7 +2574,7 @@ def doDescribeMediaProcessUsageData(args, parsed_globals):
|
|
|
2379
2574
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2380
2575
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2381
2576
|
)
|
|
2382
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2577
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2383
2578
|
if g_param[OptionsDefine.Language]:
|
|
2384
2579
|
profile.language = g_param[OptionsDefine.Language]
|
|
2385
2580
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2419,7 +2614,10 @@ def doDescribeTranscodeTemplates(args, parsed_globals):
|
|
|
2419
2614
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2420
2615
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2421
2616
|
)
|
|
2422
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2617
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2618
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2619
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2620
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2423
2621
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2424
2622
|
else:
|
|
2425
2623
|
cred = credential.Credential(
|
|
@@ -2431,7 +2629,7 @@ def doDescribeTranscodeTemplates(args, parsed_globals):
|
|
|
2431
2629
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2432
2630
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2433
2631
|
)
|
|
2434
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2632
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2435
2633
|
if g_param[OptionsDefine.Language]:
|
|
2436
2634
|
profile.language = g_param[OptionsDefine.Language]
|
|
2437
2635
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2471,7 +2669,10 @@ def doInspectMediaQuality(args, parsed_globals):
|
|
|
2471
2669
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2472
2670
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2473
2671
|
)
|
|
2474
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2672
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2673
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2674
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2675
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2475
2676
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2476
2677
|
else:
|
|
2477
2678
|
cred = credential.Credential(
|
|
@@ -2483,7 +2684,7 @@ def doInspectMediaQuality(args, parsed_globals):
|
|
|
2483
2684
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2484
2685
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2485
2686
|
)
|
|
2486
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2687
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2487
2688
|
if g_param[OptionsDefine.Language]:
|
|
2488
2689
|
profile.language = g_param[OptionsDefine.Language]
|
|
2489
2690
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2523,7 +2724,10 @@ def doCreateDomainVerifyRecord(args, parsed_globals):
|
|
|
2523
2724
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2524
2725
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2525
2726
|
)
|
|
2526
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2727
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2728
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2729
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2730
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2527
2731
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2528
2732
|
else:
|
|
2529
2733
|
cred = credential.Credential(
|
|
@@ -2535,7 +2739,7 @@ def doCreateDomainVerifyRecord(args, parsed_globals):
|
|
|
2535
2739
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2536
2740
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2537
2741
|
)
|
|
2538
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2742
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2539
2743
|
if g_param[OptionsDefine.Language]:
|
|
2540
2744
|
profile.language = g_param[OptionsDefine.Language]
|
|
2541
2745
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2575,7 +2779,10 @@ def doConfirmEvents(args, parsed_globals):
|
|
|
2575
2779
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2576
2780
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2577
2781
|
)
|
|
2578
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2782
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2783
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2784
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2785
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2579
2786
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2580
2787
|
else:
|
|
2581
2788
|
cred = credential.Credential(
|
|
@@ -2587,7 +2794,7 @@ def doConfirmEvents(args, parsed_globals):
|
|
|
2587
2794
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2588
2795
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2589
2796
|
)
|
|
2590
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2797
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2591
2798
|
if g_param[OptionsDefine.Language]:
|
|
2592
2799
|
profile.language = g_param[OptionsDefine.Language]
|
|
2593
2800
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2627,7 +2834,10 @@ def doDescribeAdaptiveDynamicStreamingTemplates(args, parsed_globals):
|
|
|
2627
2834
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2628
2835
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2629
2836
|
)
|
|
2630
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2837
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2838
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2839
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2840
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2631
2841
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2632
2842
|
else:
|
|
2633
2843
|
cred = credential.Credential(
|
|
@@ -2639,7 +2849,7 @@ def doDescribeAdaptiveDynamicStreamingTemplates(args, parsed_globals):
|
|
|
2639
2849
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2640
2850
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2641
2851
|
)
|
|
2642
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2852
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2643
2853
|
if g_param[OptionsDefine.Language]:
|
|
2644
2854
|
profile.language = g_param[OptionsDefine.Language]
|
|
2645
2855
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2679,7 +2889,10 @@ def doCreateContentReviewTemplate(args, parsed_globals):
|
|
|
2679
2889
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2680
2890
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2681
2891
|
)
|
|
2682
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2892
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2893
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2894
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2895
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2683
2896
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2684
2897
|
else:
|
|
2685
2898
|
cred = credential.Credential(
|
|
@@ -2691,7 +2904,7 @@ def doCreateContentReviewTemplate(args, parsed_globals):
|
|
|
2691
2904
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2692
2905
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2693
2906
|
)
|
|
2694
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2907
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2695
2908
|
if g_param[OptionsDefine.Language]:
|
|
2696
2909
|
profile.language = g_param[OptionsDefine.Language]
|
|
2697
2910
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2731,7 +2944,10 @@ def doRebuildMedia(args, parsed_globals):
|
|
|
2731
2944
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2732
2945
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2733
2946
|
)
|
|
2734
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
2947
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
2948
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
2949
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
2950
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2735
2951
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2736
2952
|
else:
|
|
2737
2953
|
cred = credential.Credential(
|
|
@@ -2743,7 +2959,7 @@ def doRebuildMedia(args, parsed_globals):
|
|
|
2743
2959
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2744
2960
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2745
2961
|
)
|
|
2746
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2962
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2747
2963
|
if g_param[OptionsDefine.Language]:
|
|
2748
2964
|
profile.language = g_param[OptionsDefine.Language]
|
|
2749
2965
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2783,7 +2999,10 @@ def doCreateSampleSnapshotTemplate(args, parsed_globals):
|
|
|
2783
2999
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2784
3000
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2785
3001
|
)
|
|
2786
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3002
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3003
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3004
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3005
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2787
3006
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2788
3007
|
else:
|
|
2789
3008
|
cred = credential.Credential(
|
|
@@ -2795,7 +3014,7 @@ def doCreateSampleSnapshotTemplate(args, parsed_globals):
|
|
|
2795
3014
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2796
3015
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2797
3016
|
)
|
|
2798
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3017
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2799
3018
|
if g_param[OptionsDefine.Language]:
|
|
2800
3019
|
profile.language = g_param[OptionsDefine.Language]
|
|
2801
3020
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2835,7 +3054,10 @@ def doDeleteAIAnalysisTemplate(args, parsed_globals):
|
|
|
2835
3054
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2836
3055
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2837
3056
|
)
|
|
2838
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3057
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3058
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3059
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3060
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2839
3061
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2840
3062
|
else:
|
|
2841
3063
|
cred = credential.Credential(
|
|
@@ -2847,7 +3069,7 @@ def doDeleteAIAnalysisTemplate(args, parsed_globals):
|
|
|
2847
3069
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2848
3070
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2849
3071
|
)
|
|
2850
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3072
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2851
3073
|
if g_param[OptionsDefine.Language]:
|
|
2852
3074
|
profile.language = g_param[OptionsDefine.Language]
|
|
2853
3075
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2887,7 +3109,10 @@ def doDescribeDrmKeyProviderInfo(args, parsed_globals):
|
|
|
2887
3109
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2888
3110
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2889
3111
|
)
|
|
2890
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3112
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3113
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3114
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3115
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2891
3116
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2892
3117
|
else:
|
|
2893
3118
|
cred = credential.Credential(
|
|
@@ -2899,7 +3124,7 @@ def doDescribeDrmKeyProviderInfo(args, parsed_globals):
|
|
|
2899
3124
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2900
3125
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2901
3126
|
)
|
|
2902
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3127
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2903
3128
|
if g_param[OptionsDefine.Language]:
|
|
2904
3129
|
profile.language = g_param[OptionsDefine.Language]
|
|
2905
3130
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2939,7 +3164,10 @@ def doDeleteRebuildMediaTemplate(args, parsed_globals):
|
|
|
2939
3164
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2940
3165
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2941
3166
|
)
|
|
2942
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3167
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3168
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3169
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3170
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2943
3171
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2944
3172
|
else:
|
|
2945
3173
|
cred = credential.Credential(
|
|
@@ -2951,7 +3179,7 @@ def doDeleteRebuildMediaTemplate(args, parsed_globals):
|
|
|
2951
3179
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2952
3180
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2953
3181
|
)
|
|
2954
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3182
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2955
3183
|
if g_param[OptionsDefine.Language]:
|
|
2956
3184
|
profile.language = g_param[OptionsDefine.Language]
|
|
2957
3185
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -2991,7 +3219,10 @@ def doLiveRealTimeClip(args, parsed_globals):
|
|
|
2991
3219
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2992
3220
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2993
3221
|
)
|
|
2994
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3222
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3223
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3224
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3225
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
2995
3226
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2996
3227
|
else:
|
|
2997
3228
|
cred = credential.Credential(
|
|
@@ -3003,7 +3234,7 @@ def doLiveRealTimeClip(args, parsed_globals):
|
|
|
3003
3234
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3004
3235
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3005
3236
|
)
|
|
3006
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3237
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3007
3238
|
if g_param[OptionsDefine.Language]:
|
|
3008
3239
|
profile.language = g_param[OptionsDefine.Language]
|
|
3009
3240
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3043,7 +3274,10 @@ def doModifyMediaStorageClass(args, parsed_globals):
|
|
|
3043
3274
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3044
3275
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3045
3276
|
)
|
|
3046
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3277
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3278
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3279
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3280
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3047
3281
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3048
3282
|
else:
|
|
3049
3283
|
cred = credential.Credential(
|
|
@@ -3055,7 +3289,7 @@ def doModifyMediaStorageClass(args, parsed_globals):
|
|
|
3055
3289
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3056
3290
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3057
3291
|
)
|
|
3058
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3292
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3059
3293
|
if g_param[OptionsDefine.Language]:
|
|
3060
3294
|
profile.language = g_param[OptionsDefine.Language]
|
|
3061
3295
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3095,7 +3329,10 @@ def doProcessMediaByUrl(args, parsed_globals):
|
|
|
3095
3329
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3096
3330
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3097
3331
|
)
|
|
3098
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3332
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3333
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3334
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3335
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3099
3336
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3100
3337
|
else:
|
|
3101
3338
|
cred = credential.Credential(
|
|
@@ -3107,7 +3344,7 @@ def doProcessMediaByUrl(args, parsed_globals):
|
|
|
3107
3344
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3108
3345
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3109
3346
|
)
|
|
3110
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3347
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3111
3348
|
if g_param[OptionsDefine.Language]:
|
|
3112
3349
|
profile.language = g_param[OptionsDefine.Language]
|
|
3113
3350
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3147,7 +3384,10 @@ def doModifySampleSnapshotTemplate(args, parsed_globals):
|
|
|
3147
3384
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3148
3385
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3149
3386
|
)
|
|
3150
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3387
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3388
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3389
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3390
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3151
3391
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3152
3392
|
else:
|
|
3153
3393
|
cred = credential.Credential(
|
|
@@ -3159,7 +3399,7 @@ def doModifySampleSnapshotTemplate(args, parsed_globals):
|
|
|
3159
3399
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3160
3400
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3161
3401
|
)
|
|
3162
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3402
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3163
3403
|
if g_param[OptionsDefine.Language]:
|
|
3164
3404
|
profile.language = g_param[OptionsDefine.Language]
|
|
3165
3405
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3199,7 +3439,10 @@ def doModifyVodDomainAccelerateConfig(args, parsed_globals):
|
|
|
3199
3439
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3200
3440
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3201
3441
|
)
|
|
3202
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3442
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3443
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3444
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3445
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3203
3446
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3204
3447
|
else:
|
|
3205
3448
|
cred = credential.Credential(
|
|
@@ -3211,7 +3454,7 @@ def doModifyVodDomainAccelerateConfig(args, parsed_globals):
|
|
|
3211
3454
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3212
3455
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3213
3456
|
)
|
|
3214
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3457
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3215
3458
|
if g_param[OptionsDefine.Language]:
|
|
3216
3459
|
profile.language = g_param[OptionsDefine.Language]
|
|
3217
3460
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3251,7 +3494,10 @@ def doDeleteSuperPlayerConfig(args, parsed_globals):
|
|
|
3251
3494
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3252
3495
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3253
3496
|
)
|
|
3254
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3497
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3498
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3499
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3500
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3255
3501
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3256
3502
|
else:
|
|
3257
3503
|
cred = credential.Credential(
|
|
@@ -3263,7 +3509,7 @@ def doDeleteSuperPlayerConfig(args, parsed_globals):
|
|
|
3263
3509
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3264
3510
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3265
3511
|
)
|
|
3266
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3512
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3267
3513
|
if g_param[OptionsDefine.Language]:
|
|
3268
3514
|
profile.language = g_param[OptionsDefine.Language]
|
|
3269
3515
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3303,7 +3549,10 @@ def doDescribeProcedureTemplates(args, parsed_globals):
|
|
|
3303
3549
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3304
3550
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3305
3551
|
)
|
|
3306
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3552
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3553
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3554
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3555
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3307
3556
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3308
3557
|
else:
|
|
3309
3558
|
cred = credential.Credential(
|
|
@@ -3315,7 +3564,7 @@ def doDescribeProcedureTemplates(args, parsed_globals):
|
|
|
3315
3564
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3316
3565
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3317
3566
|
)
|
|
3318
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3567
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3319
3568
|
if g_param[OptionsDefine.Language]:
|
|
3320
3569
|
profile.language = g_param[OptionsDefine.Language]
|
|
3321
3570
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3355,7 +3604,10 @@ def doDeleteReviewTemplate(args, parsed_globals):
|
|
|
3355
3604
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3356
3605
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3357
3606
|
)
|
|
3358
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3607
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3608
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3609
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3610
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3359
3611
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3360
3612
|
else:
|
|
3361
3613
|
cred = credential.Credential(
|
|
@@ -3367,7 +3619,7 @@ def doDeleteReviewTemplate(args, parsed_globals):
|
|
|
3367
3619
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3368
3620
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3369
3621
|
)
|
|
3370
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3622
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3371
3623
|
if g_param[OptionsDefine.Language]:
|
|
3372
3624
|
profile.language = g_param[OptionsDefine.Language]
|
|
3373
3625
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3407,7 +3659,10 @@ def doCreateWatermarkTemplate(args, parsed_globals):
|
|
|
3407
3659
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3408
3660
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3409
3661
|
)
|
|
3410
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3662
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3663
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3664
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3665
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3411
3666
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3412
3667
|
else:
|
|
3413
3668
|
cred = credential.Credential(
|
|
@@ -3419,7 +3674,7 @@ def doCreateWatermarkTemplate(args, parsed_globals):
|
|
|
3419
3674
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3420
3675
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3421
3676
|
)
|
|
3422
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3677
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3423
3678
|
if g_param[OptionsDefine.Language]:
|
|
3424
3679
|
profile.language = g_param[OptionsDefine.Language]
|
|
3425
3680
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3459,7 +3714,10 @@ def doParseStreamingManifest(args, parsed_globals):
|
|
|
3459
3714
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3460
3715
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3461
3716
|
)
|
|
3462
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3717
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3718
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3719
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3720
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3463
3721
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3464
3722
|
else:
|
|
3465
3723
|
cred = credential.Credential(
|
|
@@ -3471,7 +3729,7 @@ def doParseStreamingManifest(args, parsed_globals):
|
|
|
3471
3729
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3472
3730
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3473
3731
|
)
|
|
3474
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3732
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3475
3733
|
if g_param[OptionsDefine.Language]:
|
|
3476
3734
|
profile.language = g_param[OptionsDefine.Language]
|
|
3477
3735
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3511,7 +3769,10 @@ def doDeleteCDNDomain(args, parsed_globals):
|
|
|
3511
3769
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3512
3770
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3513
3771
|
)
|
|
3514
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3772
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3773
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3774
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3775
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3515
3776
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3516
3777
|
else:
|
|
3517
3778
|
cred = credential.Credential(
|
|
@@ -3523,7 +3784,7 @@ def doDeleteCDNDomain(args, parsed_globals):
|
|
|
3523
3784
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3524
3785
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3525
3786
|
)
|
|
3526
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3787
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3527
3788
|
if g_param[OptionsDefine.Language]:
|
|
3528
3789
|
profile.language = g_param[OptionsDefine.Language]
|
|
3529
3790
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3563,7 +3824,10 @@ def doEnhanceMediaQuality(args, parsed_globals):
|
|
|
3563
3824
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3564
3825
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3565
3826
|
)
|
|
3566
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3827
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3828
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3829
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3830
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3567
3831
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3568
3832
|
else:
|
|
3569
3833
|
cred = credential.Credential(
|
|
@@ -3575,7 +3839,7 @@ def doEnhanceMediaQuality(args, parsed_globals):
|
|
|
3575
3839
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3576
3840
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3577
3841
|
)
|
|
3578
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3842
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3579
3843
|
if g_param[OptionsDefine.Language]:
|
|
3580
3844
|
profile.language = g_param[OptionsDefine.Language]
|
|
3581
3845
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3615,7 +3879,10 @@ def doCreateProcedureTemplate(args, parsed_globals):
|
|
|
3615
3879
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3616
3880
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3617
3881
|
)
|
|
3618
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3882
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3883
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3884
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3885
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3619
3886
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3620
3887
|
else:
|
|
3621
3888
|
cred = credential.Credential(
|
|
@@ -3627,7 +3894,7 @@ def doCreateProcedureTemplate(args, parsed_globals):
|
|
|
3627
3894
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3628
3895
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3629
3896
|
)
|
|
3630
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3897
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3631
3898
|
if g_param[OptionsDefine.Language]:
|
|
3632
3899
|
profile.language = g_param[OptionsDefine.Language]
|
|
3633
3900
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3667,7 +3934,10 @@ def doPushUrlCache(args, parsed_globals):
|
|
|
3667
3934
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3668
3935
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3669
3936
|
)
|
|
3670
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3937
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3938
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3939
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3940
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3671
3941
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3672
3942
|
else:
|
|
3673
3943
|
cred = credential.Credential(
|
|
@@ -3679,7 +3949,7 @@ def doPushUrlCache(args, parsed_globals):
|
|
|
3679
3949
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3680
3950
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3681
3951
|
)
|
|
3682
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3952
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3683
3953
|
if g_param[OptionsDefine.Language]:
|
|
3684
3954
|
profile.language = g_param[OptionsDefine.Language]
|
|
3685
3955
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3719,7 +3989,10 @@ def doDeleteMedia(args, parsed_globals):
|
|
|
3719
3989
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3720
3990
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3721
3991
|
)
|
|
3722
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
3992
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3993
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3994
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3995
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3723
3996
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3724
3997
|
else:
|
|
3725
3998
|
cred = credential.Credential(
|
|
@@ -3731,7 +4004,7 @@ def doDeleteMedia(args, parsed_globals):
|
|
|
3731
4004
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3732
4005
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3733
4006
|
)
|
|
3734
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4007
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3735
4008
|
if g_param[OptionsDefine.Language]:
|
|
3736
4009
|
profile.language = g_param[OptionsDefine.Language]
|
|
3737
4010
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3771,7 +4044,10 @@ def doHandleCurrentPlaylist(args, parsed_globals):
|
|
|
3771
4044
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3772
4045
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3773
4046
|
)
|
|
3774
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4047
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4048
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4049
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4050
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3775
4051
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3776
4052
|
else:
|
|
3777
4053
|
cred = credential.Credential(
|
|
@@ -3783,7 +4059,7 @@ def doHandleCurrentPlaylist(args, parsed_globals):
|
|
|
3783
4059
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3784
4060
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3785
4061
|
)
|
|
3786
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4062
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3787
4063
|
if g_param[OptionsDefine.Language]:
|
|
3788
4064
|
profile.language = g_param[OptionsDefine.Language]
|
|
3789
4065
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3823,7 +4099,10 @@ def doDescribeImageReviewUsageData(args, parsed_globals):
|
|
|
3823
4099
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3824
4100
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3825
4101
|
)
|
|
3826
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4102
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4103
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4104
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4105
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3827
4106
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3828
4107
|
else:
|
|
3829
4108
|
cred = credential.Credential(
|
|
@@ -3835,7 +4114,7 @@ def doDescribeImageReviewUsageData(args, parsed_globals):
|
|
|
3835
4114
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3836
4115
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3837
4116
|
)
|
|
3838
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4117
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3839
4118
|
if g_param[OptionsDefine.Language]:
|
|
3840
4119
|
profile.language = g_param[OptionsDefine.Language]
|
|
3841
4120
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3875,7 +4154,10 @@ def doEnhanceMediaByTemplate(args, parsed_globals):
|
|
|
3875
4154
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3876
4155
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3877
4156
|
)
|
|
3878
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4157
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4158
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4159
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4160
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3879
4161
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3880
4162
|
else:
|
|
3881
4163
|
cred = credential.Credential(
|
|
@@ -3887,7 +4169,7 @@ def doEnhanceMediaByTemplate(args, parsed_globals):
|
|
|
3887
4169
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3888
4170
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3889
4171
|
)
|
|
3890
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4172
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3891
4173
|
if g_param[OptionsDefine.Language]:
|
|
3892
4174
|
profile.language = g_param[OptionsDefine.Language]
|
|
3893
4175
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3927,7 +4209,10 @@ def doModifyPersonSample(args, parsed_globals):
|
|
|
3927
4209
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3928
4210
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3929
4211
|
)
|
|
3930
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4212
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4213
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4214
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4215
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3931
4216
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3932
4217
|
else:
|
|
3933
4218
|
cred = credential.Credential(
|
|
@@ -3939,7 +4224,7 @@ def doModifyPersonSample(args, parsed_globals):
|
|
|
3939
4224
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3940
4225
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3941
4226
|
)
|
|
3942
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4227
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3943
4228
|
if g_param[OptionsDefine.Language]:
|
|
3944
4229
|
profile.language = g_param[OptionsDefine.Language]
|
|
3945
4230
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -3979,7 +4264,10 @@ def doCreateEnhanceMediaTemplate(args, parsed_globals):
|
|
|
3979
4264
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3980
4265
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3981
4266
|
)
|
|
3982
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4267
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4268
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4269
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4270
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3983
4271
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3984
4272
|
else:
|
|
3985
4273
|
cred = credential.Credential(
|
|
@@ -3991,7 +4279,7 @@ def doCreateEnhanceMediaTemplate(args, parsed_globals):
|
|
|
3991
4279
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3992
4280
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3993
4281
|
)
|
|
3994
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4282
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3995
4283
|
if g_param[OptionsDefine.Language]:
|
|
3996
4284
|
profile.language = g_param[OptionsDefine.Language]
|
|
3997
4285
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4031,7 +4319,10 @@ def doCreateRebuildMediaTemplate(args, parsed_globals):
|
|
|
4031
4319
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4032
4320
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4033
4321
|
)
|
|
4034
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4322
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4323
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4324
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4325
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4035
4326
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4036
4327
|
else:
|
|
4037
4328
|
cred = credential.Credential(
|
|
@@ -4043,7 +4334,7 @@ def doCreateRebuildMediaTemplate(args, parsed_globals):
|
|
|
4043
4334
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4044
4335
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4045
4336
|
)
|
|
4046
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4337
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4047
4338
|
if g_param[OptionsDefine.Language]:
|
|
4048
4339
|
profile.language = g_param[OptionsDefine.Language]
|
|
4049
4340
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4083,7 +4374,10 @@ def doDescribeCurrentPlaylist(args, parsed_globals):
|
|
|
4083
4374
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4084
4375
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4085
4376
|
)
|
|
4086
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4377
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4378
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4379
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4380
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4087
4381
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4088
4382
|
else:
|
|
4089
4383
|
cred = credential.Credential(
|
|
@@ -4095,7 +4389,7 @@ def doDescribeCurrentPlaylist(args, parsed_globals):
|
|
|
4095
4389
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4096
4390
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4097
4391
|
)
|
|
4098
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4392
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4099
4393
|
if g_param[OptionsDefine.Language]:
|
|
4100
4394
|
profile.language = g_param[OptionsDefine.Language]
|
|
4101
4395
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4135,7 +4429,10 @@ def doModifyEnhanceMediaTemplate(args, parsed_globals):
|
|
|
4135
4429
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4136
4430
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4137
4431
|
)
|
|
4138
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4432
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4433
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4434
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4435
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4139
4436
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4140
4437
|
else:
|
|
4141
4438
|
cred = credential.Credential(
|
|
@@ -4147,7 +4444,7 @@ def doModifyEnhanceMediaTemplate(args, parsed_globals):
|
|
|
4147
4444
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4148
4445
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4149
4446
|
)
|
|
4150
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4447
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4151
4448
|
if g_param[OptionsDefine.Language]:
|
|
4152
4449
|
profile.language = g_param[OptionsDefine.Language]
|
|
4153
4450
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4187,7 +4484,10 @@ def doDeleteAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
4187
4484
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4188
4485
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4189
4486
|
)
|
|
4190
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4487
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4488
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4489
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4490
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4191
4491
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4192
4492
|
else:
|
|
4193
4493
|
cred = credential.Credential(
|
|
@@ -4199,7 +4499,7 @@ def doDeleteAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
4199
4499
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4200
4500
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4201
4501
|
)
|
|
4202
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4502
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4203
4503
|
if g_param[OptionsDefine.Language]:
|
|
4204
4504
|
profile.language = g_param[OptionsDefine.Language]
|
|
4205
4505
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4239,7 +4539,10 @@ def doDeleteContentReviewTemplate(args, parsed_globals):
|
|
|
4239
4539
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4240
4540
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4241
4541
|
)
|
|
4242
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4542
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4543
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4544
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4545
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4243
4546
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4244
4547
|
else:
|
|
4245
4548
|
cred = credential.Credential(
|
|
@@ -4251,7 +4554,7 @@ def doDeleteContentReviewTemplate(args, parsed_globals):
|
|
|
4251
4554
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4252
4555
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4253
4556
|
)
|
|
4254
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4557
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4255
4558
|
if g_param[OptionsDefine.Language]:
|
|
4256
4559
|
profile.language = g_param[OptionsDefine.Language]
|
|
4257
4560
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4291,7 +4594,10 @@ def doCreateAIAnalysisTemplate(args, parsed_globals):
|
|
|
4291
4594
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4292
4595
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4293
4596
|
)
|
|
4294
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4597
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4598
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4599
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4600
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4295
4601
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4296
4602
|
else:
|
|
4297
4603
|
cred = credential.Credential(
|
|
@@ -4303,7 +4609,7 @@ def doCreateAIAnalysisTemplate(args, parsed_globals):
|
|
|
4303
4609
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4304
4610
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4305
4611
|
)
|
|
4306
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4612
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4307
4613
|
if g_param[OptionsDefine.Language]:
|
|
4308
4614
|
profile.language = g_param[OptionsDefine.Language]
|
|
4309
4615
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4343,7 +4649,10 @@ def doExtractCopyRightWatermark(args, parsed_globals):
|
|
|
4343
4649
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4344
4650
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4345
4651
|
)
|
|
4346
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4652
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4653
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4654
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4655
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4347
4656
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4348
4657
|
else:
|
|
4349
4658
|
cred = credential.Credential(
|
|
@@ -4355,7 +4664,7 @@ def doExtractCopyRightWatermark(args, parsed_globals):
|
|
|
4355
4664
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4356
4665
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4357
4666
|
)
|
|
4358
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4667
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4359
4668
|
if g_param[OptionsDefine.Language]:
|
|
4360
4669
|
profile.language = g_param[OptionsDefine.Language]
|
|
4361
4670
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4385,7 +4694,7 @@ def doExtractCopyRightWatermark(args, parsed_globals):
|
|
|
4385
4694
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4386
4695
|
|
|
4387
4696
|
|
|
4388
|
-
def
|
|
4697
|
+
def doModifyIncrementalMigrationStrategy(args, parsed_globals):
|
|
4389
4698
|
g_param = parse_global_arg(parsed_globals)
|
|
4390
4699
|
|
|
4391
4700
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4395,7 +4704,10 @@ def doDescribeStorageRegions(args, parsed_globals):
|
|
|
4395
4704
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4396
4705
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4397
4706
|
)
|
|
4398
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4707
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4708
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4709
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4710
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4399
4711
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4400
4712
|
else:
|
|
4401
4713
|
cred = credential.Credential(
|
|
@@ -4407,18 +4719,18 @@ def doDescribeStorageRegions(args, parsed_globals):
|
|
|
4407
4719
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4408
4720
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4409
4721
|
)
|
|
4410
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4722
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4411
4723
|
if g_param[OptionsDefine.Language]:
|
|
4412
4724
|
profile.language = g_param[OptionsDefine.Language]
|
|
4413
4725
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4414
4726
|
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4415
4727
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4416
4728
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4417
|
-
model = models.
|
|
4729
|
+
model = models.ModifyIncrementalMigrationStrategyRequest()
|
|
4418
4730
|
model.from_json_string(json.dumps(args))
|
|
4419
4731
|
start_time = time.time()
|
|
4420
4732
|
while True:
|
|
4421
|
-
rsp = client.
|
|
4733
|
+
rsp = client.ModifyIncrementalMigrationStrategy(model)
|
|
4422
4734
|
result = rsp.to_json_string()
|
|
4423
4735
|
try:
|
|
4424
4736
|
json_obj = json.loads(result)
|
|
@@ -4447,7 +4759,10 @@ def doRefreshUrlCache(args, parsed_globals):
|
|
|
4447
4759
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4448
4760
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4449
4761
|
)
|
|
4450
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4762
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4763
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4764
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4765
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4451
4766
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4452
4767
|
else:
|
|
4453
4768
|
cred = credential.Credential(
|
|
@@ -4459,7 +4774,7 @@ def doRefreshUrlCache(args, parsed_globals):
|
|
|
4459
4774
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4460
4775
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4461
4776
|
)
|
|
4462
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4777
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4463
4778
|
if g_param[OptionsDefine.Language]:
|
|
4464
4779
|
profile.language = g_param[OptionsDefine.Language]
|
|
4465
4780
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4499,7 +4814,10 @@ def doModifyJustInTimeTranscodeTemplate(args, parsed_globals):
|
|
|
4499
4814
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4500
4815
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4501
4816
|
)
|
|
4502
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4817
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4818
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4819
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4820
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4503
4821
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4504
4822
|
else:
|
|
4505
4823
|
cred = credential.Credential(
|
|
@@ -4511,7 +4829,7 @@ def doModifyJustInTimeTranscodeTemplate(args, parsed_globals):
|
|
|
4511
4829
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4512
4830
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4513
4831
|
)
|
|
4514
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4832
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4515
4833
|
if g_param[OptionsDefine.Language]:
|
|
4516
4834
|
profile.language = g_param[OptionsDefine.Language]
|
|
4517
4835
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4551,7 +4869,10 @@ def doModifyQualityInspectTemplate(args, parsed_globals):
|
|
|
4551
4869
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4552
4870
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4553
4871
|
)
|
|
4554
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4872
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4873
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4874
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4875
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4555
4876
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4556
4877
|
else:
|
|
4557
4878
|
cred = credential.Credential(
|
|
@@ -4563,7 +4884,7 @@ def doModifyQualityInspectTemplate(args, parsed_globals):
|
|
|
4563
4884
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4564
4885
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4565
4886
|
)
|
|
4566
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4887
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4567
4888
|
if g_param[OptionsDefine.Language]:
|
|
4568
4889
|
profile.language = g_param[OptionsDefine.Language]
|
|
4569
4890
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4603,7 +4924,10 @@ def doVerifyDomainRecord(args, parsed_globals):
|
|
|
4603
4924
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4604
4925
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4605
4926
|
)
|
|
4606
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4927
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4928
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4929
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4930
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4607
4931
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4608
4932
|
else:
|
|
4609
4933
|
cred = credential.Credential(
|
|
@@ -4615,7 +4939,7 @@ def doVerifyDomainRecord(args, parsed_globals):
|
|
|
4615
4939
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4616
4940
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4617
4941
|
)
|
|
4618
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4942
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4619
4943
|
if g_param[OptionsDefine.Language]:
|
|
4620
4944
|
profile.language = g_param[OptionsDefine.Language]
|
|
4621
4945
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4655,7 +4979,10 @@ def doCreateSuperPlayerConfig(args, parsed_globals):
|
|
|
4655
4979
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4656
4980
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4657
4981
|
)
|
|
4658
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
4982
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4983
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4984
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4985
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4659
4986
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4660
4987
|
else:
|
|
4661
4988
|
cred = credential.Credential(
|
|
@@ -4667,7 +4994,7 @@ def doCreateSuperPlayerConfig(args, parsed_globals):
|
|
|
4667
4994
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4668
4995
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4669
4996
|
)
|
|
4670
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4997
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4671
4998
|
if g_param[OptionsDefine.Language]:
|
|
4672
4999
|
profile.language = g_param[OptionsDefine.Language]
|
|
4673
5000
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4697,6 +5024,61 @@ def doCreateSuperPlayerConfig(args, parsed_globals):
|
|
|
4697
5024
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4698
5025
|
|
|
4699
5026
|
|
|
5027
|
+
def doProcessMediaByMPS(args, parsed_globals):
|
|
5028
|
+
g_param = parse_global_arg(parsed_globals)
|
|
5029
|
+
|
|
5030
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
5031
|
+
cred = credential.CVMRoleCredential()
|
|
5032
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
5033
|
+
cred = credential.STSAssumeRoleCredential(
|
|
5034
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5035
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5036
|
+
)
|
|
5037
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5038
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5039
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5040
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5041
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5042
|
+
else:
|
|
5043
|
+
cred = credential.Credential(
|
|
5044
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
5045
|
+
)
|
|
5046
|
+
http_profile = HttpProfile(
|
|
5047
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
5048
|
+
reqMethod="POST",
|
|
5049
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5050
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5051
|
+
)
|
|
5052
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5053
|
+
if g_param[OptionsDefine.Language]:
|
|
5054
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
5055
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
5056
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5057
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
5058
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5059
|
+
model = models.ProcessMediaByMPSRequest()
|
|
5060
|
+
model.from_json_string(json.dumps(args))
|
|
5061
|
+
start_time = time.time()
|
|
5062
|
+
while True:
|
|
5063
|
+
rsp = client.ProcessMediaByMPS(model)
|
|
5064
|
+
result = rsp.to_json_string()
|
|
5065
|
+
try:
|
|
5066
|
+
json_obj = json.loads(result)
|
|
5067
|
+
except TypeError as e:
|
|
5068
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
5069
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
5070
|
+
break
|
|
5071
|
+
cur_time = time.time()
|
|
5072
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
5073
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
5074
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
5075
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
5076
|
+
else:
|
|
5077
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
5078
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
5079
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5080
|
+
|
|
5081
|
+
|
|
4700
5082
|
def doModifyVodDomainConfig(args, parsed_globals):
|
|
4701
5083
|
g_param = parse_global_arg(parsed_globals)
|
|
4702
5084
|
|
|
@@ -4707,7 +5089,10 @@ def doModifyVodDomainConfig(args, parsed_globals):
|
|
|
4707
5089
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4708
5090
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4709
5091
|
)
|
|
4710
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5092
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5093
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5094
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5095
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4711
5096
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4712
5097
|
else:
|
|
4713
5098
|
cred = credential.Credential(
|
|
@@ -4719,7 +5104,7 @@ def doModifyVodDomainConfig(args, parsed_globals):
|
|
|
4719
5104
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4720
5105
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4721
5106
|
)
|
|
4722
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5107
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4723
5108
|
if g_param[OptionsDefine.Language]:
|
|
4724
5109
|
profile.language = g_param[OptionsDefine.Language]
|
|
4725
5110
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4749,6 +5134,61 @@ def doModifyVodDomainConfig(args, parsed_globals):
|
|
|
4749
5134
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4750
5135
|
|
|
4751
5136
|
|
|
5137
|
+
def doCreateIncrementalMigrationStrategy(args, parsed_globals):
|
|
5138
|
+
g_param = parse_global_arg(parsed_globals)
|
|
5139
|
+
|
|
5140
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
5141
|
+
cred = credential.CVMRoleCredential()
|
|
5142
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
5143
|
+
cred = credential.STSAssumeRoleCredential(
|
|
5144
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5145
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5146
|
+
)
|
|
5147
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5148
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5149
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5150
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5151
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5152
|
+
else:
|
|
5153
|
+
cred = credential.Credential(
|
|
5154
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
5155
|
+
)
|
|
5156
|
+
http_profile = HttpProfile(
|
|
5157
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
5158
|
+
reqMethod="POST",
|
|
5159
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5160
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5161
|
+
)
|
|
5162
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5163
|
+
if g_param[OptionsDefine.Language]:
|
|
5164
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
5165
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
5166
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5167
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
5168
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5169
|
+
model = models.CreateIncrementalMigrationStrategyRequest()
|
|
5170
|
+
model.from_json_string(json.dumps(args))
|
|
5171
|
+
start_time = time.time()
|
|
5172
|
+
while True:
|
|
5173
|
+
rsp = client.CreateIncrementalMigrationStrategy(model)
|
|
5174
|
+
result = rsp.to_json_string()
|
|
5175
|
+
try:
|
|
5176
|
+
json_obj = json.loads(result)
|
|
5177
|
+
except TypeError as e:
|
|
5178
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
5179
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
5180
|
+
break
|
|
5181
|
+
cur_time = time.time()
|
|
5182
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
5183
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
5184
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
5185
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
5186
|
+
else:
|
|
5187
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
5188
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
5189
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5190
|
+
|
|
5191
|
+
|
|
4752
5192
|
def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
|
|
4753
5193
|
g_param = parse_global_arg(parsed_globals)
|
|
4754
5194
|
|
|
@@ -4759,7 +5199,10 @@ def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
|
|
|
4759
5199
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4760
5200
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4761
5201
|
)
|
|
4762
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5202
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5203
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5204
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5205
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4763
5206
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4764
5207
|
else:
|
|
4765
5208
|
cred = credential.Credential(
|
|
@@ -4771,7 +5214,7 @@ def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
|
|
|
4771
5214
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4772
5215
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4773
5216
|
)
|
|
4774
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5217
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4775
5218
|
if g_param[OptionsDefine.Language]:
|
|
4776
5219
|
profile.language = g_param[OptionsDefine.Language]
|
|
4777
5220
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4811,7 +5254,10 @@ def doDescribeRoundPlays(args, parsed_globals):
|
|
|
4811
5254
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4812
5255
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4813
5256
|
)
|
|
4814
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5257
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5258
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5259
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5260
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4815
5261
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4816
5262
|
else:
|
|
4817
5263
|
cred = credential.Credential(
|
|
@@ -4823,7 +5269,7 @@ def doDescribeRoundPlays(args, parsed_globals):
|
|
|
4823
5269
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4824
5270
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4825
5271
|
)
|
|
4826
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5272
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4827
5273
|
if g_param[OptionsDefine.Language]:
|
|
4828
5274
|
profile.language = g_param[OptionsDefine.Language]
|
|
4829
5275
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4863,7 +5309,10 @@ def doPullUpload(args, parsed_globals):
|
|
|
4863
5309
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4864
5310
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4865
5311
|
)
|
|
4866
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5312
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5313
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5314
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5315
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4867
5316
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4868
5317
|
else:
|
|
4869
5318
|
cred = credential.Credential(
|
|
@@ -4875,7 +5324,7 @@ def doPullUpload(args, parsed_globals):
|
|
|
4875
5324
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4876
5325
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4877
5326
|
)
|
|
4878
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5327
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4879
5328
|
if g_param[OptionsDefine.Language]:
|
|
4880
5329
|
profile.language = g_param[OptionsDefine.Language]
|
|
4881
5330
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4915,7 +5364,10 @@ def doCreateComplexAdaptiveDynamicStreamingTask(args, parsed_globals):
|
|
|
4915
5364
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4916
5365
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4917
5366
|
)
|
|
4918
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5367
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5368
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5369
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5370
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4919
5371
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4920
5372
|
else:
|
|
4921
5373
|
cred = credential.Credential(
|
|
@@ -4927,7 +5379,7 @@ def doCreateComplexAdaptiveDynamicStreamingTask(args, parsed_globals):
|
|
|
4927
5379
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4928
5380
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4929
5381
|
)
|
|
4930
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5382
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4931
5383
|
if g_param[OptionsDefine.Language]:
|
|
4932
5384
|
profile.language = g_param[OptionsDefine.Language]
|
|
4933
5385
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4967,7 +5419,10 @@ def doModifyTranscodeTemplate(args, parsed_globals):
|
|
|
4967
5419
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4968
5420
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4969
5421
|
)
|
|
4970
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5422
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5423
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5424
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5425
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4971
5426
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4972
5427
|
else:
|
|
4973
5428
|
cred = credential.Credential(
|
|
@@ -4979,7 +5434,7 @@ def doModifyTranscodeTemplate(args, parsed_globals):
|
|
|
4979
5434
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4980
5435
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4981
5436
|
)
|
|
4982
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5437
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4983
5438
|
if g_param[OptionsDefine.Language]:
|
|
4984
5439
|
profile.language = g_param[OptionsDefine.Language]
|
|
4985
5440
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5019,7 +5474,10 @@ def doReviewAudioVideo(args, parsed_globals):
|
|
|
5019
5474
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5020
5475
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5021
5476
|
)
|
|
5022
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5477
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5478
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5479
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5480
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5023
5481
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5024
5482
|
else:
|
|
5025
5483
|
cred = credential.Credential(
|
|
@@ -5031,7 +5489,7 @@ def doReviewAudioVideo(args, parsed_globals):
|
|
|
5031
5489
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5032
5490
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5033
5491
|
)
|
|
5034
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5492
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5035
5493
|
if g_param[OptionsDefine.Language]:
|
|
5036
5494
|
profile.language = g_param[OptionsDefine.Language]
|
|
5037
5495
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5071,7 +5529,10 @@ def doModifyHeadTailTemplate(args, parsed_globals):
|
|
|
5071
5529
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5072
5530
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5073
5531
|
)
|
|
5074
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5532
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5533
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5534
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5535
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5075
5536
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5076
5537
|
else:
|
|
5077
5538
|
cred = credential.Credential(
|
|
@@ -5083,7 +5544,7 @@ def doModifyHeadTailTemplate(args, parsed_globals):
|
|
|
5083
5544
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5084
5545
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5085
5546
|
)
|
|
5086
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5547
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5087
5548
|
if g_param[OptionsDefine.Language]:
|
|
5088
5549
|
profile.language = g_param[OptionsDefine.Language]
|
|
5089
5550
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5123,7 +5584,10 @@ def doDeleteImageProcessingTemplate(args, parsed_globals):
|
|
|
5123
5584
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5124
5585
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5125
5586
|
)
|
|
5126
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5587
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5588
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5589
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5590
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5127
5591
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5128
5592
|
else:
|
|
5129
5593
|
cred = credential.Credential(
|
|
@@ -5135,7 +5599,7 @@ def doDeleteImageProcessingTemplate(args, parsed_globals):
|
|
|
5135
5599
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5136
5600
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5137
5601
|
)
|
|
5138
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5602
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5139
5603
|
if g_param[OptionsDefine.Language]:
|
|
5140
5604
|
profile.language = g_param[OptionsDefine.Language]
|
|
5141
5605
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5175,7 +5639,10 @@ def doCreateHeadTailTemplate(args, parsed_globals):
|
|
|
5175
5639
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5176
5640
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5177
5641
|
)
|
|
5178
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5642
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5643
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5644
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5645
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5179
5646
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5180
5647
|
else:
|
|
5181
5648
|
cred = credential.Credential(
|
|
@@ -5187,7 +5654,7 @@ def doCreateHeadTailTemplate(args, parsed_globals):
|
|
|
5187
5654
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5188
5655
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5189
5656
|
)
|
|
5190
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5657
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5191
5658
|
if g_param[OptionsDefine.Language]:
|
|
5192
5659
|
profile.language = g_param[OptionsDefine.Language]
|
|
5193
5660
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5227,7 +5694,10 @@ def doModifyWatermarkTemplate(args, parsed_globals):
|
|
|
5227
5694
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5228
5695
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5229
5696
|
)
|
|
5230
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5697
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5698
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5699
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5700
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5231
5701
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5232
5702
|
else:
|
|
5233
5703
|
cred = credential.Credential(
|
|
@@ -5239,7 +5709,7 @@ def doModifyWatermarkTemplate(args, parsed_globals):
|
|
|
5239
5709
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5240
5710
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5241
5711
|
)
|
|
5242
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5712
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5243
5713
|
if g_param[OptionsDefine.Language]:
|
|
5244
5714
|
profile.language = g_param[OptionsDefine.Language]
|
|
5245
5715
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5279,7 +5749,10 @@ def doDescribeStorageDetails(args, parsed_globals):
|
|
|
5279
5749
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5280
5750
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5281
5751
|
)
|
|
5282
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5752
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5753
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5754
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5755
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5283
5756
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5284
5757
|
else:
|
|
5285
5758
|
cred = credential.Credential(
|
|
@@ -5291,7 +5764,7 @@ def doDescribeStorageDetails(args, parsed_globals):
|
|
|
5291
5764
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5292
5765
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5293
5766
|
)
|
|
5294
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5767
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5295
5768
|
if g_param[OptionsDefine.Language]:
|
|
5296
5769
|
profile.language = g_param[OptionsDefine.Language]
|
|
5297
5770
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5331,7 +5804,10 @@ def doDeleteWordSamples(args, parsed_globals):
|
|
|
5331
5804
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5332
5805
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5333
5806
|
)
|
|
5334
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5807
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5808
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5809
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5810
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5335
5811
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5336
5812
|
else:
|
|
5337
5813
|
cred = credential.Credential(
|
|
@@ -5343,7 +5819,7 @@ def doDeleteWordSamples(args, parsed_globals):
|
|
|
5343
5819
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5344
5820
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5345
5821
|
)
|
|
5346
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5822
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5347
5823
|
if g_param[OptionsDefine.Language]:
|
|
5348
5824
|
profile.language = g_param[OptionsDefine.Language]
|
|
5349
5825
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5383,7 +5859,10 @@ def doFastEditMedia(args, parsed_globals):
|
|
|
5383
5859
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5384
5860
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5385
5861
|
)
|
|
5386
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5862
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5863
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5864
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5865
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5387
5866
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5388
5867
|
else:
|
|
5389
5868
|
cred = credential.Credential(
|
|
@@ -5395,7 +5874,7 @@ def doFastEditMedia(args, parsed_globals):
|
|
|
5395
5874
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5396
5875
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5397
5876
|
)
|
|
5398
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5877
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5399
5878
|
if g_param[OptionsDefine.Language]:
|
|
5400
5879
|
profile.language = g_param[OptionsDefine.Language]
|
|
5401
5880
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5435,7 +5914,10 @@ def doCreateVodDomain(args, parsed_globals):
|
|
|
5435
5914
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5436
5915
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5437
5916
|
)
|
|
5438
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5917
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5918
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5919
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5920
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5439
5921
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5440
5922
|
else:
|
|
5441
5923
|
cred = credential.Credential(
|
|
@@ -5447,7 +5929,7 @@ def doCreateVodDomain(args, parsed_globals):
|
|
|
5447
5929
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5448
5930
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5449
5931
|
)
|
|
5450
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5932
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5451
5933
|
if g_param[OptionsDefine.Language]:
|
|
5452
5934
|
profile.language = g_param[OptionsDefine.Language]
|
|
5453
5935
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5487,7 +5969,10 @@ def doProcessMedia(args, parsed_globals):
|
|
|
5487
5969
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5488
5970
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5489
5971
|
)
|
|
5490
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
5972
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5973
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5974
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5975
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5491
5976
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5492
5977
|
else:
|
|
5493
5978
|
cred = credential.Credential(
|
|
@@ -5499,7 +5984,7 @@ def doProcessMedia(args, parsed_globals):
|
|
|
5499
5984
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5500
5985
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5501
5986
|
)
|
|
5502
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5987
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5503
5988
|
if g_param[OptionsDefine.Language]:
|
|
5504
5989
|
profile.language = g_param[OptionsDefine.Language]
|
|
5505
5990
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5539,7 +6024,10 @@ def doDescribePersonSamples(args, parsed_globals):
|
|
|
5539
6024
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5540
6025
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5541
6026
|
)
|
|
5542
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6027
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6028
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6029
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6030
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5543
6031
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5544
6032
|
else:
|
|
5545
6033
|
cred = credential.Credential(
|
|
@@ -5551,7 +6039,7 @@ def doDescribePersonSamples(args, parsed_globals):
|
|
|
5551
6039
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5552
6040
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5553
6041
|
)
|
|
5554
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6042
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5555
6043
|
if g_param[OptionsDefine.Language]:
|
|
5556
6044
|
profile.language = g_param[OptionsDefine.Language]
|
|
5557
6045
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5591,7 +6079,10 @@ def doDeleteAIRecognitionTemplate(args, parsed_globals):
|
|
|
5591
6079
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5592
6080
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5593
6081
|
)
|
|
5594
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6082
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6083
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6084
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6085
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5595
6086
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5596
6087
|
else:
|
|
5597
6088
|
cred = credential.Credential(
|
|
@@ -5603,7 +6094,7 @@ def doDeleteAIRecognitionTemplate(args, parsed_globals):
|
|
|
5603
6094
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5604
6095
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5605
6096
|
)
|
|
5606
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6097
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5607
6098
|
if g_param[OptionsDefine.Language]:
|
|
5608
6099
|
profile.language = g_param[OptionsDefine.Language]
|
|
5609
6100
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5643,7 +6134,10 @@ def doCreateSubAppId(args, parsed_globals):
|
|
|
5643
6134
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5644
6135
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5645
6136
|
)
|
|
5646
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6137
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6138
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6139
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6140
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5647
6141
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5648
6142
|
else:
|
|
5649
6143
|
cred = credential.Credential(
|
|
@@ -5655,7 +6149,7 @@ def doCreateSubAppId(args, parsed_globals):
|
|
|
5655
6149
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5656
6150
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5657
6151
|
)
|
|
5658
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6152
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5659
6153
|
if g_param[OptionsDefine.Language]:
|
|
5660
6154
|
profile.language = g_param[OptionsDefine.Language]
|
|
5661
6155
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5695,7 +6189,10 @@ def doDescribeAnimatedGraphicsTemplates(args, parsed_globals):
|
|
|
5695
6189
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5696
6190
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5697
6191
|
)
|
|
5698
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6192
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6193
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6194
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6195
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5699
6196
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5700
6197
|
else:
|
|
5701
6198
|
cred = credential.Credential(
|
|
@@ -5707,7 +6204,7 @@ def doDescribeAnimatedGraphicsTemplates(args, parsed_globals):
|
|
|
5707
6204
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5708
6205
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5709
6206
|
)
|
|
5710
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6207
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5711
6208
|
if g_param[OptionsDefine.Language]:
|
|
5712
6209
|
profile.language = g_param[OptionsDefine.Language]
|
|
5713
6210
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5747,7 +6244,10 @@ def doForbidMediaDistribution(args, parsed_globals):
|
|
|
5747
6244
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5748
6245
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5749
6246
|
)
|
|
5750
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6247
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6248
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6249
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6250
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5751
6251
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5752
6252
|
else:
|
|
5753
6253
|
cred = credential.Credential(
|
|
@@ -5759,7 +6259,7 @@ def doForbidMediaDistribution(args, parsed_globals):
|
|
|
5759
6259
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5760
6260
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5761
6261
|
)
|
|
5762
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6262
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5763
6263
|
if g_param[OptionsDefine.Language]:
|
|
5764
6264
|
profile.language = g_param[OptionsDefine.Language]
|
|
5765
6265
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5799,7 +6299,10 @@ def doManageTask(args, parsed_globals):
|
|
|
5799
6299
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5800
6300
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5801
6301
|
)
|
|
5802
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6302
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6303
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6304
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6305
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5803
6306
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5804
6307
|
else:
|
|
5805
6308
|
cred = credential.Credential(
|
|
@@ -5811,7 +6314,7 @@ def doManageTask(args, parsed_globals):
|
|
|
5811
6314
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5812
6315
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5813
6316
|
)
|
|
5814
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6317
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5815
6318
|
if g_param[OptionsDefine.Language]:
|
|
5816
6319
|
profile.language = g_param[OptionsDefine.Language]
|
|
5817
6320
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5851,7 +6354,10 @@ def doModifyAIAnalysisTemplate(args, parsed_globals):
|
|
|
5851
6354
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5852
6355
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5853
6356
|
)
|
|
5854
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6357
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6358
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6359
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6360
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5855
6361
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5856
6362
|
else:
|
|
5857
6363
|
cred = credential.Credential(
|
|
@@ -5863,7 +6369,7 @@ def doModifyAIAnalysisTemplate(args, parsed_globals):
|
|
|
5863
6369
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5864
6370
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5865
6371
|
)
|
|
5866
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6372
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5867
6373
|
if g_param[OptionsDefine.Language]:
|
|
5868
6374
|
profile.language = g_param[OptionsDefine.Language]
|
|
5869
6375
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5903,7 +6409,10 @@ def doModifySnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
5903
6409
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5904
6410
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5905
6411
|
)
|
|
5906
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6412
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6413
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6414
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6415
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5907
6416
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5908
6417
|
else:
|
|
5909
6418
|
cred = credential.Credential(
|
|
@@ -5915,7 +6424,7 @@ def doModifySnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
5915
6424
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5916
6425
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5917
6426
|
)
|
|
5918
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6427
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5919
6428
|
if g_param[OptionsDefine.Language]:
|
|
5920
6429
|
profile.language = g_param[OptionsDefine.Language]
|
|
5921
6430
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5945,6 +6454,61 @@ def doModifySnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
5945
6454
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5946
6455
|
|
|
5947
6456
|
|
|
6457
|
+
def doCreateStorageCredentials(args, parsed_globals):
|
|
6458
|
+
g_param = parse_global_arg(parsed_globals)
|
|
6459
|
+
|
|
6460
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
6461
|
+
cred = credential.CVMRoleCredential()
|
|
6462
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
6463
|
+
cred = credential.STSAssumeRoleCredential(
|
|
6464
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6465
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6466
|
+
)
|
|
6467
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6468
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6469
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6470
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6471
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6472
|
+
else:
|
|
6473
|
+
cred = credential.Credential(
|
|
6474
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
6475
|
+
)
|
|
6476
|
+
http_profile = HttpProfile(
|
|
6477
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
6478
|
+
reqMethod="POST",
|
|
6479
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6480
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6481
|
+
)
|
|
6482
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6483
|
+
if g_param[OptionsDefine.Language]:
|
|
6484
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
6485
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
6486
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
6487
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
6488
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
6489
|
+
model = models.CreateStorageCredentialsRequest()
|
|
6490
|
+
model.from_json_string(json.dumps(args))
|
|
6491
|
+
start_time = time.time()
|
|
6492
|
+
while True:
|
|
6493
|
+
rsp = client.CreateStorageCredentials(model)
|
|
6494
|
+
result = rsp.to_json_string()
|
|
6495
|
+
try:
|
|
6496
|
+
json_obj = json.loads(result)
|
|
6497
|
+
except TypeError as e:
|
|
6498
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
6499
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
6500
|
+
break
|
|
6501
|
+
cur_time = time.time()
|
|
6502
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
6503
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
6504
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
6505
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
6506
|
+
else:
|
|
6507
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
6508
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
6509
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6510
|
+
|
|
6511
|
+
|
|
5948
6512
|
def doModifySuperPlayerConfig(args, parsed_globals):
|
|
5949
6513
|
g_param = parse_global_arg(parsed_globals)
|
|
5950
6514
|
|
|
@@ -5955,7 +6519,10 @@ def doModifySuperPlayerConfig(args, parsed_globals):
|
|
|
5955
6519
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5956
6520
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5957
6521
|
)
|
|
5958
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6522
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6523
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6524
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6525
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5959
6526
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5960
6527
|
else:
|
|
5961
6528
|
cred = credential.Credential(
|
|
@@ -5967,7 +6534,7 @@ def doModifySuperPlayerConfig(args, parsed_globals):
|
|
|
5967
6534
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5968
6535
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5969
6536
|
)
|
|
5970
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6537
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5971
6538
|
if g_param[OptionsDefine.Language]:
|
|
5972
6539
|
profile.language = g_param[OptionsDefine.Language]
|
|
5973
6540
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6007,7 +6574,10 @@ def doStartCDNDomain(args, parsed_globals):
|
|
|
6007
6574
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6008
6575
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6009
6576
|
)
|
|
6010
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6577
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6578
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6579
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6580
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6011
6581
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6012
6582
|
else:
|
|
6013
6583
|
cred = credential.Credential(
|
|
@@ -6019,7 +6589,7 @@ def doStartCDNDomain(args, parsed_globals):
|
|
|
6019
6589
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6020
6590
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6021
6591
|
)
|
|
6022
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6592
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6023
6593
|
if g_param[OptionsDefine.Language]:
|
|
6024
6594
|
profile.language = g_param[OptionsDefine.Language]
|
|
6025
6595
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6059,7 +6629,10 @@ def doModifyCDNDomainConfig(args, parsed_globals):
|
|
|
6059
6629
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6060
6630
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6061
6631
|
)
|
|
6062
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6632
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6633
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6634
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6635
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6063
6636
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6064
6637
|
else:
|
|
6065
6638
|
cred = credential.Credential(
|
|
@@ -6071,7 +6644,7 @@ def doModifyCDNDomainConfig(args, parsed_globals):
|
|
|
6071
6644
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6072
6645
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6073
6646
|
)
|
|
6074
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6647
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6075
6648
|
if g_param[OptionsDefine.Language]:
|
|
6076
6649
|
profile.language = g_param[OptionsDefine.Language]
|
|
6077
6650
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6111,7 +6684,10 @@ def doDescribeEventConfig(args, parsed_globals):
|
|
|
6111
6684
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6112
6685
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6113
6686
|
)
|
|
6114
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6687
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6688
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6689
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6690
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6115
6691
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6116
6692
|
else:
|
|
6117
6693
|
cred = credential.Credential(
|
|
@@ -6123,7 +6699,7 @@ def doDescribeEventConfig(args, parsed_globals):
|
|
|
6123
6699
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6124
6700
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6125
6701
|
)
|
|
6126
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6702
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6127
6703
|
if g_param[OptionsDefine.Language]:
|
|
6128
6704
|
profile.language = g_param[OptionsDefine.Language]
|
|
6129
6705
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6163,7 +6739,10 @@ def doModifySubAppIdInfo(args, parsed_globals):
|
|
|
6163
6739
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6164
6740
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6165
6741
|
)
|
|
6166
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6742
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6743
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6744
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6745
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6167
6746
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6168
6747
|
else:
|
|
6169
6748
|
cred = credential.Credential(
|
|
@@ -6175,7 +6754,7 @@ def doModifySubAppIdInfo(args, parsed_globals):
|
|
|
6175
6754
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6176
6755
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6177
6756
|
)
|
|
6178
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6757
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6179
6758
|
if g_param[OptionsDefine.Language]:
|
|
6180
6759
|
profile.language = g_param[OptionsDefine.Language]
|
|
6181
6760
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6215,7 +6794,10 @@ def doModifyRoundPlay(args, parsed_globals):
|
|
|
6215
6794
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6216
6795
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6217
6796
|
)
|
|
6218
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6797
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6798
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6799
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6800
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6219
6801
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6220
6802
|
else:
|
|
6221
6803
|
cred = credential.Credential(
|
|
@@ -6227,7 +6809,7 @@ def doModifyRoundPlay(args, parsed_globals):
|
|
|
6227
6809
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6228
6810
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6229
6811
|
)
|
|
6230
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6812
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6231
6813
|
if g_param[OptionsDefine.Language]:
|
|
6232
6814
|
profile.language = g_param[OptionsDefine.Language]
|
|
6233
6815
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6267,7 +6849,10 @@ def doComposeMedia(args, parsed_globals):
|
|
|
6267
6849
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6268
6850
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6269
6851
|
)
|
|
6270
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6852
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6853
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6854
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6855
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6271
6856
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6272
6857
|
else:
|
|
6273
6858
|
cred = credential.Credential(
|
|
@@ -6279,7 +6864,7 @@ def doComposeMedia(args, parsed_globals):
|
|
|
6279
6864
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6280
6865
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6281
6866
|
)
|
|
6282
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6867
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6283
6868
|
if g_param[OptionsDefine.Language]:
|
|
6284
6869
|
profile.language = g_param[OptionsDefine.Language]
|
|
6285
6870
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6319,7 +6904,10 @@ def doDescribeCDNDomains(args, parsed_globals):
|
|
|
6319
6904
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6320
6905
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6321
6906
|
)
|
|
6322
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6907
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6908
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6909
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6910
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6323
6911
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6324
6912
|
else:
|
|
6325
6913
|
cred = credential.Credential(
|
|
@@ -6331,7 +6919,7 @@ def doDescribeCDNDomains(args, parsed_globals):
|
|
|
6331
6919
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6332
6920
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6333
6921
|
)
|
|
6334
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6922
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6335
6923
|
if g_param[OptionsDefine.Language]:
|
|
6336
6924
|
profile.language = g_param[OptionsDefine.Language]
|
|
6337
6925
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6371,7 +6959,10 @@ def doModifyWordSample(args, parsed_globals):
|
|
|
6371
6959
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6372
6960
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6373
6961
|
)
|
|
6374
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
6962
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
6963
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
6964
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
6965
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6375
6966
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6376
6967
|
else:
|
|
6377
6968
|
cred = credential.Credential(
|
|
@@ -6383,7 +6974,7 @@ def doModifyWordSample(args, parsed_globals):
|
|
|
6383
6974
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6384
6975
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6385
6976
|
)
|
|
6386
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6977
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6387
6978
|
if g_param[OptionsDefine.Language]:
|
|
6388
6979
|
profile.language = g_param[OptionsDefine.Language]
|
|
6389
6980
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6423,7 +7014,10 @@ def doDescribeImageSpriteTemplates(args, parsed_globals):
|
|
|
6423
7014
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6424
7015
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6425
7016
|
)
|
|
6426
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7017
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7018
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7019
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7020
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6427
7021
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6428
7022
|
else:
|
|
6429
7023
|
cred = credential.Credential(
|
|
@@ -6435,7 +7029,7 @@ def doDescribeImageSpriteTemplates(args, parsed_globals):
|
|
|
6435
7029
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6436
7030
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6437
7031
|
)
|
|
6438
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7032
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6439
7033
|
if g_param[OptionsDefine.Language]:
|
|
6440
7034
|
profile.language = g_param[OptionsDefine.Language]
|
|
6441
7035
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6475,7 +7069,10 @@ def doDescribeAllClass(args, parsed_globals):
|
|
|
6475
7069
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6476
7070
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6477
7071
|
)
|
|
6478
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7072
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7073
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7074
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7075
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6479
7076
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6480
7077
|
else:
|
|
6481
7078
|
cred = credential.Credential(
|
|
@@ -6487,7 +7084,7 @@ def doDescribeAllClass(args, parsed_globals):
|
|
|
6487
7084
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6488
7085
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6489
7086
|
)
|
|
6490
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7087
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6491
7088
|
if g_param[OptionsDefine.Language]:
|
|
6492
7089
|
profile.language = g_param[OptionsDefine.Language]
|
|
6493
7090
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6527,7 +7124,10 @@ def doDescribeWatermarkTemplates(args, parsed_globals):
|
|
|
6527
7124
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6528
7125
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6529
7126
|
)
|
|
6530
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7127
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7128
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7129
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7130
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6531
7131
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6532
7132
|
else:
|
|
6533
7133
|
cred = credential.Credential(
|
|
@@ -6539,7 +7139,7 @@ def doDescribeWatermarkTemplates(args, parsed_globals):
|
|
|
6539
7139
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6540
7140
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6541
7141
|
)
|
|
6542
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7142
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6543
7143
|
if g_param[OptionsDefine.Language]:
|
|
6544
7144
|
profile.language = g_param[OptionsDefine.Language]
|
|
6545
7145
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6579,7 +7179,10 @@ def doCreateImageSpriteTemplate(args, parsed_globals):
|
|
|
6579
7179
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6580
7180
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6581
7181
|
)
|
|
6582
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7182
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7183
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7184
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7185
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6583
7186
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6584
7187
|
else:
|
|
6585
7188
|
cred = credential.Credential(
|
|
@@ -6591,7 +7194,7 @@ def doCreateImageSpriteTemplate(args, parsed_globals):
|
|
|
6591
7194
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6592
7195
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6593
7196
|
)
|
|
6594
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7197
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6595
7198
|
if g_param[OptionsDefine.Language]:
|
|
6596
7199
|
profile.language = g_param[OptionsDefine.Language]
|
|
6597
7200
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6631,7 +7234,10 @@ def doSetDrmKeyProviderInfo(args, parsed_globals):
|
|
|
6631
7234
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6632
7235
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6633
7236
|
)
|
|
6634
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7237
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7238
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7239
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7240
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6635
7241
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6636
7242
|
else:
|
|
6637
7243
|
cred = credential.Credential(
|
|
@@ -6643,7 +7249,7 @@ def doSetDrmKeyProviderInfo(args, parsed_globals):
|
|
|
6643
7249
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6644
7250
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6645
7251
|
)
|
|
6646
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7252
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6647
7253
|
if g_param[OptionsDefine.Language]:
|
|
6648
7254
|
profile.language = g_param[OptionsDefine.Language]
|
|
6649
7255
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6683,7 +7289,10 @@ def doDescribeJustInTimeTranscodeTemplates(args, parsed_globals):
|
|
|
6683
7289
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6684
7290
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6685
7291
|
)
|
|
6686
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7292
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7293
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7294
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7295
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6687
7296
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6688
7297
|
else:
|
|
6689
7298
|
cred = credential.Credential(
|
|
@@ -6695,7 +7304,7 @@ def doDescribeJustInTimeTranscodeTemplates(args, parsed_globals):
|
|
|
6695
7304
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6696
7305
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6697
7306
|
)
|
|
6698
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7307
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6699
7308
|
if g_param[OptionsDefine.Language]:
|
|
6700
7309
|
profile.language = g_param[OptionsDefine.Language]
|
|
6701
7310
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6735,7 +7344,10 @@ def doCreateReviewTemplate(args, parsed_globals):
|
|
|
6735
7344
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6736
7345
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6737
7346
|
)
|
|
6738
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7347
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7348
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7349
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7350
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6739
7351
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6740
7352
|
else:
|
|
6741
7353
|
cred = credential.Credential(
|
|
@@ -6747,7 +7359,7 @@ def doCreateReviewTemplate(args, parsed_globals):
|
|
|
6747
7359
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6748
7360
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6749
7361
|
)
|
|
6750
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7362
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6751
7363
|
if g_param[OptionsDefine.Language]:
|
|
6752
7364
|
profile.language = g_param[OptionsDefine.Language]
|
|
6753
7365
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6787,7 +7399,10 @@ def doDescribeContentReviewTemplates(args, parsed_globals):
|
|
|
6787
7399
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6788
7400
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6789
7401
|
)
|
|
6790
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7402
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7403
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7404
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7405
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6791
7406
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6792
7407
|
else:
|
|
6793
7408
|
cred = credential.Credential(
|
|
@@ -6799,7 +7414,7 @@ def doDescribeContentReviewTemplates(args, parsed_globals):
|
|
|
6799
7414
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6800
7415
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6801
7416
|
)
|
|
6802
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7417
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6803
7418
|
if g_param[OptionsDefine.Language]:
|
|
6804
7419
|
profile.language = g_param[OptionsDefine.Language]
|
|
6805
7420
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6839,7 +7454,10 @@ def doDeleteQualityInspectTemplate(args, parsed_globals):
|
|
|
6839
7454
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6840
7455
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6841
7456
|
)
|
|
6842
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7457
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7458
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7459
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7460
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6843
7461
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6844
7462
|
else:
|
|
6845
7463
|
cred = credential.Credential(
|
|
@@ -6851,7 +7469,7 @@ def doDeleteQualityInspectTemplate(args, parsed_globals):
|
|
|
6851
7469
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6852
7470
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6853
7471
|
)
|
|
6854
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7472
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6855
7473
|
if g_param[OptionsDefine.Language]:
|
|
6856
7474
|
profile.language = g_param[OptionsDefine.Language]
|
|
6857
7475
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6891,7 +7509,10 @@ def doDescribeQualityInspectTemplates(args, parsed_globals):
|
|
|
6891
7509
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6892
7510
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6893
7511
|
)
|
|
6894
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7512
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7513
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7514
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7515
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6895
7516
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6896
7517
|
else:
|
|
6897
7518
|
cred = credential.Credential(
|
|
@@ -6903,7 +7524,7 @@ def doDescribeQualityInspectTemplates(args, parsed_globals):
|
|
|
6903
7524
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6904
7525
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6905
7526
|
)
|
|
6906
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7527
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6907
7528
|
if g_param[OptionsDefine.Language]:
|
|
6908
7529
|
profile.language = g_param[OptionsDefine.Language]
|
|
6909
7530
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6933,6 +7554,116 @@ def doDescribeQualityInspectTemplates(args, parsed_globals):
|
|
|
6933
7554
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
6934
7555
|
|
|
6935
7556
|
|
|
7557
|
+
def doDescribeIncrementalMigrationStrategyInfos(args, parsed_globals):
|
|
7558
|
+
g_param = parse_global_arg(parsed_globals)
|
|
7559
|
+
|
|
7560
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
7561
|
+
cred = credential.CVMRoleCredential()
|
|
7562
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
7563
|
+
cred = credential.STSAssumeRoleCredential(
|
|
7564
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7565
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7566
|
+
)
|
|
7567
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7568
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7569
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7570
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7571
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7572
|
+
else:
|
|
7573
|
+
cred = credential.Credential(
|
|
7574
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
7575
|
+
)
|
|
7576
|
+
http_profile = HttpProfile(
|
|
7577
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
7578
|
+
reqMethod="POST",
|
|
7579
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7580
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7581
|
+
)
|
|
7582
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7583
|
+
if g_param[OptionsDefine.Language]:
|
|
7584
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
7585
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
7586
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7587
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
7588
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7589
|
+
model = models.DescribeIncrementalMigrationStrategyInfosRequest()
|
|
7590
|
+
model.from_json_string(json.dumps(args))
|
|
7591
|
+
start_time = time.time()
|
|
7592
|
+
while True:
|
|
7593
|
+
rsp = client.DescribeIncrementalMigrationStrategyInfos(model)
|
|
7594
|
+
result = rsp.to_json_string()
|
|
7595
|
+
try:
|
|
7596
|
+
json_obj = json.loads(result)
|
|
7597
|
+
except TypeError as e:
|
|
7598
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
7599
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
7600
|
+
break
|
|
7601
|
+
cur_time = time.time()
|
|
7602
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
7603
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
7604
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
7605
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
7606
|
+
else:
|
|
7607
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
7608
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
7609
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7610
|
+
|
|
7611
|
+
|
|
7612
|
+
def doCreateStorageRegion(args, parsed_globals):
|
|
7613
|
+
g_param = parse_global_arg(parsed_globals)
|
|
7614
|
+
|
|
7615
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
7616
|
+
cred = credential.CVMRoleCredential()
|
|
7617
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
7618
|
+
cred = credential.STSAssumeRoleCredential(
|
|
7619
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7620
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7621
|
+
)
|
|
7622
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7623
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7624
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7625
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7626
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7627
|
+
else:
|
|
7628
|
+
cred = credential.Credential(
|
|
7629
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
7630
|
+
)
|
|
7631
|
+
http_profile = HttpProfile(
|
|
7632
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
7633
|
+
reqMethod="POST",
|
|
7634
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7635
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7636
|
+
)
|
|
7637
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7638
|
+
if g_param[OptionsDefine.Language]:
|
|
7639
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
7640
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
7641
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7642
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
7643
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7644
|
+
model = models.CreateStorageRegionRequest()
|
|
7645
|
+
model.from_json_string(json.dumps(args))
|
|
7646
|
+
start_time = time.time()
|
|
7647
|
+
while True:
|
|
7648
|
+
rsp = client.CreateStorageRegion(model)
|
|
7649
|
+
result = rsp.to_json_string()
|
|
7650
|
+
try:
|
|
7651
|
+
json_obj = json.loads(result)
|
|
7652
|
+
except TypeError as e:
|
|
7653
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
7654
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
7655
|
+
break
|
|
7656
|
+
cur_time = time.time()
|
|
7657
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
7658
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
7659
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
7660
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
7661
|
+
else:
|
|
7662
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
7663
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
7664
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7665
|
+
|
|
7666
|
+
|
|
6936
7667
|
def doCreateJustInTimeTranscodeTemplate(args, parsed_globals):
|
|
6937
7668
|
g_param = parse_global_arg(parsed_globals)
|
|
6938
7669
|
|
|
@@ -6943,7 +7674,10 @@ def doCreateJustInTimeTranscodeTemplate(args, parsed_globals):
|
|
|
6943
7674
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6944
7675
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6945
7676
|
)
|
|
6946
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7677
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7678
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7679
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7680
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6947
7681
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
6948
7682
|
else:
|
|
6949
7683
|
cred = credential.Credential(
|
|
@@ -6955,7 +7689,7 @@ def doCreateJustInTimeTranscodeTemplate(args, parsed_globals):
|
|
|
6955
7689
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
6956
7690
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
6957
7691
|
)
|
|
6958
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7692
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
6959
7693
|
if g_param[OptionsDefine.Language]:
|
|
6960
7694
|
profile.language = g_param[OptionsDefine.Language]
|
|
6961
7695
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -6995,7 +7729,10 @@ def doCreateAIRecognitionTemplate(args, parsed_globals):
|
|
|
6995
7729
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
6996
7730
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
6997
7731
|
)
|
|
6998
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7732
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7733
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7734
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7735
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
6999
7736
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7000
7737
|
else:
|
|
7001
7738
|
cred = credential.Credential(
|
|
@@ -7007,7 +7744,7 @@ def doCreateAIRecognitionTemplate(args, parsed_globals):
|
|
|
7007
7744
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7008
7745
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7009
7746
|
)
|
|
7010
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7747
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7011
7748
|
if g_param[OptionsDefine.Language]:
|
|
7012
7749
|
profile.language = g_param[OptionsDefine.Language]
|
|
7013
7750
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7047,7 +7784,10 @@ def doDescribeSubAppIds(args, parsed_globals):
|
|
|
7047
7784
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7048
7785
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7049
7786
|
)
|
|
7050
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7787
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7788
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7789
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7790
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7051
7791
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7052
7792
|
else:
|
|
7053
7793
|
cred = credential.Credential(
|
|
@@ -7059,7 +7799,7 @@ def doDescribeSubAppIds(args, parsed_globals):
|
|
|
7059
7799
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7060
7800
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7061
7801
|
)
|
|
7062
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7802
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7063
7803
|
if g_param[OptionsDefine.Language]:
|
|
7064
7804
|
profile.language = g_param[OptionsDefine.Language]
|
|
7065
7805
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7089,6 +7829,61 @@ def doDescribeSubAppIds(args, parsed_globals):
|
|
|
7089
7829
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7090
7830
|
|
|
7091
7831
|
|
|
7832
|
+
def doDeleteIncrementalMigrationStrategy(args, parsed_globals):
|
|
7833
|
+
g_param = parse_global_arg(parsed_globals)
|
|
7834
|
+
|
|
7835
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
7836
|
+
cred = credential.CVMRoleCredential()
|
|
7837
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
7838
|
+
cred = credential.STSAssumeRoleCredential(
|
|
7839
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7840
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7841
|
+
)
|
|
7842
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7843
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7844
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7845
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7846
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7847
|
+
else:
|
|
7848
|
+
cred = credential.Credential(
|
|
7849
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
7850
|
+
)
|
|
7851
|
+
http_profile = HttpProfile(
|
|
7852
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
7853
|
+
reqMethod="POST",
|
|
7854
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7855
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7856
|
+
)
|
|
7857
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7858
|
+
if g_param[OptionsDefine.Language]:
|
|
7859
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
7860
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
7861
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
7862
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
7863
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
7864
|
+
model = models.DeleteIncrementalMigrationStrategyRequest()
|
|
7865
|
+
model.from_json_string(json.dumps(args))
|
|
7866
|
+
start_time = time.time()
|
|
7867
|
+
while True:
|
|
7868
|
+
rsp = client.DeleteIncrementalMigrationStrategy(model)
|
|
7869
|
+
result = rsp.to_json_string()
|
|
7870
|
+
try:
|
|
7871
|
+
json_obj = json.loads(result)
|
|
7872
|
+
except TypeError as e:
|
|
7873
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
7874
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
7875
|
+
break
|
|
7876
|
+
cur_time = time.time()
|
|
7877
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
7878
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
7879
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
7880
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
7881
|
+
else:
|
|
7882
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
7883
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
7884
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
7885
|
+
|
|
7886
|
+
|
|
7092
7887
|
def doDescribeHeadTailTemplates(args, parsed_globals):
|
|
7093
7888
|
g_param = parse_global_arg(parsed_globals)
|
|
7094
7889
|
|
|
@@ -7099,7 +7894,10 @@ def doDescribeHeadTailTemplates(args, parsed_globals):
|
|
|
7099
7894
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7100
7895
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7101
7896
|
)
|
|
7102
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7897
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7898
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7899
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7900
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7103
7901
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7104
7902
|
else:
|
|
7105
7903
|
cred = credential.Credential(
|
|
@@ -7111,7 +7909,7 @@ def doDescribeHeadTailTemplates(args, parsed_globals):
|
|
|
7111
7909
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7112
7910
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7113
7911
|
)
|
|
7114
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7912
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7115
7913
|
if g_param[OptionsDefine.Language]:
|
|
7116
7914
|
profile.language = g_param[OptionsDefine.Language]
|
|
7117
7915
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7151,7 +7949,10 @@ def doDescribeReviewTemplates(args, parsed_globals):
|
|
|
7151
7949
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7152
7950
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7153
7951
|
)
|
|
7154
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
7952
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
7953
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
7954
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
7955
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7155
7956
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7156
7957
|
else:
|
|
7157
7958
|
cred = credential.Credential(
|
|
@@ -7163,7 +7964,7 @@ def doDescribeReviewTemplates(args, parsed_globals):
|
|
|
7163
7964
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7164
7965
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7165
7966
|
)
|
|
7166
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
7967
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7167
7968
|
if g_param[OptionsDefine.Language]:
|
|
7168
7969
|
profile.language = g_param[OptionsDefine.Language]
|
|
7169
7970
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7203,7 +8004,10 @@ def doCommitUpload(args, parsed_globals):
|
|
|
7203
8004
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7204
8005
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7205
8006
|
)
|
|
7206
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8007
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8008
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8009
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8010
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7207
8011
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7208
8012
|
else:
|
|
7209
8013
|
cred = credential.Credential(
|
|
@@ -7215,7 +8019,7 @@ def doCommitUpload(args, parsed_globals):
|
|
|
7215
8019
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7216
8020
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7217
8021
|
)
|
|
7218
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8022
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7219
8023
|
if g_param[OptionsDefine.Language]:
|
|
7220
8024
|
profile.language = g_param[OptionsDefine.Language]
|
|
7221
8025
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7255,7 +8059,10 @@ def doModifyAIRecognitionTemplate(args, parsed_globals):
|
|
|
7255
8059
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7256
8060
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7257
8061
|
)
|
|
7258
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8062
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8063
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8064
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8065
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7259
8066
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7260
8067
|
else:
|
|
7261
8068
|
cred = credential.Credential(
|
|
@@ -7267,7 +8074,7 @@ def doModifyAIRecognitionTemplate(args, parsed_globals):
|
|
|
7267
8074
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7268
8075
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7269
8076
|
)
|
|
7270
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8077
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7271
8078
|
if g_param[OptionsDefine.Language]:
|
|
7272
8079
|
profile.language = g_param[OptionsDefine.Language]
|
|
7273
8080
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7307,7 +8114,10 @@ def doModifyAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
7307
8114
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7308
8115
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7309
8116
|
)
|
|
7310
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8117
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8118
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8119
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8120
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7311
8121
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7312
8122
|
else:
|
|
7313
8123
|
cred = credential.Credential(
|
|
@@ -7319,7 +8129,7 @@ def doModifyAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
7319
8129
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7320
8130
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7321
8131
|
)
|
|
7322
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8132
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7323
8133
|
if g_param[OptionsDefine.Language]:
|
|
7324
8134
|
profile.language = g_param[OptionsDefine.Language]
|
|
7325
8135
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7359,7 +8169,10 @@ def doSearchMedia(args, parsed_globals):
|
|
|
7359
8169
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7360
8170
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7361
8171
|
)
|
|
7362
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8172
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8173
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8174
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8175
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7363
8176
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7364
8177
|
else:
|
|
7365
8178
|
cred = credential.Credential(
|
|
@@ -7371,7 +8184,7 @@ def doSearchMedia(args, parsed_globals):
|
|
|
7371
8184
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7372
8185
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7373
8186
|
)
|
|
7374
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8187
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7375
8188
|
if g_param[OptionsDefine.Language]:
|
|
7376
8189
|
profile.language = g_param[OptionsDefine.Language]
|
|
7377
8190
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7411,7 +8224,10 @@ def doDeleteWatermarkTemplate(args, parsed_globals):
|
|
|
7411
8224
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7412
8225
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7413
8226
|
)
|
|
7414
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8227
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8228
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8229
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8230
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7415
8231
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7416
8232
|
else:
|
|
7417
8233
|
cred = credential.Credential(
|
|
@@ -7423,7 +8239,7 @@ def doDeleteWatermarkTemplate(args, parsed_globals):
|
|
|
7423
8239
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7424
8240
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7425
8241
|
)
|
|
7426
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8242
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7427
8243
|
if g_param[OptionsDefine.Language]:
|
|
7428
8244
|
profile.language = g_param[OptionsDefine.Language]
|
|
7429
8245
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7463,7 +8279,10 @@ def doDeleteJustInTimeTranscodeTemplate(args, parsed_globals):
|
|
|
7463
8279
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7464
8280
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7465
8281
|
)
|
|
7466
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8282
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8283
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8284
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8285
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7467
8286
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7468
8287
|
else:
|
|
7469
8288
|
cred = credential.Credential(
|
|
@@ -7475,7 +8294,7 @@ def doDeleteJustInTimeTranscodeTemplate(args, parsed_globals):
|
|
|
7475
8294
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7476
8295
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7477
8296
|
)
|
|
7478
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8297
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7479
8298
|
if g_param[OptionsDefine.Language]:
|
|
7480
8299
|
profile.language = g_param[OptionsDefine.Language]
|
|
7481
8300
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7515,7 +8334,10 @@ def doDeletePersonSample(args, parsed_globals):
|
|
|
7515
8334
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7516
8335
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7517
8336
|
)
|
|
7518
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8337
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8338
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8339
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8340
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7519
8341
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7520
8342
|
else:
|
|
7521
8343
|
cred = credential.Credential(
|
|
@@ -7527,7 +8349,7 @@ def doDeletePersonSample(args, parsed_globals):
|
|
|
7527
8349
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7528
8350
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7529
8351
|
)
|
|
7530
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8352
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7531
8353
|
if g_param[OptionsDefine.Language]:
|
|
7532
8354
|
profile.language = g_param[OptionsDefine.Language]
|
|
7533
8355
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7567,7 +8389,10 @@ def doDescribeEnhanceMediaTemplates(args, parsed_globals):
|
|
|
7567
8389
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7568
8390
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7569
8391
|
)
|
|
7570
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8392
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8393
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8394
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8395
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7571
8396
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7572
8397
|
else:
|
|
7573
8398
|
cred = credential.Credential(
|
|
@@ -7579,7 +8404,7 @@ def doDescribeEnhanceMediaTemplates(args, parsed_globals):
|
|
|
7579
8404
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7580
8405
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7581
8406
|
)
|
|
7582
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8407
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7583
8408
|
if g_param[OptionsDefine.Language]:
|
|
7584
8409
|
profile.language = g_param[OptionsDefine.Language]
|
|
7585
8410
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7619,7 +8444,10 @@ def doCreateAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
7619
8444
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7620
8445
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7621
8446
|
)
|
|
7622
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8447
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8448
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8449
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8450
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7623
8451
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7624
8452
|
else:
|
|
7625
8453
|
cred = credential.Credential(
|
|
@@ -7631,7 +8459,7 @@ def doCreateAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
7631
8459
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7632
8460
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7633
8461
|
)
|
|
7634
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8462
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7635
8463
|
if g_param[OptionsDefine.Language]:
|
|
7636
8464
|
profile.language = g_param[OptionsDefine.Language]
|
|
7637
8465
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7671,7 +8499,10 @@ def doModifyAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
7671
8499
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7672
8500
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7673
8501
|
)
|
|
7674
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8502
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8503
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8504
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8505
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7675
8506
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7676
8507
|
else:
|
|
7677
8508
|
cred = credential.Credential(
|
|
@@ -7683,7 +8514,7 @@ def doModifyAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
7683
8514
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7684
8515
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7685
8516
|
)
|
|
7686
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8517
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7687
8518
|
if g_param[OptionsDefine.Language]:
|
|
7688
8519
|
profile.language = g_param[OptionsDefine.Language]
|
|
7689
8520
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7723,7 +8554,10 @@ def doAttachMediaSubtitles(args, parsed_globals):
|
|
|
7723
8554
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7724
8555
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7725
8556
|
)
|
|
7726
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8557
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8558
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8559
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8560
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7727
8561
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7728
8562
|
else:
|
|
7729
8563
|
cred = credential.Credential(
|
|
@@ -7735,7 +8569,7 @@ def doAttachMediaSubtitles(args, parsed_globals):
|
|
|
7735
8569
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7736
8570
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7737
8571
|
)
|
|
7738
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8572
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7739
8573
|
if g_param[OptionsDefine.Language]:
|
|
7740
8574
|
profile.language = g_param[OptionsDefine.Language]
|
|
7741
8575
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7775,7 +8609,10 @@ def doModifyEventConfig(args, parsed_globals):
|
|
|
7775
8609
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7776
8610
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7777
8611
|
)
|
|
7778
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8612
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8613
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8614
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8615
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7779
8616
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7780
8617
|
else:
|
|
7781
8618
|
cred = credential.Credential(
|
|
@@ -7787,7 +8624,7 @@ def doModifyEventConfig(args, parsed_globals):
|
|
|
7787
8624
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7788
8625
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7789
8626
|
)
|
|
7790
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8627
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7791
8628
|
if g_param[OptionsDefine.Language]:
|
|
7792
8629
|
profile.language = g_param[OptionsDefine.Language]
|
|
7793
8630
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7827,7 +8664,10 @@ def doDescribeDailyPlayStatFileList(args, parsed_globals):
|
|
|
7827
8664
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7828
8665
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7829
8666
|
)
|
|
7830
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8667
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8668
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8669
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8670
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7831
8671
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7832
8672
|
else:
|
|
7833
8673
|
cred = credential.Credential(
|
|
@@ -7839,7 +8679,7 @@ def doDescribeDailyPlayStatFileList(args, parsed_globals):
|
|
|
7839
8679
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7840
8680
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7841
8681
|
)
|
|
7842
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8682
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7843
8683
|
if g_param[OptionsDefine.Language]:
|
|
7844
8684
|
profile.language = g_param[OptionsDefine.Language]
|
|
7845
8685
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7879,7 +8719,10 @@ def doReviewImage(args, parsed_globals):
|
|
|
7879
8719
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7880
8720
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7881
8721
|
)
|
|
7882
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8722
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8723
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8724
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8725
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7883
8726
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7884
8727
|
else:
|
|
7885
8728
|
cred = credential.Credential(
|
|
@@ -7891,7 +8734,7 @@ def doReviewImage(args, parsed_globals):
|
|
|
7891
8734
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7892
8735
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7893
8736
|
)
|
|
7894
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8737
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7895
8738
|
if g_param[OptionsDefine.Language]:
|
|
7896
8739
|
profile.language = g_param[OptionsDefine.Language]
|
|
7897
8740
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7931,7 +8774,10 @@ def doDeleteSampleSnapshotTemplate(args, parsed_globals):
|
|
|
7931
8774
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7932
8775
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7933
8776
|
)
|
|
7934
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8777
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8778
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8779
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8780
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7935
8781
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7936
8782
|
else:
|
|
7937
8783
|
cred = credential.Credential(
|
|
@@ -7943,7 +8789,7 @@ def doDeleteSampleSnapshotTemplate(args, parsed_globals):
|
|
|
7943
8789
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7944
8790
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7945
8791
|
)
|
|
7946
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8792
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7947
8793
|
if g_param[OptionsDefine.Language]:
|
|
7948
8794
|
profile.language = g_param[OptionsDefine.Language]
|
|
7949
8795
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -7983,7 +8829,10 @@ def doSimpleHlsClip(args, parsed_globals):
|
|
|
7983
8829
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
7984
8830
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
7985
8831
|
)
|
|
7986
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8832
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8833
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8834
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8835
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
7987
8836
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
7988
8837
|
else:
|
|
7989
8838
|
cred = credential.Credential(
|
|
@@ -7995,7 +8844,7 @@ def doSimpleHlsClip(args, parsed_globals):
|
|
|
7995
8844
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
7996
8845
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
7997
8846
|
)
|
|
7998
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8847
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
7999
8848
|
if g_param[OptionsDefine.Language]:
|
|
8000
8849
|
profile.language = g_param[OptionsDefine.Language]
|
|
8001
8850
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8035,7 +8884,10 @@ def doSetVodDomainCertificate(args, parsed_globals):
|
|
|
8035
8884
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8036
8885
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8037
8886
|
)
|
|
8038
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8887
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8888
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8889
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8890
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8039
8891
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8040
8892
|
else:
|
|
8041
8893
|
cred = credential.Credential(
|
|
@@ -8047,7 +8899,7 @@ def doSetVodDomainCertificate(args, parsed_globals):
|
|
|
8047
8899
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8048
8900
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8049
8901
|
)
|
|
8050
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8902
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8051
8903
|
if g_param[OptionsDefine.Language]:
|
|
8052
8904
|
profile.language = g_param[OptionsDefine.Language]
|
|
8053
8905
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8087,7 +8939,10 @@ def doDescribeMediaInfos(args, parsed_globals):
|
|
|
8087
8939
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8088
8940
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8089
8941
|
)
|
|
8090
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8942
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8943
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8944
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
8945
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8091
8946
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8092
8947
|
else:
|
|
8093
8948
|
cred = credential.Credential(
|
|
@@ -8099,7 +8954,7 @@ def doDescribeMediaInfos(args, parsed_globals):
|
|
|
8099
8954
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8100
8955
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8101
8956
|
)
|
|
8102
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
8957
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8103
8958
|
if g_param[OptionsDefine.Language]:
|
|
8104
8959
|
profile.language = g_param[OptionsDefine.Language]
|
|
8105
8960
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8139,7 +8994,10 @@ def doRebuildMediaByTemplate(args, parsed_globals):
|
|
|
8139
8994
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8140
8995
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8141
8996
|
)
|
|
8142
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
8997
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
8998
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
8999
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9000
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8143
9001
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8144
9002
|
else:
|
|
8145
9003
|
cred = credential.Credential(
|
|
@@ -8151,7 +9009,7 @@ def doRebuildMediaByTemplate(args, parsed_globals):
|
|
|
8151
9009
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8152
9010
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8153
9011
|
)
|
|
8154
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9012
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8155
9013
|
if g_param[OptionsDefine.Language]:
|
|
8156
9014
|
profile.language = g_param[OptionsDefine.Language]
|
|
8157
9015
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8191,7 +9049,10 @@ def doDeleteHeadTailTemplate(args, parsed_globals):
|
|
|
8191
9049
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8192
9050
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8193
9051
|
)
|
|
8194
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9052
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9053
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9054
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9055
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8195
9056
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8196
9057
|
else:
|
|
8197
9058
|
cred = credential.Credential(
|
|
@@ -8203,7 +9064,7 @@ def doDeleteHeadTailTemplate(args, parsed_globals):
|
|
|
8203
9064
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8204
9065
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8205
9066
|
)
|
|
8206
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9067
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8207
9068
|
if g_param[OptionsDefine.Language]:
|
|
8208
9069
|
profile.language = g_param[OptionsDefine.Language]
|
|
8209
9070
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8243,7 +9104,10 @@ def doCreatePersonSample(args, parsed_globals):
|
|
|
8243
9104
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8244
9105
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8245
9106
|
)
|
|
8246
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9107
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9108
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9109
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9110
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8247
9111
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8248
9112
|
else:
|
|
8249
9113
|
cred = credential.Credential(
|
|
@@ -8255,7 +9119,7 @@ def doCreatePersonSample(args, parsed_globals):
|
|
|
8255
9119
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8256
9120
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8257
9121
|
)
|
|
8258
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9122
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8259
9123
|
if g_param[OptionsDefine.Language]:
|
|
8260
9124
|
profile.language = g_param[OptionsDefine.Language]
|
|
8261
9125
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8295,7 +9159,10 @@ def doModifySubAppIdStatus(args, parsed_globals):
|
|
|
8295
9159
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8296
9160
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8297
9161
|
)
|
|
8298
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9162
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9163
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9164
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9165
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8299
9166
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8300
9167
|
else:
|
|
8301
9168
|
cred = credential.Credential(
|
|
@@ -8307,7 +9174,7 @@ def doModifySubAppIdStatus(args, parsed_globals):
|
|
|
8307
9174
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8308
9175
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8309
9176
|
)
|
|
8310
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9177
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8311
9178
|
if g_param[OptionsDefine.Language]:
|
|
8312
9179
|
profile.language = g_param[OptionsDefine.Language]
|
|
8313
9180
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8347,7 +9214,10 @@ def doDeleteRoundPlay(args, parsed_globals):
|
|
|
8347
9214
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8348
9215
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8349
9216
|
)
|
|
8350
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9217
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9218
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9219
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9220
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8351
9221
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8352
9222
|
else:
|
|
8353
9223
|
cred = credential.Credential(
|
|
@@ -8359,7 +9229,7 @@ def doDeleteRoundPlay(args, parsed_globals):
|
|
|
8359
9229
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8360
9230
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8361
9231
|
)
|
|
8362
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9232
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8363
9233
|
if g_param[OptionsDefine.Language]:
|
|
8364
9234
|
profile.language = g_param[OptionsDefine.Language]
|
|
8365
9235
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8389,6 +9259,61 @@ def doDeleteRoundPlay(args, parsed_globals):
|
|
|
8389
9259
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
8390
9260
|
|
|
8391
9261
|
|
|
9262
|
+
def doDescribeStorageRegions(args, parsed_globals):
|
|
9263
|
+
g_param = parse_global_arg(parsed_globals)
|
|
9264
|
+
|
|
9265
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
9266
|
+
cred = credential.CVMRoleCredential()
|
|
9267
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
9268
|
+
cred = credential.STSAssumeRoleCredential(
|
|
9269
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
9270
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
9271
|
+
)
|
|
9272
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9273
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9274
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9275
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
9276
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
9277
|
+
else:
|
|
9278
|
+
cred = credential.Credential(
|
|
9279
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
9280
|
+
)
|
|
9281
|
+
http_profile = HttpProfile(
|
|
9282
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
9283
|
+
reqMethod="POST",
|
|
9284
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
9285
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
9286
|
+
)
|
|
9287
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
9288
|
+
if g_param[OptionsDefine.Language]:
|
|
9289
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
9290
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
9291
|
+
client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9292
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
9293
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9294
|
+
model = models.DescribeStorageRegionsRequest()
|
|
9295
|
+
model.from_json_string(json.dumps(args))
|
|
9296
|
+
start_time = time.time()
|
|
9297
|
+
while True:
|
|
9298
|
+
rsp = client.DescribeStorageRegions(model)
|
|
9299
|
+
result = rsp.to_json_string()
|
|
9300
|
+
try:
|
|
9301
|
+
json_obj = json.loads(result)
|
|
9302
|
+
except TypeError as e:
|
|
9303
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
9304
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
9305
|
+
break
|
|
9306
|
+
cur_time = time.time()
|
|
9307
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
9308
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
9309
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
9310
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
9311
|
+
else:
|
|
9312
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
9313
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
9314
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9315
|
+
|
|
9316
|
+
|
|
8392
9317
|
def doCreateCDNDomain(args, parsed_globals):
|
|
8393
9318
|
g_param = parse_global_arg(parsed_globals)
|
|
8394
9319
|
|
|
@@ -8399,7 +9324,10 @@ def doCreateCDNDomain(args, parsed_globals):
|
|
|
8399
9324
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8400
9325
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8401
9326
|
)
|
|
8402
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9327
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9328
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9329
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9330
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8403
9331
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8404
9332
|
else:
|
|
8405
9333
|
cred = credential.Credential(
|
|
@@ -8411,7 +9339,7 @@ def doCreateCDNDomain(args, parsed_globals):
|
|
|
8411
9339
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8412
9340
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8413
9341
|
)
|
|
8414
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8415
9343
|
if g_param[OptionsDefine.Language]:
|
|
8416
9344
|
profile.language = g_param[OptionsDefine.Language]
|
|
8417
9345
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8451,7 +9379,10 @@ def doModifyContentReviewTemplate(args, parsed_globals):
|
|
|
8451
9379
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8452
9380
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8453
9381
|
)
|
|
8454
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9382
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9383
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9384
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9385
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8455
9386
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8456
9387
|
else:
|
|
8457
9388
|
cred = credential.Credential(
|
|
@@ -8463,7 +9394,7 @@ def doModifyContentReviewTemplate(args, parsed_globals):
|
|
|
8463
9394
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8464
9395
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8465
9396
|
)
|
|
8466
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9397
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8467
9398
|
if g_param[OptionsDefine.Language]:
|
|
8468
9399
|
profile.language = g_param[OptionsDefine.Language]
|
|
8469
9400
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8503,7 +9434,10 @@ def doDeleteVodDomain(args, parsed_globals):
|
|
|
8503
9434
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8504
9435
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8505
9436
|
)
|
|
8506
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9437
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9438
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9439
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9440
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8507
9441
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8508
9442
|
else:
|
|
8509
9443
|
cred = credential.Credential(
|
|
@@ -8515,7 +9449,7 @@ def doDeleteVodDomain(args, parsed_globals):
|
|
|
8515
9449
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8516
9450
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8517
9451
|
)
|
|
8518
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9452
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8519
9453
|
if g_param[OptionsDefine.Language]:
|
|
8520
9454
|
profile.language = g_param[OptionsDefine.Language]
|
|
8521
9455
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8555,7 +9489,10 @@ def doDescribeSuperPlayerConfigs(args, parsed_globals):
|
|
|
8555
9489
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8556
9490
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8557
9491
|
)
|
|
8558
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9492
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9493
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9494
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9495
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8559
9496
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8560
9497
|
else:
|
|
8561
9498
|
cred = credential.Credential(
|
|
@@ -8567,7 +9504,7 @@ def doDescribeSuperPlayerConfigs(args, parsed_globals):
|
|
|
8567
9504
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8568
9505
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8569
9506
|
)
|
|
8570
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9507
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8571
9508
|
if g_param[OptionsDefine.Language]:
|
|
8572
9509
|
profile.language = g_param[OptionsDefine.Language]
|
|
8573
9510
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8607,7 +9544,10 @@ def doDeleteEnhanceMediaTemplate(args, parsed_globals):
|
|
|
8607
9544
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8608
9545
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8609
9546
|
)
|
|
8610
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9547
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9548
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9549
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9550
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8611
9551
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8612
9552
|
else:
|
|
8613
9553
|
cred = credential.Credential(
|
|
@@ -8619,7 +9559,7 @@ def doDeleteEnhanceMediaTemplate(args, parsed_globals):
|
|
|
8619
9559
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8620
9560
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8621
9561
|
)
|
|
8622
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9562
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8623
9563
|
if g_param[OptionsDefine.Language]:
|
|
8624
9564
|
profile.language = g_param[OptionsDefine.Language]
|
|
8625
9565
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8659,7 +9599,10 @@ def doDescribeRebuildMediaTemplates(args, parsed_globals):
|
|
|
8659
9599
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8660
9600
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8661
9601
|
)
|
|
8662
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9602
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9603
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9604
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9605
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8663
9606
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8664
9607
|
else:
|
|
8665
9608
|
cred = credential.Credential(
|
|
@@ -8671,7 +9614,7 @@ def doDescribeRebuildMediaTemplates(args, parsed_globals):
|
|
|
8671
9614
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8672
9615
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8673
9616
|
)
|
|
8674
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9617
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8675
9618
|
if g_param[OptionsDefine.Language]:
|
|
8676
9619
|
profile.language = g_param[OptionsDefine.Language]
|
|
8677
9620
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8711,7 +9654,10 @@ def doModifyMediaInfo(args, parsed_globals):
|
|
|
8711
9654
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8712
9655
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8713
9656
|
)
|
|
8714
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9657
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9658
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9659
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9660
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8715
9661
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8716
9662
|
else:
|
|
8717
9663
|
cred = credential.Credential(
|
|
@@ -8723,7 +9669,7 @@ def doModifyMediaInfo(args, parsed_globals):
|
|
|
8723
9669
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8724
9670
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8725
9671
|
)
|
|
8726
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9672
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8727
9673
|
if g_param[OptionsDefine.Language]:
|
|
8728
9674
|
profile.language = g_param[OptionsDefine.Language]
|
|
8729
9675
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8763,7 +9709,10 @@ def doDescribeAIRecognitionTemplates(args, parsed_globals):
|
|
|
8763
9709
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8764
9710
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8765
9711
|
)
|
|
8766
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9712
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9713
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9714
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9715
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8767
9716
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8768
9717
|
else:
|
|
8769
9718
|
cred = credential.Credential(
|
|
@@ -8775,7 +9724,7 @@ def doDescribeAIRecognitionTemplates(args, parsed_globals):
|
|
|
8775
9724
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8776
9725
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8777
9726
|
)
|
|
8778
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9727
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8779
9728
|
if g_param[OptionsDefine.Language]:
|
|
8780
9729
|
profile.language = g_param[OptionsDefine.Language]
|
|
8781
9730
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8815,7 +9764,10 @@ def doDeleteImageSpriteTemplate(args, parsed_globals):
|
|
|
8815
9764
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8816
9765
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8817
9766
|
)
|
|
8818
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9767
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9768
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9769
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9770
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8819
9771
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8820
9772
|
else:
|
|
8821
9773
|
cred = credential.Credential(
|
|
@@ -8827,7 +9779,7 @@ def doDeleteImageSpriteTemplate(args, parsed_globals):
|
|
|
8827
9779
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8828
9780
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8829
9781
|
)
|
|
8830
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9782
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8831
9783
|
if g_param[OptionsDefine.Language]:
|
|
8832
9784
|
profile.language = g_param[OptionsDefine.Language]
|
|
8833
9785
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8867,7 +9819,10 @@ def doRestoreMedia(args, parsed_globals):
|
|
|
8867
9819
|
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
8868
9820
|
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
8869
9821
|
)
|
|
8870
|
-
elif os.getenv(OptionsDefine.ENV_TKE_REGION)
|
|
9822
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
9823
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
9824
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
9825
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
8871
9826
|
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
8872
9827
|
else:
|
|
8873
9828
|
cred = credential.Credential(
|
|
@@ -8879,7 +9834,7 @@ def doRestoreMedia(args, parsed_globals):
|
|
|
8879
9834
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
8880
9835
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
8881
9836
|
)
|
|
8882
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
9837
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
8883
9838
|
if g_param[OptionsDefine.Language]:
|
|
8884
9839
|
profile.language = g_param[OptionsDefine.Language]
|
|
8885
9840
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -8910,11 +9865,13 @@ def doRestoreMedia(args, parsed_globals):
|
|
|
8910
9865
|
|
|
8911
9866
|
|
|
8912
9867
|
CLIENT_MAP = {
|
|
9868
|
+
"v20240718": vod_client_v20240718,
|
|
8913
9869
|
"v20180717": vod_client_v20180717,
|
|
8914
9870
|
|
|
8915
9871
|
}
|
|
8916
9872
|
|
|
8917
9873
|
MODELS_MAP = {
|
|
9874
|
+
"v20240718": models_v20240718,
|
|
8918
9875
|
"v20180717": models_v20180717,
|
|
8919
9876
|
|
|
8920
9877
|
}
|
|
@@ -8952,7 +9909,7 @@ ACTION_MAP = {
|
|
|
8952
9909
|
"DescribeCdnLogs": doDescribeCdnLogs,
|
|
8953
9910
|
"ModifyClass": doModifyClass,
|
|
8954
9911
|
"DescribeTasks": doDescribeTasks,
|
|
8955
|
-
"
|
|
9912
|
+
"DescribeStorage": doDescribeStorage,
|
|
8956
9913
|
"ResetProcedureTemplate": doResetProcedureTemplate,
|
|
8957
9914
|
"DescribeCDNUsageData": doDescribeCDNUsageData,
|
|
8958
9915
|
"CreateTranscodeTemplate": doCreateTranscodeTemplate,
|
|
@@ -8962,6 +9919,7 @@ ACTION_MAP = {
|
|
|
8962
9919
|
"ModifyReviewTemplate": doModifyReviewTemplate,
|
|
8963
9920
|
"DescribeLicenseUsageData": doDescribeLicenseUsageData,
|
|
8964
9921
|
"ModifyImageSpriteTemplate": doModifyImageSpriteTemplate,
|
|
9922
|
+
"CreateStorage": doCreateStorage,
|
|
8965
9923
|
"DeleteClass": doDeleteClass,
|
|
8966
9924
|
"ExecuteFunction": doExecuteFunction,
|
|
8967
9925
|
"DescribeClientUploadAccelerationUsageData": doDescribeClientUploadAccelerationUsageData,
|
|
@@ -9004,13 +9962,15 @@ ACTION_MAP = {
|
|
|
9004
9962
|
"DeleteContentReviewTemplate": doDeleteContentReviewTemplate,
|
|
9005
9963
|
"CreateAIAnalysisTemplate": doCreateAIAnalysisTemplate,
|
|
9006
9964
|
"ExtractCopyRightWatermark": doExtractCopyRightWatermark,
|
|
9007
|
-
"
|
|
9965
|
+
"ModifyIncrementalMigrationStrategy": doModifyIncrementalMigrationStrategy,
|
|
9008
9966
|
"RefreshUrlCache": doRefreshUrlCache,
|
|
9009
9967
|
"ModifyJustInTimeTranscodeTemplate": doModifyJustInTimeTranscodeTemplate,
|
|
9010
9968
|
"ModifyQualityInspectTemplate": doModifyQualityInspectTemplate,
|
|
9011
9969
|
"VerifyDomainRecord": doVerifyDomainRecord,
|
|
9012
9970
|
"CreateSuperPlayerConfig": doCreateSuperPlayerConfig,
|
|
9971
|
+
"ProcessMediaByMPS": doProcessMediaByMPS,
|
|
9013
9972
|
"ModifyVodDomainConfig": doModifyVodDomainConfig,
|
|
9973
|
+
"CreateIncrementalMigrationStrategy": doCreateIncrementalMigrationStrategy,
|
|
9014
9974
|
"DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
|
|
9015
9975
|
"DescribeRoundPlays": doDescribeRoundPlays,
|
|
9016
9976
|
"PullUpload": doPullUpload,
|
|
@@ -9034,6 +9994,7 @@ ACTION_MAP = {
|
|
|
9034
9994
|
"ManageTask": doManageTask,
|
|
9035
9995
|
"ModifyAIAnalysisTemplate": doModifyAIAnalysisTemplate,
|
|
9036
9996
|
"ModifySnapshotByTimeOffsetTemplate": doModifySnapshotByTimeOffsetTemplate,
|
|
9997
|
+
"CreateStorageCredentials": doCreateStorageCredentials,
|
|
9037
9998
|
"ModifySuperPlayerConfig": doModifySuperPlayerConfig,
|
|
9038
9999
|
"StartCDNDomain": doStartCDNDomain,
|
|
9039
10000
|
"ModifyCDNDomainConfig": doModifyCDNDomainConfig,
|
|
@@ -9053,9 +10014,12 @@ ACTION_MAP = {
|
|
|
9053
10014
|
"DescribeContentReviewTemplates": doDescribeContentReviewTemplates,
|
|
9054
10015
|
"DeleteQualityInspectTemplate": doDeleteQualityInspectTemplate,
|
|
9055
10016
|
"DescribeQualityInspectTemplates": doDescribeQualityInspectTemplates,
|
|
10017
|
+
"DescribeIncrementalMigrationStrategyInfos": doDescribeIncrementalMigrationStrategyInfos,
|
|
10018
|
+
"CreateStorageRegion": doCreateStorageRegion,
|
|
9056
10019
|
"CreateJustInTimeTranscodeTemplate": doCreateJustInTimeTranscodeTemplate,
|
|
9057
10020
|
"CreateAIRecognitionTemplate": doCreateAIRecognitionTemplate,
|
|
9058
10021
|
"DescribeSubAppIds": doDescribeSubAppIds,
|
|
10022
|
+
"DeleteIncrementalMigrationStrategy": doDeleteIncrementalMigrationStrategy,
|
|
9059
10023
|
"DescribeHeadTailTemplates": doDescribeHeadTailTemplates,
|
|
9060
10024
|
"DescribeReviewTemplates": doDescribeReviewTemplates,
|
|
9061
10025
|
"CommitUpload": doCommitUpload,
|
|
@@ -9081,6 +10045,7 @@ ACTION_MAP = {
|
|
|
9081
10045
|
"CreatePersonSample": doCreatePersonSample,
|
|
9082
10046
|
"ModifySubAppIdStatus": doModifySubAppIdStatus,
|
|
9083
10047
|
"DeleteRoundPlay": doDeleteRoundPlay,
|
|
10048
|
+
"DescribeStorageRegions": doDescribeStorageRegions,
|
|
9084
10049
|
"CreateCDNDomain": doCreateCDNDomain,
|
|
9085
10050
|
"ModifyContentReviewTemplate": doModifyContentReviewTemplate,
|
|
9086
10051
|
"DeleteVodDomain": doDeleteVodDomain,
|
|
@@ -9095,6 +10060,7 @@ ACTION_MAP = {
|
|
|
9095
10060
|
}
|
|
9096
10061
|
|
|
9097
10062
|
AVAILABLE_VERSION_LIST = [
|
|
10063
|
+
"v20240718",
|
|
9098
10064
|
"v20180717",
|
|
9099
10065
|
|
|
9100
10066
|
]
|