tccli 3.0.1407.1__py2.py3-none-any.whl → 3.1.6.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.
Files changed (446) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/argument.py +13 -2
  3. tccli/main.py +0 -5
  4. tccli/services/__init__.py +9 -0
  5. tccli/services/aai/aai_client.py +20 -8
  6. tccli/services/aca/aca_client.py +40 -16
  7. tccli/services/acp/acp_client.py +40 -16
  8. tccli/services/advisor/advisor_client.py +10 -4
  9. tccli/services/af/af_client.py +15 -6
  10. tccli/services/afc/afc_client.py +15 -6
  11. tccli/services/ags/__init__.py +4 -0
  12. tccli/services/ags/ags_client.py +826 -0
  13. tccli/services/ags/v20250920/api.json +1076 -0
  14. tccli/services/ags/v20250920/examples.json +101 -0
  15. tccli/services/ai3d/ai3d_client.py +20 -114
  16. tccli/services/ai3d/v20250513/api.json +6 -169
  17. tccli/services/ai3d/v20250513/examples.json +0 -16
  18. tccli/services/aiart/aiart_client.py +284 -109
  19. tccli/services/aiart/v20221229/api.json +201 -8
  20. tccli/services/aiart/v20221229/examples.json +16 -0
  21. tccli/services/ame/ame_client.py +155 -62
  22. tccli/services/ams/ams_client.py +45 -18
  23. tccli/services/anicloud/anicloud_client.py +15 -6
  24. tccli/services/antiddos/antiddos_client.py +470 -188
  25. tccli/services/ape/ape_client.py +40 -16
  26. tccli/services/api/api_client.py +15 -6
  27. tccli/services/apigateway/apigateway_client.py +495 -198
  28. tccli/services/apm/apm_client.py +742 -81
  29. tccli/services/apm/v20210622/api.json +3239 -1322
  30. tccli/services/apm/v20210622/examples.json +95 -1
  31. tccli/services/asr/asr_client.py +160 -64
  32. tccli/services/asr/v20190614/api.json +2 -2
  33. tccli/services/asw/asw_client.py +45 -18
  34. tccli/services/autoscaling/autoscaling_client.py +290 -116
  35. tccli/services/autoscaling/v20180419/api.json +51 -7
  36. tccli/services/ba/ba_client.py +15 -6
  37. tccli/services/batch/batch_client.py +150 -60
  38. tccli/services/batch/v20170312/api.json +11 -0
  39. tccli/services/bda/bda_client.py +40 -714
  40. tccli/services/bda/v20200324/api.json +107 -1819
  41. tccli/services/bda/v20200324/examples.json +0 -176
  42. tccli/services/bh/bh_client.py +1934 -465
  43. tccli/services/bh/v20230418/api.json +1720 -107
  44. tccli/services/bh/v20230418/examples.json +188 -0
  45. tccli/services/bi/bi_client.py +145 -58
  46. tccli/services/billing/billing_client.py +310 -124
  47. tccli/services/billing/v20180709/api.json +18 -9
  48. tccli/services/billing/v20180709/examples.json +2 -2
  49. tccli/services/bizlive/bizlive_client.py +30 -12
  50. tccli/services/bm/bm_client.py +265 -106
  51. tccli/services/bma/bma_client.py +185 -74
  52. tccli/services/bmeip/bmeip_client.py +100 -40
  53. tccli/services/bmlb/bmlb_client.py +245 -98
  54. tccli/services/bmvpc/bmvpc_client.py +305 -122
  55. tccli/services/bpaas/bpaas_client.py +10 -4
  56. tccli/services/bri/bri_client.py +5 -2
  57. tccli/services/bsca/bsca_client.py +35 -14
  58. tccli/services/btoe/btoe_client.py +70 -28
  59. tccli/services/ca/ca_client.py +15 -6
  60. tccli/services/cam/cam_client.py +460 -184
  61. tccli/services/cam/v20190116/api.json +3 -3
  62. tccli/services/captcha/captcha_client.py +90 -36
  63. tccli/services/captcha/v20190722/api.json +4 -4
  64. tccli/services/captcha/v20190722/examples.json +1 -1
  65. tccli/services/car/car_client.py +30 -12
  66. tccli/services/cat/cat_client.py +70 -28
  67. tccli/services/cat/v20180409/api.json +7 -7
  68. tccli/services/cbs/cbs_client.py +230 -92
  69. tccli/services/ccc/ccc_client.py +613 -158
  70. tccli/services/ccc/v20200210/api.json +406 -8
  71. tccli/services/ccc/v20200210/examples.json +32 -0
  72. tccli/services/cdb/cdb_client.py +931 -350
  73. tccli/services/cdb/v20170320/api.json +131 -32
  74. tccli/services/cdb/v20170320/examples.json +18 -10
  75. tccli/services/cdc/cdc_client.py +115 -46
  76. tccli/services/cdn/cdn_client.py +275 -110
  77. tccli/services/cdn/v20180606/api.json +15 -4
  78. tccli/services/cdn/v20180606/examples.json +1 -1
  79. tccli/services/cds/cds_client.py +25 -10
  80. tccli/services/cdwch/cdwch_client.py +145 -58
  81. tccli/services/cdwch/v20200915/api.json +26 -11
  82. tccli/services/cdwdoris/cdwdoris_client.py +300 -120
  83. tccli/services/cdwdoris/v20211228/api.json +11 -1
  84. tccli/services/cdwpg/cdwpg_client.py +120 -48
  85. tccli/services/cdz/cdz_client.py +10 -4
  86. tccli/services/cfg/cfg_client.py +85 -34
  87. tccli/services/cfg/v20210820/api.json +11 -1
  88. tccli/services/cfs/cfs_client.py +326 -208
  89. tccli/services/cfs/v20190719/api.json +199 -64
  90. tccli/services/cfs/v20190719/examples.json +6 -14
  91. tccli/services/cfw/cfw_client.py +679 -287
  92. tccli/services/cfw/v20190904/api.json +420 -2
  93. tccli/services/cfw/v20190904/examples.json +8 -0
  94. tccli/services/chc/chc_client.py +190 -76
  95. tccli/services/chc/v20230418/api.json +77 -2
  96. tccli/services/chdfs/chdfs_client.py +145 -58
  97. tccli/services/ciam/ciam_client.py +115 -46
  98. tccli/services/cii/cii_client.py +65 -26
  99. tccli/services/cim/cim_client.py +5 -2
  100. tccli/services/ckafka/ckafka_client.py +837 -240
  101. tccli/services/ckafka/v20190819/api.json +561 -91
  102. tccli/services/ckafka/v20190819/examples.json +53 -5
  103. tccli/services/clb/clb_client.py +435 -439
  104. tccli/services/clb/v20180317/api.json +147 -312
  105. tccli/services/clb/v20180317/examples.json +12 -40
  106. tccli/services/cloudapp/cloudapp_client.py +10 -4
  107. tccli/services/cloudaudit/cloudaudit_client.py +95 -38
  108. tccli/services/cloudaudit/v20190319/api.json +11 -0
  109. tccli/services/cloudhsm/cloudhsm_client.py +70 -28
  110. tccli/services/cloudhsm/v20191112/api.json +37 -7
  111. tccli/services/cloudstudio/cloudstudio_client.py +45 -18
  112. tccli/services/cls/cls_client.py +843 -268
  113. tccli/services/cls/v20201016/api.json +1241 -68
  114. tccli/services/cls/v20201016/examples.json +36 -4
  115. tccli/services/cme/cme_client.py +250 -100
  116. tccli/services/cmq/cmq_client.py +10 -4
  117. tccli/services/cms/cms_client.py +30 -12
  118. tccli/services/config/config_client.py +35 -14
  119. tccli/services/controlcenter/controlcenter_client.py +25 -10
  120. tccli/services/cpdp/cpdp_client.py +1095 -438
  121. tccli/services/csip/csip_client.py +410 -164
  122. tccli/services/csip/v20221121/api.json +140 -20
  123. tccli/services/csip/v20221121/examples.json +10 -16
  124. tccli/services/csxg/csxg_client.py +25 -10
  125. tccli/services/ctem/ctem_client.py +1823 -156
  126. tccli/services/ctem/v20231128/api.json +2990 -206
  127. tccli/services/ctem/v20231128/examples.json +224 -0
  128. tccli/services/ctsdb/ctsdb_client.py +10 -4
  129. tccli/services/cvm/cvm_client.py +490 -196
  130. tccli/services/cvm/v20170312/api.json +41 -41
  131. tccli/services/cvm/v20170312/examples.json +92 -86
  132. tccli/services/cwp/cwp_client.py +2570 -1028
  133. tccli/services/cws/cws_client.py +95 -38
  134. tccli/services/cynosdb/cynosdb_client.py +1006 -340
  135. tccli/services/cynosdb/v20190107/api.json +1238 -212
  136. tccli/services/cynosdb/v20190107/examples.json +32 -8
  137. tccli/services/dasb/dasb_client.py +315 -126
  138. tccli/services/dataagent/__init__.py +4 -0
  139. tccli/services/dataagent/dataagent_client.py +770 -0
  140. tccli/services/dataagent/v20250513/api.json +1216 -0
  141. tccli/services/dataagent/v20250513/examples.json +93 -0
  142. tccli/services/dayu/dayu_client.py +560 -224
  143. tccli/services/dbbrain/dbbrain_client.py +471 -166
  144. tccli/services/dbbrain/v20210527/api.json +268 -19
  145. tccli/services/dbbrain/v20210527/examples.json +8 -0
  146. tccli/services/dbdc/dbdc_client.py +30 -12
  147. tccli/services/dc/dc_client.py +110 -44
  148. tccli/services/dcdb/dcdb_client.py +415 -166
  149. tccli/services/dcdb/v20180411/api.json +1 -1
  150. tccli/services/dlc/dlc_client.py +966 -364
  151. tccli/services/dlc/v20210125/api.json +1153 -150
  152. tccli/services/dlc/v20210125/examples.json +19 -11
  153. tccli/services/dnspod/dnspod_client.py +567 -182
  154. tccli/services/dnspod/v20210323/api.json +131 -25
  155. tccli/services/dnspod/v20210323/examples.json +17 -7
  156. tccli/services/domain/domain_client.py +275 -110
  157. tccli/services/domain/v20180808/api.json +21 -1
  158. tccli/services/drm/drm_client.py +55 -22
  159. tccli/services/ds/ds_client.py +60 -24
  160. tccli/services/dsgc/dsgc_client.py +665 -266
  161. tccli/services/dsgc/v20190723/api.json +18 -18
  162. tccli/services/dts/dts_client.py +1188 -488
  163. tccli/services/dts/v20211206/api.json +1068 -124
  164. tccli/services/dts/v20211206/examples.json +77 -7
  165. tccli/services/eb/eb_client.py +160 -64
  166. tccli/services/eb/v20210416/api.json +13 -0
  167. tccli/services/ecc/ecc_client.py +20 -8
  168. tccli/services/ecdn/ecdn_client.py +30 -12
  169. tccli/services/ecm/ecm_client.py +695 -278
  170. tccli/services/eiam/eiam_client.py +210 -84
  171. tccli/services/eis/eis_client.py +40 -16
  172. tccli/services/emr/emr_client.py +501 -178
  173. tccli/services/emr/v20190103/api.json +262 -0
  174. tccli/services/emr/v20190103/examples.json +13 -5
  175. tccli/services/es/es_client.py +536 -152
  176. tccli/services/es/v20180416/api.json +695 -65
  177. tccli/services/es/v20180416/examples.json +24 -0
  178. tccli/services/es/v20250101/api.json +10 -10
  179. tccli/services/ess/ess_client.py +747 -254
  180. tccli/services/ess/v20201111/api.json +720 -32
  181. tccli/services/ess/v20201111/examples.json +18 -2
  182. tccli/services/essbasic/essbasic_client.py +730 -292
  183. tccli/services/essbasic/v20210526/api.json +295 -32
  184. tccli/services/essbasic/v20210526/examples.json +12 -30
  185. tccli/services/evt/__init__.py +4 -0
  186. tccli/services/evt/evt_client.py +210 -0
  187. tccli/services/evt/v20250217/api.json +126 -0
  188. tccli/services/evt/v20250217/examples.json +13 -0
  189. tccli/services/facefusion/facefusion_client.py +20 -8
  190. tccli/services/facefusion/v20220927/api.json +1 -1
  191. tccli/services/faceid/faceid_client.py +180 -125
  192. tccli/services/faceid/v20180301/api.json +18 -105
  193. tccli/services/faceid/v20180301/examples.json +1 -9
  194. tccli/services/fmu/fmu_client.py +35 -14
  195. tccli/services/ft/ft_client.py +30 -12
  196. tccli/services/gaap/gaap_client.py +510 -204
  197. tccli/services/gaap/v20180529/api.json +18 -8
  198. tccli/services/gme/gme_client.py +241 -74
  199. tccli/services/gme/v20180711/api.json +241 -1
  200. tccli/services/gme/v20180711/examples.json +8 -0
  201. tccli/services/goosefs/goosefs_client.py +135 -54
  202. tccli/services/gs/gs_client.py +537 -182
  203. tccli/services/gs/v20191118/api.json +143 -1
  204. tccli/services/gs/v20191118/examples.json +16 -0
  205. tccli/services/gwlb/gwlb_client.py +95 -38
  206. tccli/services/habo/habo_client.py +10 -4
  207. tccli/services/hai/hai_client.py +80 -32
  208. tccli/services/hai/v20230812/api.json +3 -3
  209. tccli/services/hasim/hasim_client.py +110 -44
  210. tccli/services/hcm/hcm_client.py +5 -2
  211. tccli/services/hunyuan/hunyuan_client.py +105 -42
  212. tccli/services/hunyuan/v20230901/api.json +69 -2
  213. tccli/services/hunyuan/v20230901/examples.json +1 -1
  214. tccli/services/iai/iai_client.py +175 -123
  215. tccli/services/iai/v20180301/api.json +0 -82
  216. tccli/services/iai/v20180301/examples.json +0 -8
  217. tccli/services/iai/v20200303/api.json +1 -83
  218. tccli/services/iai/v20200303/examples.json +0 -8
  219. tccli/services/iap/iap_client.py +30 -12
  220. tccli/services/ic/ic_client.py +45 -18
  221. tccli/services/icr/icr_client.py +5 -2
  222. tccli/services/ie/ie_client.py +50 -20
  223. tccli/services/ig/ig_client.py +5 -2
  224. tccli/services/igtm/igtm_client.py +130 -52
  225. tccli/services/igtm/v20231024/api.json +60 -4
  226. tccli/services/igtm/v20231024/examples.json +3 -3
  227. tccli/services/ims/ims_client.py +10 -4
  228. tccli/services/ioa/ioa_client.py +194 -60
  229. tccli/services/ioa/v20220601/api.json +149 -1
  230. tccli/services/ioa/v20220601/examples.json +8 -0
  231. tccli/services/iot/iot_client.py +225 -90
  232. tccli/services/iotcloud/iotcloud_client.py +430 -172
  233. tccli/services/iotexplorer/iotexplorer_client.py +1801 -512
  234. tccli/services/iotexplorer/v20190423/api.json +2681 -1016
  235. tccli/services/iotexplorer/v20190423/examples.json +160 -26
  236. tccli/services/iotvideo/iotvideo_client.py +835 -334
  237. tccli/services/iotvideoindustry/iotvideoindustry_client.py +520 -208
  238. tccli/services/irp/irp_client.py +55 -22
  239. tccli/services/iss/iss_client.py +460 -184
  240. tccli/services/iss/v20230517/api.json +2 -2
  241. tccli/services/iss/v20230517/examples.json +1 -1
  242. tccli/services/ivld/ivld_client.py +140 -56
  243. tccli/services/keewidb/keewidb_client.py +190 -76
  244. tccli/services/keewidb/v20220308/api.json +69 -17
  245. tccli/services/keewidb/v20220308/examples.json +5 -5
  246. tccli/services/kms/kms_client.py +340 -136
  247. tccli/services/lcic/lcic_client.py +355 -142
  248. tccli/services/lcic/v20220817/api.json +5 -5
  249. tccli/services/lighthouse/lighthouse_client.py +590 -236
  250. tccli/services/lighthouse/v20200324/api.json +81 -16
  251. tccli/services/lighthouse/v20200324/examples.json +7 -1
  252. tccli/services/live/live_client.py +1000 -453
  253. tccli/services/live/v20180801/api.json +6 -164
  254. tccli/services/live/v20180801/examples.json +6 -8
  255. tccli/services/lke/lke_client.py +525 -210
  256. tccli/services/lke/v20231130/api.json +254 -75
  257. tccli/services/lke/v20231130/examples.json +1 -1
  258. tccli/services/lkeap/lkeap_client.py +130 -52
  259. tccli/services/lkeap/v20240522/api.json +1 -1
  260. tccli/services/lkeap/v20240522/examples.json +1 -1
  261. tccli/services/lowcode/lowcode_client.py +85 -34
  262. tccli/services/mall/mall_client.py +5 -2
  263. tccli/services/mariadb/mariadb_client.py +405 -162
  264. tccli/services/mariadb/v20170312/api.json +1 -1
  265. tccli/services/market/market_client.py +10 -4
  266. tccli/services/memcached/memcached_client.py +5 -2
  267. tccli/services/mmps/mmps_client.py +75 -30
  268. tccli/services/mna/mna_client.py +205 -82
  269. tccli/services/mna/v20210119/api.json +1 -1
  270. tccli/services/mongodb/mongodb_client.py +1178 -273
  271. tccli/services/mongodb/v20190725/api.json +1860 -135
  272. tccli/services/mongodb/v20190725/examples.json +105 -1
  273. tccli/services/monitor/monitor_client.py +901 -338
  274. tccli/services/monitor/v20180724/api.json +189 -29
  275. tccli/services/monitor/v20180724/examples.json +9 -1
  276. tccli/services/mps/mps_client.py +1248 -280
  277. tccli/services/mps/v20190612/api.json +1796 -73
  278. tccli/services/mps/v20190612/examples.json +106 -32
  279. tccli/services/mqtt/mqtt_client.py +463 -118
  280. tccli/services/mqtt/v20240516/api.json +166 -0
  281. tccli/services/mqtt/v20240516/examples.json +24 -0
  282. tccli/services/mrs/mrs_client.py +55 -22
  283. tccli/services/ms/ms_client.py +115 -46
  284. tccli/services/msp/msp_client.py +35 -14
  285. tccli/services/nlp/nlp_client.py +30 -12
  286. tccli/services/npp/npp_client.py +40 -16
  287. tccli/services/oceanus/oceanus_client.py +225 -90
  288. tccli/services/oceanus/v20190422/api.json +10 -13
  289. tccli/services/oceanus/v20190422/examples.json +2 -2
  290. tccli/services/ocr/ocr_client.py +471 -425
  291. tccli/services/ocr/v20181119/api.json +241 -639
  292. tccli/services/ocr/v20181119/examples.json +8 -40
  293. tccli/services/omics/omics_client.py +100 -40
  294. tccli/services/omics/v20221128/api.json +90 -7
  295. tccli/services/organization/organization_client.py +705 -282
  296. tccli/services/organization/v20210331/api.json +40 -1
  297. tccli/services/partners/partners_client.py +115 -46
  298. tccli/services/postgres/postgres_client.py +724 -200
  299. tccli/services/postgres/v20170312/api.json +494 -58
  300. tccli/services/postgres/v20170312/examples.json +75 -31
  301. tccli/services/privatedns/privatedns_client.py +412 -80
  302. tccli/services/privatedns/v20201028/api.json +421 -13
  303. tccli/services/privatedns/v20201028/examples.json +36 -4
  304. tccli/services/pts/pts_client.py +240 -96
  305. tccli/services/pts/v20210728/api.json +2 -2
  306. tccli/services/rce/rce_client.py +55 -22
  307. tccli/services/redis/redis_client.py +550 -220
  308. tccli/services/redis/v20180412/api.json +197 -33
  309. tccli/services/redis/v20180412/examples.json +10 -10
  310. tccli/services/region/region_client.py +15 -6
  311. tccli/services/region/v20220627/api.json +1 -1
  312. tccli/services/rum/rum_client.py +270 -108
  313. tccli/services/rum/v20210622/api.json +18 -0
  314. tccli/services/scf/scf_client.py +260 -104
  315. tccli/services/scf/v20180416/api.json +167 -2
  316. tccli/services/scf/v20180416/examples.json +1 -1
  317. tccli/services/securitylake/securitylake_client.py +5 -2
  318. tccli/services/ses/ses_client.py +175 -70
  319. tccli/services/smh/smh_client.py +75 -30
  320. tccli/services/smop/smop_client.py +5 -2
  321. tccli/services/sms/sms_client.py +90 -36
  322. tccli/services/sms/v20190711/api.json +11 -11
  323. tccli/services/sms/v20190711/examples.json +9 -3
  324. tccli/services/sms/v20210111/api.json +12 -12
  325. tccli/services/sms/v20210111/examples.json +8 -2
  326. tccli/services/soe/soe_client.py +20 -8
  327. tccli/services/sqlserver/sqlserver_client.py +740 -296
  328. tccli/services/sqlserver/v20180328/api.json +31 -2
  329. tccli/services/sqlserver/v20180328/examples.json +1 -1
  330. tccli/services/ssa/ssa_client.py +115 -46
  331. tccli/services/ssl/ssl_client.py +340 -136
  332. tccli/services/ssl/v20191205/api.json +28 -0
  333. tccli/services/sslpod/sslpod_client.py +50 -20
  334. tccli/services/ssm/ssm_client.py +120 -48
  335. tccli/services/sts/sts_client.py +35 -14
  336. tccli/services/sts/v20180813/api.json +1 -1
  337. tccli/services/svp/svp_client.py +25 -10
  338. tccli/services/svp/v20240125/api.json +24 -4
  339. tccli/services/svp/v20240125/examples.json +1 -1
  340. tccli/services/taf/taf_client.py +5 -2
  341. tccli/services/tag/tag_client.py +155 -62
  342. tccli/services/tag/v20180813/api.json +3 -3
  343. tccli/services/tat/tat_client.py +145 -58
  344. tccli/services/tat/v20201028/api.json +10 -1
  345. tccli/services/tbaas/tbaas_client.py +120 -48
  346. tccli/services/tbp/tbp_client.py +20 -8
  347. tccli/services/tcaplusdb/tcaplusdb_client.py +265 -106
  348. tccli/services/tcb/tcb_client.py +445 -178
  349. tccli/services/tcbr/tcbr_client.py +50 -20
  350. tccli/services/tcbr/v20220217/api.json +11 -0
  351. tccli/services/tccatalog/tccatalog_client.py +20 -8
  352. tccli/services/tchd/tchd_client.py +10 -4
  353. tccli/services/tcm/tcm_client.py +60 -24
  354. tccli/services/tcr/tcr_client.py +550 -220
  355. tccli/services/tcss/tcss_client.py +1756 -680
  356. tccli/services/tcss/v20201101/api.json +144 -11
  357. tccli/services/tcss/v20201101/examples.json +9 -1
  358. tccli/services/tdai/tdai_client.py +90 -36
  359. tccli/services/tdai/v20250717/api.json +30 -3
  360. tccli/services/tdcpg/tdcpg_client.py +125 -50
  361. tccli/services/tdid/tdid_client.py +90 -36
  362. tccli/services/tdmq/tdmq_client.py +846 -452
  363. tccli/services/tdmq/v20200217/api.json +372 -488
  364. tccli/services/tdmq/v20200217/examples.json +21 -41
  365. tccli/services/tds/tds_client.py +25 -10
  366. tccli/services/tem/tem_client.py +305 -122
  367. tccli/services/teo/teo_client.py +1122 -431
  368. tccli/services/teo/v20220901/api.json +1393 -132
  369. tccli/services/teo/v20220901/examples.json +59 -13
  370. tccli/services/thpc/thpc_client.py +215 -66
  371. tccli/services/thpc/v20230321/api.json +185 -27
  372. tccli/services/thpc/v20230321/examples.json +15 -7
  373. tccli/services/tia/tia_client.py +50 -20
  374. tccli/services/tiia/tiia_client.py +105 -42
  375. tccli/services/tione/tione_client.py +537 -150
  376. tccli/services/tione/v20211111/api.json +280 -16
  377. tccli/services/tione/v20211111/examples.json +25 -1
  378. tccli/services/tiw/tiw_client.py +175 -70
  379. tccli/services/tke/tke_client.py +2702 -735
  380. tccli/services/tke/v20180525/api.json +2279 -232
  381. tccli/services/tke/v20180525/examples.json +194 -18
  382. tccli/services/tke/v20220501/api.json +215 -3
  383. tccli/services/tke/v20220501/examples.json +8 -0
  384. tccli/services/tkgdq/tkgdq_client.py +15 -6
  385. tccli/services/tms/tms_client.py +132 -8
  386. tccli/services/tms/v20201229/api.json +247 -1
  387. tccli/services/tms/v20201229/examples.json +16 -0
  388. tccli/services/tmt/tmt_client.py +40 -16
  389. tccli/services/tmt/v20180321/api.json +78 -1
  390. tccli/services/tourism/tourism_client.py +5 -2
  391. tccli/services/trabbit/trabbit_client.py +145 -58
  392. tccli/services/trabbit/v20230418/api.json +271 -4
  393. tccli/services/trabbit/v20230418/examples.json +9 -3
  394. tccli/services/trocket/trocket_client.py +350 -140
  395. tccli/services/trocket/v20230308/api.json +113 -5
  396. tccli/services/trp/trp_client.py +270 -108
  397. tccli/services/trro/trro_client.py +257 -58
  398. tccli/services/trro/v20220325/api.json +456 -0
  399. tccli/services/trro/v20220325/examples.json +16 -0
  400. tccli/services/trtc/trtc_client.py +360 -144
  401. tccli/services/trtc/v20190722/api.json +167 -27
  402. tccli/services/trtc/v20190722/examples.json +3 -3
  403. tccli/services/tse/tse_client.py +776 -248
  404. tccli/services/tse/v20201207/api.json +260 -1
  405. tccli/services/tse/v20201207/examples.json +24 -0
  406. tccli/services/tsf/tsf_client.py +1195 -458
  407. tccli/services/tsf/v20180326/api.json +121 -5
  408. tccli/services/tsf/v20180326/examples.json +10 -2
  409. tccli/services/tsi/tsi_client.py +15 -6
  410. tccli/services/tsw/tsw_client.py +20 -8
  411. tccli/services/tts/tts_client.py +15 -6
  412. tccli/services/vcg/vcg_client.py +10 -4
  413. tccli/services/vclm/v20240523/api.json +354 -4
  414. tccli/services/vclm/v20240523/examples.json +32 -0
  415. tccli/services/vclm/vclm_client.py +269 -18
  416. tccli/services/vcube/v20220410/api.json +89 -2
  417. tccli/services/vcube/v20220410/examples.json +18 -2
  418. tccli/services/vcube/vcube_client.py +290 -76
  419. tccli/services/vdb/vdb_client.py +70 -28
  420. tccli/services/vm/v20210922/api.json +3 -3
  421. tccli/services/vm/vm_client.py +30 -12
  422. tccli/services/vms/vms_client.py +10 -4
  423. tccli/services/vod/v20180717/api.json +2 -2
  424. tccli/services/vod/vod_client.py +965 -386
  425. tccli/services/vpc/v20170312/api.json +1239 -128
  426. tccli/services/vpc/v20170312/examples.json +127 -15
  427. tccli/services/vpc/vpc_client.py +2963 -928
  428. tccli/services/vrs/vrs_client.py +40 -16
  429. tccli/services/vtc/vtc_client.py +15 -6
  430. tccli/services/waf/v20180125/api.json +11219 -8659
  431. tccli/services/waf/v20180125/examples.json +89 -9
  432. tccli/services/waf/waf_client.py +1530 -415
  433. tccli/services/wav/wav_client.py +130 -52
  434. tccli/services/wedata/v20250806/api.json +55 -16
  435. tccli/services/wedata/wedata_client.py +2045 -818
  436. tccli/services/weilingwith/weilingwith_client.py +320 -128
  437. tccli/services/wsa/wsa_client.py +5 -2
  438. tccli/services/wss/wss_client.py +15 -6
  439. tccli/services/yinsuda/yinsuda_client.py +100 -40
  440. tccli/services/yunjing/yunjing_client.py +500 -200
  441. tccli/services/yunsou/yunsou_client.py +10 -4
  442. {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/METADATA +13 -11
  443. {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/RECORD +446 -434
  444. {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/WHEEL +1 -1
  445. {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/entry_points.txt +0 -0
  446. {tccli-3.0.1407.1.dist-info/license_files → tccli-3.1.6.1.dist-info/licenses}/LICENSE +0 -0
@@ -31,7 +31,10 @@ def doDescribeOtaVersions(args, parsed_globals):
31
31
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
32
32
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
33
33
  )
34
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
34
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
35
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
36
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
37
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
35
38
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
36
39
  else:
37
40
  cred = credential.Credential(
@@ -43,7 +46,7 @@ def doDescribeOtaVersions(args, parsed_globals):
43
46
  endpoint=g_param[OptionsDefine.Endpoint],
44
47
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
45
48
  )
46
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
49
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
47
50
  if g_param[OptionsDefine.Language]:
48
51
  profile.language = g_param[OptionsDefine.Language]
49
52
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -83,7 +86,10 @@ def doCallTRTCDevice(args, parsed_globals):
83
86
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
84
87
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
85
88
  )
86
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
89
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
90
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
91
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
92
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
87
93
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
88
94
  else:
89
95
  cred = credential.Credential(
@@ -95,7 +101,7 @@ def doCallTRTCDevice(args, parsed_globals):
95
101
  endpoint=g_param[OptionsDefine.Endpoint],
96
102
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
97
103
  )
98
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
104
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
99
105
  if g_param[OptionsDefine.Language]:
100
106
  profile.language = g_param[OptionsDefine.Language]
101
107
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -135,7 +141,10 @@ def doDescribeDevicePackages(args, parsed_globals):
135
141
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
136
142
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
137
143
  )
138
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
144
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
145
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
146
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
147
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
139
148
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
140
149
  else:
141
150
  cred = credential.Credential(
@@ -147,7 +156,7 @@ def doDescribeDevicePackages(args, parsed_globals):
147
156
  endpoint=g_param[OptionsDefine.Endpoint],
148
157
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
149
158
  )
150
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
159
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
151
160
  if g_param[OptionsDefine.Language]:
152
161
  profile.language = g_param[OptionsDefine.Language]
153
162
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -187,7 +196,10 @@ def doDescribeIotDataType(args, parsed_globals):
187
196
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
188
197
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
189
198
  )
190
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
199
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
200
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
201
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
202
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
191
203
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
192
204
  else:
193
205
  cred = credential.Credential(
@@ -199,7 +211,7 @@ def doDescribeIotDataType(args, parsed_globals):
199
211
  endpoint=g_param[OptionsDefine.Endpoint],
200
212
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
201
213
  )
202
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
214
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
203
215
  if g_param[OptionsDefine.Language]:
204
216
  profile.language = g_param[OptionsDefine.Language]
205
217
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -239,7 +251,10 @@ def doCreateAIDetection(args, parsed_globals):
239
251
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
240
252
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
241
253
  )
242
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
254
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
255
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
256
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
257
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
243
258
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
244
259
  else:
245
260
  cred = credential.Credential(
@@ -251,7 +266,7 @@ def doCreateAIDetection(args, parsed_globals):
251
266
  endpoint=g_param[OptionsDefine.Endpoint],
252
267
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
253
268
  )
254
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
269
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
255
270
  if g_param[OptionsDefine.Language]:
256
271
  profile.language = g_param[OptionsDefine.Language]
257
272
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -291,7 +306,10 @@ def doDeleteTraceIds(args, parsed_globals):
291
306
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
292
307
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
293
308
  )
294
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
309
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
310
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
311
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
312
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
295
313
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
296
314
  else:
297
315
  cred = credential.Credential(
@@ -303,7 +321,7 @@ def doDeleteTraceIds(args, parsed_globals):
303
321
  endpoint=g_param[OptionsDefine.Endpoint],
304
322
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
305
323
  )
306
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
324
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
307
325
  if g_param[OptionsDefine.Language]:
308
326
  profile.language = g_param[OptionsDefine.Language]
309
327
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -343,7 +361,10 @@ def doDescribeAIModels(args, parsed_globals):
343
361
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
344
362
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
345
363
  )
346
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
364
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
365
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
366
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
367
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
347
368
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
348
369
  else:
349
370
  cred = credential.Credential(
@@ -355,7 +376,7 @@ def doDescribeAIModels(args, parsed_globals):
355
376
  endpoint=g_param[OptionsDefine.Endpoint],
356
377
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
357
378
  )
358
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
379
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
359
380
  if g_param[OptionsDefine.Language]:
360
381
  profile.language = g_param[OptionsDefine.Language]
361
382
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -395,7 +416,10 @@ def doDescribeAIModelApplications(args, parsed_globals):
395
416
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
396
417
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
397
418
  )
398
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
419
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
420
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
421
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
422
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
399
423
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
400
424
  else:
401
425
  cred = credential.Credential(
@@ -407,7 +431,7 @@ def doDescribeAIModelApplications(args, parsed_globals):
407
431
  endpoint=g_param[OptionsDefine.Endpoint],
408
432
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
409
433
  )
410
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
434
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
411
435
  if g_param[OptionsDefine.Language]:
412
436
  profile.language = g_param[OptionsDefine.Language]
413
437
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -447,7 +471,10 @@ def doDescribeProduct(args, parsed_globals):
447
471
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
448
472
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
449
473
  )
450
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
474
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
475
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
476
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
477
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
451
478
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
452
479
  else:
453
480
  cred = credential.Credential(
@@ -459,7 +486,7 @@ def doDescribeProduct(args, parsed_globals):
459
486
  endpoint=g_param[OptionsDefine.Endpoint],
460
487
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
461
488
  )
462
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
489
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
463
490
  if g_param[OptionsDefine.Language]:
464
491
  profile.language = g_param[OptionsDefine.Language]
465
492
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -499,7 +526,10 @@ def doGetAllFirmwareVersion(args, parsed_globals):
499
526
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
500
527
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
501
528
  )
502
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
529
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
530
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
531
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
532
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
503
533
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
504
534
  else:
505
535
  cred = credential.Credential(
@@ -511,7 +541,7 @@ def doGetAllFirmwareVersion(args, parsed_globals):
511
541
  endpoint=g_param[OptionsDefine.Endpoint],
512
542
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
513
543
  )
514
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
544
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
515
545
  if g_param[OptionsDefine.Language]:
516
546
  profile.language = g_param[OptionsDefine.Language]
517
547
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -551,7 +581,10 @@ def doDescribeProducts(args, parsed_globals):
551
581
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
552
582
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
553
583
  )
554
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
584
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
585
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
586
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
587
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
555
588
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
556
589
  else:
557
590
  cred = credential.Credential(
@@ -563,7 +596,7 @@ def doDescribeProducts(args, parsed_globals):
563
596
  endpoint=g_param[OptionsDefine.Endpoint],
564
597
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
565
598
  )
566
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
599
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
567
600
  if g_param[OptionsDefine.Language]:
568
601
  profile.language = g_param[OptionsDefine.Language]
569
602
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -603,7 +636,10 @@ def doDescribeUser(args, parsed_globals):
603
636
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
604
637
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
605
638
  )
606
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
639
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
640
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
641
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
642
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
607
643
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
608
644
  else:
609
645
  cred = credential.Credential(
@@ -615,7 +651,7 @@ def doDescribeUser(args, parsed_globals):
615
651
  endpoint=g_param[OptionsDefine.Endpoint],
616
652
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
617
653
  )
618
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
654
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
619
655
  if g_param[OptionsDefine.Language]:
620
656
  profile.language = g_param[OptionsDefine.Language]
621
657
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -655,7 +691,10 @@ def doDescribeFirmwareTaskStatistics(args, parsed_globals):
655
691
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
656
692
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
657
693
  )
658
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
694
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
695
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
696
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
697
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
659
698
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
660
699
  else:
661
700
  cred = credential.Credential(
@@ -667,7 +706,7 @@ def doDescribeFirmwareTaskStatistics(args, parsed_globals):
667
706
  endpoint=g_param[OptionsDefine.Endpoint],
668
707
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
669
708
  )
670
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
709
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
671
710
  if g_param[OptionsDefine.Language]:
672
711
  profile.language = g_param[OptionsDefine.Language]
673
712
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -707,7 +746,10 @@ def doCreateAppUsr(args, parsed_globals):
707
746
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
708
747
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
709
748
  )
710
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
749
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
750
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
751
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
752
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
711
753
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
712
754
  else:
713
755
  cred = credential.Credential(
@@ -719,7 +761,7 @@ def doCreateAppUsr(args, parsed_globals):
719
761
  endpoint=g_param[OptionsDefine.Endpoint],
720
762
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
721
763
  )
722
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
764
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
723
765
  if g_param[OptionsDefine.Language]:
724
766
  profile.language = g_param[OptionsDefine.Language]
725
767
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -759,7 +801,10 @@ def doCallDeviceActionSync(args, parsed_globals):
759
801
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
760
802
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
761
803
  )
762
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
804
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
805
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
806
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
807
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
763
808
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
764
809
  else:
765
810
  cred = credential.Credential(
@@ -771,7 +816,7 @@ def doCallDeviceActionSync(args, parsed_globals):
771
816
  endpoint=g_param[OptionsDefine.Endpoint],
772
817
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
773
818
  )
774
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
819
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
775
820
  if g_param[OptionsDefine.Language]:
776
821
  profile.language = g_param[OptionsDefine.Language]
777
822
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -811,7 +856,10 @@ def doCreateDevToken(args, parsed_globals):
811
856
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
812
857
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
813
858
  )
814
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
859
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
860
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
861
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
862
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
815
863
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
816
864
  else:
817
865
  cred = credential.Credential(
@@ -823,7 +871,7 @@ def doCreateDevToken(args, parsed_globals):
823
871
  endpoint=g_param[OptionsDefine.Endpoint],
824
872
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
825
873
  )
826
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
874
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
827
875
  if g_param[OptionsDefine.Language]:
828
876
  profile.language = g_param[OptionsDefine.Language]
829
877
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -863,7 +911,10 @@ def doModifyPushChannel(args, parsed_globals):
863
911
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
864
912
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
865
913
  )
866
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
914
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
915
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
916
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
917
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
867
918
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
868
919
  else:
869
920
  cred = credential.Credential(
@@ -875,7 +926,7 @@ def doModifyPushChannel(args, parsed_globals):
875
926
  endpoint=g_param[OptionsDefine.Endpoint],
876
927
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
877
928
  )
878
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
929
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
879
930
  if g_param[OptionsDefine.Language]:
880
931
  profile.language = g_param[OptionsDefine.Language]
881
932
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -915,7 +966,10 @@ def doGenerateSignedVideoURL(args, parsed_globals):
915
966
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
916
967
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
917
968
  )
918
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
969
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
970
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
971
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
972
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
919
973
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
920
974
  else:
921
975
  cred = credential.Credential(
@@ -927,7 +981,7 @@ def doGenerateSignedVideoURL(args, parsed_globals):
927
981
  endpoint=g_param[OptionsDefine.Endpoint],
928
982
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
929
983
  )
930
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
984
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
931
985
  if g_param[OptionsDefine.Language]:
932
986
  profile.language = g_param[OptionsDefine.Language]
933
987
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -967,7 +1021,10 @@ def doEditFirmware(args, parsed_globals):
967
1021
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
968
1022
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
969
1023
  )
970
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1024
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1025
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1026
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1027
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
971
1028
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
972
1029
  else:
973
1030
  cred = credential.Credential(
@@ -979,7 +1036,7 @@ def doEditFirmware(args, parsed_globals):
979
1036
  endpoint=g_param[OptionsDefine.Endpoint],
980
1037
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
981
1038
  )
982
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1039
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
983
1040
  if g_param[OptionsDefine.Language]:
984
1041
  profile.language = g_param[OptionsDefine.Language]
985
1042
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1019,7 +1076,10 @@ def doPublishMessage(args, parsed_globals):
1019
1076
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1020
1077
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1021
1078
  )
1022
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1079
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1080
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1081
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1082
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1023
1083
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1024
1084
  else:
1025
1085
  cred = credential.Credential(
@@ -1031,7 +1091,7 @@ def doPublishMessage(args, parsed_globals):
1031
1091
  endpoint=g_param[OptionsDefine.Endpoint],
1032
1092
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1033
1093
  )
1034
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1094
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1035
1095
  if g_param[OptionsDefine.Language]:
1036
1096
  profile.language = g_param[OptionsDefine.Language]
1037
1097
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1071,7 +1131,10 @@ def doDescribeDeviceEventHistory(args, parsed_globals):
1071
1131
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1072
1132
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1073
1133
  )
1074
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1134
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1135
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1136
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1137
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1075
1138
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1076
1139
  else:
1077
1140
  cred = credential.Credential(
@@ -1083,7 +1146,7 @@ def doDescribeDeviceEventHistory(args, parsed_globals):
1083
1146
  endpoint=g_param[OptionsDefine.Endpoint],
1084
1147
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1085
1148
  )
1086
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1149
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1087
1150
  if g_param[OptionsDefine.Language]:
1088
1151
  profile.language = g_param[OptionsDefine.Language]
1089
1152
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1123,7 +1186,10 @@ def doDescribeBindUsr(args, parsed_globals):
1123
1186
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1124
1187
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1125
1188
  )
1126
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1189
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1190
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1191
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1192
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1127
1193
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1128
1194
  else:
1129
1195
  cred = credential.Credential(
@@ -1135,7 +1201,7 @@ def doDescribeBindUsr(args, parsed_globals):
1135
1201
  endpoint=g_param[OptionsDefine.Endpoint],
1136
1202
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1137
1203
  )
1138
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1204
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1139
1205
  if g_param[OptionsDefine.Language]:
1140
1206
  profile.language = g_param[OptionsDefine.Language]
1141
1207
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1175,7 +1241,10 @@ def doImportModelDefinition(args, parsed_globals):
1175
1241
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1176
1242
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1177
1243
  )
1178
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1244
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1245
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1246
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1247
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1179
1248
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1180
1249
  else:
1181
1250
  cred = credential.Credential(
@@ -1187,7 +1256,7 @@ def doImportModelDefinition(args, parsed_globals):
1187
1256
  endpoint=g_param[OptionsDefine.Endpoint],
1188
1257
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1189
1258
  )
1190
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1259
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1191
1260
  if g_param[OptionsDefine.Language]:
1192
1261
  profile.language = g_param[OptionsDefine.Language]
1193
1262
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1227,7 +1296,10 @@ def doDescribeStream(args, parsed_globals):
1227
1296
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1228
1297
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1229
1298
  )
1230
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1299
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1300
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1301
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1302
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1231
1303
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1232
1304
  else:
1233
1305
  cred = credential.Credential(
@@ -1239,7 +1311,7 @@ def doDescribeStream(args, parsed_globals):
1239
1311
  endpoint=g_param[OptionsDefine.Endpoint],
1240
1312
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1241
1313
  )
1242
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1314
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1243
1315
  if g_param[OptionsDefine.Language]:
1244
1316
  profile.language = g_param[OptionsDefine.Language]
1245
1317
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1279,7 +1351,10 @@ def doRenewUploadTest(args, parsed_globals):
1279
1351
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1280
1352
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1281
1353
  )
1282
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1354
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1355
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1356
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1357
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1283
1358
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1284
1359
  else:
1285
1360
  cred = credential.Credential(
@@ -1291,7 +1366,7 @@ def doRenewUploadTest(args, parsed_globals):
1291
1366
  endpoint=g_param[OptionsDefine.Endpoint],
1292
1367
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1293
1368
  )
1294
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1369
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1295
1370
  if g_param[OptionsDefine.Language]:
1296
1371
  profile.language = g_param[OptionsDefine.Language]
1297
1372
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1331,7 +1406,10 @@ def doDescribeCloudStorageThumbnailList(args, parsed_globals):
1331
1406
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1332
1407
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1333
1408
  )
1334
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1409
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1410
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1411
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1412
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1335
1413
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1336
1414
  else:
1337
1415
  cred = credential.Credential(
@@ -1343,7 +1421,7 @@ def doDescribeCloudStorageThumbnailList(args, parsed_globals):
1343
1421
  endpoint=g_param[OptionsDefine.Endpoint],
1344
1422
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1345
1423
  )
1346
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1424
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1347
1425
  if g_param[OptionsDefine.Language]:
1348
1426
  profile.language = g_param[OptionsDefine.Language]
1349
1427
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1383,7 +1461,10 @@ def doCancelDeviceFirmwareTask(args, parsed_globals):
1383
1461
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1384
1462
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1385
1463
  )
1386
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1464
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1465
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1466
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1467
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1387
1468
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1388
1469
  else:
1389
1470
  cred = credential.Credential(
@@ -1395,7 +1476,7 @@ def doCancelDeviceFirmwareTask(args, parsed_globals):
1395
1476
  endpoint=g_param[OptionsDefine.Endpoint],
1396
1477
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1397
1478
  )
1398
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1479
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1399
1480
  if g_param[OptionsDefine.Language]:
1400
1481
  profile.language = g_param[OptionsDefine.Language]
1401
1482
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1435,7 +1516,10 @@ def doReportAliveDevice(args, parsed_globals):
1435
1516
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1436
1517
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1437
1518
  )
1438
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1519
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1520
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1521
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1522
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1439
1523
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1440
1524
  else:
1441
1525
  cred = credential.Credential(
@@ -1447,7 +1531,7 @@ def doReportAliveDevice(args, parsed_globals):
1447
1531
  endpoint=g_param[OptionsDefine.Endpoint],
1448
1532
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1449
1533
  )
1450
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1534
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1451
1535
  if g_param[OptionsDefine.Language]:
1452
1536
  profile.language = g_param[OptionsDefine.Language]
1453
1537
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1487,7 +1571,10 @@ def doDescribeForwardRule(args, parsed_globals):
1487
1571
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1488
1572
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1489
1573
  )
1490
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1574
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1575
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1576
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1577
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1491
1578
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1492
1579
  else:
1493
1580
  cred = credential.Credential(
@@ -1499,7 +1586,7 @@ def doDescribeForwardRule(args, parsed_globals):
1499
1586
  endpoint=g_param[OptionsDefine.Endpoint],
1500
1587
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1501
1588
  )
1502
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1589
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1503
1590
  if g_param[OptionsDefine.Language]:
1504
1591
  profile.language = g_param[OptionsDefine.Language]
1505
1592
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1539,7 +1626,10 @@ def doDescribePubVersions(args, parsed_globals):
1539
1626
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1540
1627
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1541
1628
  )
1542
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1629
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1630
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1631
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1632
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1543
1633
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1544
1634
  else:
1545
1635
  cred = credential.Credential(
@@ -1551,7 +1641,7 @@ def doDescribePubVersions(args, parsed_globals):
1551
1641
  endpoint=g_param[OptionsDefine.Endpoint],
1552
1642
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1553
1643
  )
1554
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1644
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1555
1645
  if g_param[OptionsDefine.Language]:
1556
1646
  profile.language = g_param[OptionsDefine.Language]
1557
1647
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1591,7 +1681,10 @@ def doRunDeviceStream(args, parsed_globals):
1591
1681
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1592
1682
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1593
1683
  )
1594
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1684
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1685
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1686
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1687
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1595
1688
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1596
1689
  else:
1597
1690
  cred = credential.Credential(
@@ -1603,7 +1696,7 @@ def doRunDeviceStream(args, parsed_globals):
1603
1696
  endpoint=g_param[OptionsDefine.Endpoint],
1604
1697
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1605
1698
  )
1606
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1699
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1607
1700
  if g_param[OptionsDefine.Language]:
1608
1701
  profile.language = g_param[OptionsDefine.Language]
1609
1702
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1643,7 +1736,10 @@ def doDescribePackageConsumeTasks(args, parsed_globals):
1643
1736
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1644
1737
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1645
1738
  )
1646
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1739
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1740
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1741
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1742
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1647
1743
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1648
1744
  else:
1649
1745
  cred = credential.Credential(
@@ -1655,7 +1751,7 @@ def doDescribePackageConsumeTasks(args, parsed_globals):
1655
1751
  endpoint=g_param[OptionsDefine.Endpoint],
1656
1752
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1657
1753
  )
1658
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1754
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1659
1755
  if g_param[OptionsDefine.Language]:
1660
1756
  profile.language = g_param[OptionsDefine.Language]
1661
1757
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1695,7 +1791,10 @@ def doDescribeAccount(args, parsed_globals):
1695
1791
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1696
1792
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1697
1793
  )
1698
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1794
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1795
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1796
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1797
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1699
1798
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1700
1799
  else:
1701
1800
  cred = credential.Credential(
@@ -1707,7 +1806,7 @@ def doDescribeAccount(args, parsed_globals):
1707
1806
  endpoint=g_param[OptionsDefine.Endpoint],
1708
1807
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1709
1808
  )
1710
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1809
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1711
1810
  if g_param[OptionsDefine.Language]:
1712
1811
  profile.language = g_param[OptionsDefine.Language]
1713
1812
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1747,7 +1846,10 @@ def doModifyVerContent(args, parsed_globals):
1747
1846
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1748
1847
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1749
1848
  )
1750
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1849
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1850
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1851
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1852
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1751
1853
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1752
1854
  else:
1753
1855
  cred = credential.Credential(
@@ -1759,7 +1861,7 @@ def doModifyVerContent(args, parsed_globals):
1759
1861
  endpoint=g_param[OptionsDefine.Endpoint],
1760
1862
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1761
1863
  )
1762
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1864
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1763
1865
  if g_param[OptionsDefine.Language]:
1764
1866
  profile.language = g_param[OptionsDefine.Language]
1765
1867
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1799,7 +1901,10 @@ def doDescribeCloudStoragePackageConsumeStats(args, parsed_globals):
1799
1901
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1800
1902
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1801
1903
  )
1802
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1904
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1905
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1906
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1907
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1803
1908
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1804
1909
  else:
1805
1910
  cred = credential.Credential(
@@ -1811,7 +1916,7 @@ def doDescribeCloudStoragePackageConsumeStats(args, parsed_globals):
1811
1916
  endpoint=g_param[OptionsDefine.Endpoint],
1812
1917
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1813
1918
  )
1814
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1919
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1815
1920
  if g_param[OptionsDefine.Language]:
1816
1921
  profile.language = g_param[OptionsDefine.Language]
1817
1922
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1851,7 +1956,10 @@ def doCreateGencode(args, parsed_globals):
1851
1956
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1852
1957
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1853
1958
  )
1854
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1959
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1960
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1961
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1962
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1855
1963
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1856
1964
  else:
1857
1965
  cred = credential.Credential(
@@ -1863,7 +1971,7 @@ def doCreateGencode(args, parsed_globals):
1863
1971
  endpoint=g_param[OptionsDefine.Endpoint],
1864
1972
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1865
1973
  )
1866
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1974
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1867
1975
  if g_param[OptionsDefine.Language]:
1868
1976
  profile.language = g_param[OptionsDefine.Language]
1869
1977
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1903,7 +2011,10 @@ def doDescribeDeviceModel(args, parsed_globals):
1903
2011
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1904
2012
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1905
2013
  )
1906
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2014
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2015
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2016
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2017
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1907
2018
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1908
2019
  else:
1909
2020
  cred = credential.Credential(
@@ -1915,7 +2026,7 @@ def doDescribeDeviceModel(args, parsed_globals):
1915
2026
  endpoint=g_param[OptionsDefine.Endpoint],
1916
2027
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1917
2028
  )
1918
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2029
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1919
2030
  if g_param[OptionsDefine.Language]:
1920
2031
  profile.language = g_param[OptionsDefine.Language]
1921
2032
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1955,7 +2066,10 @@ def doCreateStorage(args, parsed_globals):
1955
2066
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1956
2067
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1957
2068
  )
1958
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2069
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2070
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2071
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2072
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1959
2073
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1960
2074
  else:
1961
2075
  cred = credential.Credential(
@@ -1967,7 +2081,7 @@ def doCreateStorage(args, parsed_globals):
1967
2081
  endpoint=g_param[OptionsDefine.Endpoint],
1968
2082
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1969
2083
  )
1970
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2084
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1971
2085
  if g_param[OptionsDefine.Language]:
1972
2086
  profile.language = g_param[OptionsDefine.Language]
1973
2087
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2007,7 +2121,10 @@ def doDescribeFirmwareTasks(args, parsed_globals):
2007
2121
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2008
2122
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2009
2123
  )
2010
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2124
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2125
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2126
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2127
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2011
2128
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2012
2129
  else:
2013
2130
  cred = credential.Credential(
@@ -2019,7 +2136,7 @@ def doDescribeFirmwareTasks(args, parsed_globals):
2019
2136
  endpoint=g_param[OptionsDefine.Endpoint],
2020
2137
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2021
2138
  )
2022
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2139
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2023
2140
  if g_param[OptionsDefine.Language]:
2024
2141
  profile.language = g_param[OptionsDefine.Language]
2025
2142
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2059,7 +2176,10 @@ def doDescribeTraceIds(args, parsed_globals):
2059
2176
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2060
2177
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2061
2178
  )
2062
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2179
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2180
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2181
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2182
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2063
2183
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2064
2184
  else:
2065
2185
  cred = credential.Credential(
@@ -2071,7 +2191,7 @@ def doDescribeTraceIds(args, parsed_globals):
2071
2191
  endpoint=g_param[OptionsDefine.Endpoint],
2072
2192
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2073
2193
  )
2074
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2194
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2075
2195
  if g_param[OptionsDefine.Language]:
2076
2196
  profile.language = g_param[OptionsDefine.Language]
2077
2197
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2111,7 +2231,10 @@ def doDeleteMessageQueue(args, parsed_globals):
2111
2231
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2112
2232
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2113
2233
  )
2114
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2234
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2235
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2236
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2237
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2115
2238
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2116
2239
  else:
2117
2240
  cred = credential.Credential(
@@ -2123,7 +2246,7 @@ def doDeleteMessageQueue(args, parsed_globals):
2123
2246
  endpoint=g_param[OptionsDefine.Endpoint],
2124
2247
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2125
2248
  )
2126
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2249
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2127
2250
  if g_param[OptionsDefine.Language]:
2128
2251
  profile.language = g_param[OptionsDefine.Language]
2129
2252
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2163,7 +2286,10 @@ def doControlDeviceData(args, parsed_globals):
2163
2286
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2164
2287
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2165
2288
  )
2166
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2289
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2290
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2291
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2292
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2167
2293
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2168
2294
  else:
2169
2295
  cred = credential.Credential(
@@ -2175,7 +2301,7 @@ def doControlDeviceData(args, parsed_globals):
2175
2301
  endpoint=g_param[OptionsDefine.Endpoint],
2176
2302
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2177
2303
  )
2178
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2304
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2179
2305
  if g_param[OptionsDefine.Language]:
2180
2306
  profile.language = g_param[OptionsDefine.Language]
2181
2307
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2215,7 +2341,10 @@ def doUpgradeDevice(args, parsed_globals):
2215
2341
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2216
2342
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2217
2343
  )
2218
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2344
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2345
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2346
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2347
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2219
2348
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2220
2349
  else:
2221
2350
  cred = credential.Credential(
@@ -2227,7 +2356,7 @@ def doUpgradeDevice(args, parsed_globals):
2227
2356
  endpoint=g_param[OptionsDefine.Endpoint],
2228
2357
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2229
2358
  )
2230
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2359
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2231
2360
  if g_param[OptionsDefine.Language]:
2232
2361
  profile.language = g_param[OptionsDefine.Language]
2233
2362
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2267,7 +2396,10 @@ def doModifyDeviceLogLevel(args, parsed_globals):
2267
2396
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2268
2397
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2269
2398
  )
2270
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2399
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2400
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2401
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2402
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2271
2403
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2272
2404
  else:
2273
2405
  cred = credential.Credential(
@@ -2279,7 +2411,7 @@ def doModifyDeviceLogLevel(args, parsed_globals):
2279
2411
  endpoint=g_param[OptionsDefine.Endpoint],
2280
2412
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2281
2413
  )
2282
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2414
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2283
2415
  if g_param[OptionsDefine.Language]:
2284
2416
  profile.language = g_param[OptionsDefine.Language]
2285
2417
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2319,7 +2451,10 @@ def doDescribeP2PRoute(args, parsed_globals):
2319
2451
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2320
2452
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2321
2453
  )
2322
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2454
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2455
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2456
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2457
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2323
2458
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2324
2459
  else:
2325
2460
  cred = credential.Credential(
@@ -2331,7 +2466,7 @@ def doDescribeP2PRoute(args, parsed_globals):
2331
2466
  endpoint=g_param[OptionsDefine.Endpoint],
2332
2467
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2333
2468
  )
2334
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2469
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2335
2470
  if g_param[OptionsDefine.Language]:
2336
2471
  profile.language = g_param[OptionsDefine.Language]
2337
2472
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2371,7 +2506,10 @@ def doDescribeFirmware(args, parsed_globals):
2371
2506
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2372
2507
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2373
2508
  )
2374
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2509
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2510
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2511
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2512
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2375
2513
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2376
2514
  else:
2377
2515
  cred = credential.Credential(
@@ -2383,7 +2521,7 @@ def doDescribeFirmware(args, parsed_globals):
2383
2521
  endpoint=g_param[OptionsDefine.Endpoint],
2384
2522
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2385
2523
  )
2386
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2524
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2387
2525
  if g_param[OptionsDefine.Language]:
2388
2526
  profile.language = g_param[OptionsDefine.Language]
2389
2527
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2423,7 +2561,10 @@ def doDescribeCloudStorageDate(args, parsed_globals):
2423
2561
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2424
2562
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2425
2563
  )
2426
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2564
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2565
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2566
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2567
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2427
2568
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2428
2569
  else:
2429
2570
  cred = credential.Credential(
@@ -2435,7 +2576,7 @@ def doDescribeCloudStorageDate(args, parsed_globals):
2435
2576
  endpoint=g_param[OptionsDefine.Endpoint],
2436
2577
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2437
2578
  )
2438
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2579
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2439
2580
  if g_param[OptionsDefine.Language]:
2440
2581
  profile.language = g_param[OptionsDefine.Language]
2441
2582
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2475,7 +2616,10 @@ def doDescribeFreeCloudStorageNum(args, parsed_globals):
2475
2616
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2476
2617
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2477
2618
  )
2478
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2619
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2620
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2621
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2622
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2479
2623
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2480
2624
  else:
2481
2625
  cred = credential.Credential(
@@ -2487,7 +2631,7 @@ def doDescribeFreeCloudStorageNum(args, parsed_globals):
2487
2631
  endpoint=g_param[OptionsDefine.Endpoint],
2488
2632
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2489
2633
  )
2490
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2634
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2491
2635
  if g_param[OptionsDefine.Language]:
2492
2636
  profile.language = g_param[OptionsDefine.Language]
2493
2637
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2527,7 +2671,10 @@ def doResetCloudStorageEvent(args, parsed_globals):
2527
2671
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2528
2672
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2529
2673
  )
2530
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2674
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2675
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2676
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2677
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2531
2678
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2532
2679
  else:
2533
2680
  cred = credential.Credential(
@@ -2539,7 +2686,7 @@ def doResetCloudStorageEvent(args, parsed_globals):
2539
2686
  endpoint=g_param[OptionsDefine.Endpoint],
2540
2687
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2541
2688
  )
2542
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2689
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2543
2690
  if g_param[OptionsDefine.Language]:
2544
2691
  profile.language = g_param[OptionsDefine.Language]
2545
2692
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2579,7 +2726,10 @@ def doDescribeCloudStorageUsers(args, parsed_globals):
2579
2726
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2580
2727
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2581
2728
  )
2582
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2729
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2730
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2731
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2732
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2583
2733
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2584
2734
  else:
2585
2735
  cred = credential.Credential(
@@ -2591,7 +2741,7 @@ def doDescribeCloudStorageUsers(args, parsed_globals):
2591
2741
  endpoint=g_param[OptionsDefine.Endpoint],
2592
2742
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2593
2743
  )
2594
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2744
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2595
2745
  if g_param[OptionsDefine.Language]:
2596
2746
  profile.language = g_param[OptionsDefine.Language]
2597
2747
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2631,7 +2781,10 @@ def doTransferCloudStorage(args, parsed_globals):
2631
2781
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2632
2782
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2633
2783
  )
2634
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2784
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2785
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2786
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2787
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2635
2788
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2636
2789
  else:
2637
2790
  cred = credential.Credential(
@@ -2643,7 +2796,7 @@ def doTransferCloudStorage(args, parsed_globals):
2643
2796
  endpoint=g_param[OptionsDefine.Endpoint],
2644
2797
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2645
2798
  )
2646
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2799
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2647
2800
  if g_param[OptionsDefine.Language]:
2648
2801
  profile.language = g_param[OptionsDefine.Language]
2649
2802
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2683,7 +2836,10 @@ def doRetryDeviceFirmwareTask(args, parsed_globals):
2683
2836
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2684
2837
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2685
2838
  )
2686
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2839
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2840
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2841
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2842
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2687
2843
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2688
2844
  else:
2689
2845
  cred = credential.Credential(
@@ -2695,7 +2851,7 @@ def doRetryDeviceFirmwareTask(args, parsed_globals):
2695
2851
  endpoint=g_param[OptionsDefine.Endpoint],
2696
2852
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2697
2853
  )
2698
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2854
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2699
2855
  if g_param[OptionsDefine.Language]:
2700
2856
  profile.language = g_param[OptionsDefine.Language]
2701
2857
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2735,7 +2891,10 @@ def doModifyDevice(args, parsed_globals):
2735
2891
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2736
2892
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2737
2893
  )
2738
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2894
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2895
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2896
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2897
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2739
2898
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2740
2899
  else:
2741
2900
  cred = credential.Credential(
@@ -2747,7 +2906,7 @@ def doModifyDevice(args, parsed_globals):
2747
2906
  endpoint=g_param[OptionsDefine.Endpoint],
2748
2907
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2749
2908
  )
2750
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2909
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2751
2910
  if g_param[OptionsDefine.Language]:
2752
2911
  profile.language = g_param[OptionsDefine.Language]
2753
2912
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2787,7 +2946,10 @@ def doModifyDataForward(args, parsed_globals):
2787
2946
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2788
2947
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2789
2948
  )
2790
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2949
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
2950
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
2951
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
2952
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2791
2953
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2792
2954
  else:
2793
2955
  cred = credential.Credential(
@@ -2799,7 +2961,7 @@ def doModifyDataForward(args, parsed_globals):
2799
2961
  endpoint=g_param[OptionsDefine.Endpoint],
2800
2962
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2801
2963
  )
2802
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2964
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2803
2965
  if g_param[OptionsDefine.Language]:
2804
2966
  profile.language = g_param[OptionsDefine.Language]
2805
2967
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2839,7 +3001,10 @@ def doBatchUpdateFirmware(args, parsed_globals):
2839
3001
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2840
3002
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2841
3003
  )
2842
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3004
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3005
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3006
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3007
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2843
3008
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2844
3009
  else:
2845
3010
  cred = credential.Credential(
@@ -2851,7 +3016,7 @@ def doBatchUpdateFirmware(args, parsed_globals):
2851
3016
  endpoint=g_param[OptionsDefine.Endpoint],
2852
3017
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2853
3018
  )
2854
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3019
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2855
3020
  if g_param[OptionsDefine.Language]:
2856
3021
  profile.language = g_param[OptionsDefine.Language]
2857
3022
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2891,7 +3056,10 @@ def doCreateProduct(args, parsed_globals):
2891
3056
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2892
3057
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2893
3058
  )
2894
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3059
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3060
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3061
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3062
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2895
3063
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2896
3064
  else:
2897
3065
  cred = credential.Credential(
@@ -2903,7 +3071,7 @@ def doCreateProduct(args, parsed_globals):
2903
3071
  endpoint=g_param[OptionsDefine.Endpoint],
2904
3072
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2905
3073
  )
2906
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3074
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2907
3075
  if g_param[OptionsDefine.Language]:
2908
3076
  profile.language = g_param[OptionsDefine.Language]
2909
3077
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2943,7 +3111,10 @@ def doSetMessageQueue(args, parsed_globals):
2943
3111
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2944
3112
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2945
3113
  )
2946
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3114
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3115
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3116
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3117
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2947
3118
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2948
3119
  else:
2949
3120
  cred = credential.Credential(
@@ -2955,7 +3126,7 @@ def doSetMessageQueue(args, parsed_globals):
2955
3126
  endpoint=g_param[OptionsDefine.Endpoint],
2956
3127
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2957
3128
  )
2958
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3129
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2959
3130
  if g_param[OptionsDefine.Language]:
2960
3131
  profile.language = g_param[OptionsDefine.Language]
2961
3132
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2995,7 +3166,10 @@ def doDeleteIotDataType(args, parsed_globals):
2995
3166
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2996
3167
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2997
3168
  )
2998
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3169
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3170
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3171
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3172
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2999
3173
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3000
3174
  else:
3001
3175
  cred = credential.Credential(
@@ -3007,7 +3181,7 @@ def doDeleteIotDataType(args, parsed_globals):
3007
3181
  endpoint=g_param[OptionsDefine.Endpoint],
3008
3182
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3009
3183
  )
3010
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3184
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3011
3185
  if g_param[OptionsDefine.Language]:
3012
3186
  profile.language = g_param[OptionsDefine.Language]
3013
3187
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3047,7 +3221,10 @@ def doChangeP2PRoute(args, parsed_globals):
3047
3221
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3048
3222
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3049
3223
  )
3050
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3224
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3225
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3226
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3227
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3051
3228
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3052
3229
  else:
3053
3230
  cred = credential.Credential(
@@ -3059,7 +3236,7 @@ def doChangeP2PRoute(args, parsed_globals):
3059
3236
  endpoint=g_param[OptionsDefine.Endpoint],
3060
3237
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3061
3238
  )
3062
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3239
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3063
3240
  if g_param[OptionsDefine.Language]:
3064
3241
  profile.language = g_param[OptionsDefine.Language]
3065
3242
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3099,7 +3276,10 @@ def doDisableOtaVersion(args, parsed_globals):
3099
3276
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3100
3277
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3101
3278
  )
3102
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3279
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3280
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3281
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3282
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3103
3283
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3104
3284
  else:
3105
3285
  cred = credential.Credential(
@@ -3111,7 +3291,7 @@ def doDisableOtaVersion(args, parsed_globals):
3111
3291
  endpoint=g_param[OptionsDefine.Endpoint],
3112
3292
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3113
3293
  )
3114
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3294
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3115
3295
  if g_param[OptionsDefine.Language]:
3116
3296
  profile.language = g_param[OptionsDefine.Language]
3117
3297
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3151,7 +3331,10 @@ def doInheritCloudStorageUser(args, parsed_globals):
3151
3331
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3152
3332
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3153
3333
  )
3154
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3334
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3335
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3336
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3337
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3155
3338
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3156
3339
  else:
3157
3340
  cred = credential.Credential(
@@ -3163,7 +3346,7 @@ def doInheritCloudStorageUser(args, parsed_globals):
3163
3346
  endpoint=g_param[OptionsDefine.Endpoint],
3164
3347
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3165
3348
  )
3166
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3349
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3167
3350
  if g_param[OptionsDefine.Language]:
3168
3351
  profile.language = g_param[OptionsDefine.Language]
3169
3352
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3203,7 +3386,10 @@ def doGetFirmwareURL(args, parsed_globals):
3203
3386
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3204
3387
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3205
3388
  )
3206
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3389
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3390
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3391
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3392
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3207
3393
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3208
3394
  else:
3209
3395
  cred = credential.Credential(
@@ -3215,7 +3401,7 @@ def doGetFirmwareURL(args, parsed_globals):
3215
3401
  endpoint=g_param[OptionsDefine.Endpoint],
3216
3402
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3217
3403
  )
3218
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3404
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3219
3405
  if g_param[OptionsDefine.Language]:
3220
3406
  profile.language = g_param[OptionsDefine.Language]
3221
3407
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3255,7 +3441,10 @@ def doDeleteOtaVersion(args, parsed_globals):
3255
3441
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3256
3442
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3257
3443
  )
3258
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3444
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3445
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3446
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3447
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3259
3448
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3260
3449
  else:
3261
3450
  cred = credential.Credential(
@@ -3267,7 +3456,7 @@ def doDeleteOtaVersion(args, parsed_globals):
3267
3456
  endpoint=g_param[OptionsDefine.Endpoint],
3268
3457
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3269
3458
  )
3270
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3459
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3271
3460
  if g_param[OptionsDefine.Language]:
3272
3461
  profile.language = g_param[OptionsDefine.Language]
3273
3462
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3307,7 +3496,10 @@ def doDescribeBatch(args, parsed_globals):
3307
3496
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3308
3497
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3309
3498
  )
3310
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3499
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3500
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3501
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3502
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3311
3503
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3312
3504
  else:
3313
3505
  cred = credential.Credential(
@@ -3319,7 +3511,7 @@ def doDescribeBatch(args, parsed_globals):
3319
3511
  endpoint=g_param[OptionsDefine.Endpoint],
3320
3512
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3321
3513
  )
3322
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3514
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3323
3515
  if g_param[OptionsDefine.Language]:
3324
3516
  profile.language = g_param[OptionsDefine.Language]
3325
3517
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3359,7 +3551,10 @@ def doListFirmwares(args, parsed_globals):
3359
3551
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3360
3552
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3361
3553
  )
3362
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3554
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3555
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3556
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3557
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3363
3558
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3364
3559
  else:
3365
3560
  cred = credential.Credential(
@@ -3371,7 +3566,7 @@ def doListFirmwares(args, parsed_globals):
3371
3566
  endpoint=g_param[OptionsDefine.Endpoint],
3372
3567
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3373
3568
  )
3374
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3569
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3375
3570
  if g_param[OptionsDefine.Language]:
3376
3571
  profile.language = g_param[OptionsDefine.Language]
3377
3572
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3411,7 +3606,10 @@ def doDescribeCategory(args, parsed_globals):
3411
3606
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3412
3607
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3413
3608
  )
3414
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3609
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3610
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3611
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3612
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3415
3613
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3416
3614
  else:
3417
3615
  cred = credential.Credential(
@@ -3423,7 +3621,7 @@ def doDescribeCategory(args, parsed_globals):
3423
3621
  endpoint=g_param[OptionsDefine.Endpoint],
3424
3622
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3425
3623
  )
3426
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3624
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3427
3625
  if g_param[OptionsDefine.Language]:
3428
3626
  profile.language = g_param[OptionsDefine.Language]
3429
3627
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3463,7 +3661,10 @@ def doRefundStorageService(args, parsed_globals):
3463
3661
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3464
3662
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3465
3663
  )
3466
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3664
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3665
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3666
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3667
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3467
3668
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3468
3669
  else:
3469
3670
  cred = credential.Credential(
@@ -3475,7 +3676,7 @@ def doRefundStorageService(args, parsed_globals):
3475
3676
  endpoint=g_param[OptionsDefine.Endpoint],
3476
3677
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3477
3678
  )
3478
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3679
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3479
3680
  if g_param[OptionsDefine.Language]:
3480
3681
  profile.language = g_param[OptionsDefine.Language]
3481
3682
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3515,7 +3716,10 @@ def doDeleteProduct(args, parsed_globals):
3515
3716
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3516
3717
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3517
3718
  )
3518
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3719
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3720
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3721
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3722
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3519
3723
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3520
3724
  else:
3521
3725
  cred = credential.Credential(
@@ -3527,7 +3731,7 @@ def doDeleteProduct(args, parsed_globals):
3527
3731
  endpoint=g_param[OptionsDefine.Endpoint],
3528
3732
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3529
3733
  )
3530
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3734
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3531
3735
  if g_param[OptionsDefine.Language]:
3532
3736
  profile.language = g_param[OptionsDefine.Language]
3533
3737
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3567,7 +3771,10 @@ def doDescribeBatchs(args, parsed_globals):
3567
3771
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3568
3772
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3569
3773
  )
3570
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3774
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3775
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3776
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3777
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3571
3778
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3572
3779
  else:
3573
3780
  cred = credential.Credential(
@@ -3579,7 +3786,7 @@ def doDescribeBatchs(args, parsed_globals):
3579
3786
  endpoint=g_param[OptionsDefine.Endpoint],
3580
3787
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3581
3788
  )
3582
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3789
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3583
3790
  if g_param[OptionsDefine.Language]:
3584
3791
  profile.language = g_param[OptionsDefine.Language]
3585
3792
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3619,7 +3826,10 @@ def doModifyDataForwardStatus(args, parsed_globals):
3619
3826
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3620
3827
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3621
3828
  )
3622
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3829
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3830
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3831
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3832
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3623
3833
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3624
3834
  else:
3625
3835
  cred = credential.Credential(
@@ -3631,7 +3841,7 @@ def doModifyDataForwardStatus(args, parsed_globals):
3631
3841
  endpoint=g_param[OptionsDefine.Endpoint],
3632
3842
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3633
3843
  )
3634
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3844
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3635
3845
  if g_param[OptionsDefine.Language]:
3636
3846
  profile.language = g_param[OptionsDefine.Language]
3637
3847
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3671,7 +3881,10 @@ def doDescribeFirmwareTask(args, parsed_globals):
3671
3881
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3672
3882
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3673
3883
  )
3674
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3884
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3885
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3886
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3887
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3675
3888
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3676
3889
  else:
3677
3890
  cred = credential.Credential(
@@ -3683,7 +3896,7 @@ def doDescribeFirmwareTask(args, parsed_globals):
3683
3896
  endpoint=g_param[OptionsDefine.Endpoint],
3684
3897
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3685
3898
  )
3686
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3899
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3687
3900
  if g_param[OptionsDefine.Language]:
3688
3901
  profile.language = g_param[OptionsDefine.Language]
3689
3902
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3723,7 +3936,10 @@ def doResetCloudStorage(args, parsed_globals):
3723
3936
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3724
3937
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3725
3938
  )
3726
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3939
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3940
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3941
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3942
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3727
3943
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3728
3944
  else:
3729
3945
  cred = credential.Credential(
@@ -3735,7 +3951,7 @@ def doResetCloudStorage(args, parsed_globals):
3735
3951
  endpoint=g_param[OptionsDefine.Endpoint],
3736
3952
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3737
3953
  )
3738
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3954
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3739
3955
  if g_param[OptionsDefine.Language]:
3740
3956
  profile.language = g_param[OptionsDefine.Language]
3741
3957
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3775,7 +3991,10 @@ def doDescribeRegistrationStatus(args, parsed_globals):
3775
3991
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3776
3992
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3777
3993
  )
3778
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3994
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3995
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3996
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3997
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3779
3998
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3780
3999
  else:
3781
4000
  cred = credential.Credential(
@@ -3787,7 +4006,7 @@ def doDescribeRegistrationStatus(args, parsed_globals):
3787
4006
  endpoint=g_param[OptionsDefine.Endpoint],
3788
4007
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3789
4008
  )
3790
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4009
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3791
4010
  if g_param[OptionsDefine.Language]:
3792
4011
  profile.language = g_param[OptionsDefine.Language]
3793
4012
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3827,7 +4046,10 @@ def doDescribeFirmwareTaskDevices(args, parsed_globals):
3827
4046
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3828
4047
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3829
4048
  )
3830
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4049
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4050
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4051
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4052
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3831
4053
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3832
4054
  else:
3833
4055
  cred = credential.Credential(
@@ -3839,7 +4061,7 @@ def doDescribeFirmwareTaskDevices(args, parsed_globals):
3839
4061
  endpoint=g_param[OptionsDefine.Endpoint],
3840
4062
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3841
4063
  )
3842
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4064
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3843
4065
  if g_param[OptionsDefine.Language]:
3844
4066
  profile.language = g_param[OptionsDefine.Language]
3845
4067
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3879,7 +4101,10 @@ def doDescribeStorageService(args, parsed_globals):
3879
4101
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3880
4102
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3881
4103
  )
3882
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4104
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4105
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4106
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4107
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3883
4108
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3884
4109
  else:
3885
4110
  cred = credential.Credential(
@@ -3891,7 +4116,7 @@ def doDescribeStorageService(args, parsed_globals):
3891
4116
  endpoint=g_param[OptionsDefine.Endpoint],
3892
4117
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3893
4118
  )
3894
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4119
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3895
4120
  if g_param[OptionsDefine.Language]:
3896
4121
  profile.language = g_param[OptionsDefine.Language]
3897
4122
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3931,7 +4156,10 @@ def doDescribeDataForwardList(args, parsed_globals):
3931
4156
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3932
4157
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3933
4158
  )
3934
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4159
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4160
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4161
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4162
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3935
4163
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3936
4164
  else:
3937
4165
  cred = credential.Credential(
@@ -3943,7 +4171,7 @@ def doDescribeDataForwardList(args, parsed_globals):
3943
4171
  endpoint=g_param[OptionsDefine.Endpoint],
3944
4172
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3945
4173
  )
3946
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4174
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3947
4175
  if g_param[OptionsDefine.Language]:
3948
4176
  profile.language = g_param[OptionsDefine.Language]
3949
4177
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3983,7 +4211,10 @@ def doDescribeCloudStorageTime(args, parsed_globals):
3983
4211
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3984
4212
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3985
4213
  )
3986
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4214
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4215
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4216
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4217
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3987
4218
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3988
4219
  else:
3989
4220
  cred = credential.Credential(
@@ -3995,7 +4226,7 @@ def doDescribeCloudStorageTime(args, parsed_globals):
3995
4226
  endpoint=g_param[OptionsDefine.Endpoint],
3996
4227
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3997
4228
  )
3998
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4229
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3999
4230
  if g_param[OptionsDefine.Language]:
4000
4231
  profile.language = g_param[OptionsDefine.Language]
4001
4232
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4035,7 +4266,10 @@ def doDisableDeviceStream(args, parsed_globals):
4035
4266
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4036
4267
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4037
4268
  )
4038
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4269
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4270
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4271
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4272
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4039
4273
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4040
4274
  else:
4041
4275
  cred = credential.Credential(
@@ -4047,7 +4281,7 @@ def doDisableDeviceStream(args, parsed_globals):
4047
4281
  endpoint=g_param[OptionsDefine.Endpoint],
4048
4282
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4049
4283
  )
4050
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4284
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4051
4285
  if g_param[OptionsDefine.Language]:
4052
4286
  profile.language = g_param[OptionsDefine.Language]
4053
4287
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4087,7 +4321,10 @@ def doUpdateAIModelChannel(args, parsed_globals):
4087
4321
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4088
4322
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4089
4323
  )
4090
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4324
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4325
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4326
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4327
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4091
4328
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4092
4329
  else:
4093
4330
  cred = credential.Credential(
@@ -4099,7 +4336,7 @@ def doUpdateAIModelChannel(args, parsed_globals):
4099
4336
  endpoint=g_param[OptionsDefine.Endpoint],
4100
4337
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4101
4338
  )
4102
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4339
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4103
4340
  if g_param[OptionsDefine.Language]:
4104
4341
  profile.language = g_param[OptionsDefine.Language]
4105
4342
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4139,7 +4376,10 @@ def doDescribeCloudStorageThumbnail(args, parsed_globals):
4139
4376
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4140
4377
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4141
4378
  )
4142
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4379
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4380
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4381
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4382
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4143
4383
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4144
4384
  else:
4145
4385
  cred = credential.Credential(
@@ -4151,7 +4391,7 @@ def doDescribeCloudStorageThumbnail(args, parsed_globals):
4151
4391
  endpoint=g_param[OptionsDefine.Endpoint],
4152
4392
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4153
4393
  )
4154
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4394
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4155
4395
  if g_param[OptionsDefine.Language]:
4156
4396
  profile.language = g_param[OptionsDefine.Language]
4157
4397
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4191,7 +4431,10 @@ def doDescribeCloudStorageMultiThumbnail(args, parsed_globals):
4191
4431
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4192
4432
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4193
4433
  )
4194
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4434
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4435
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4436
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4437
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4195
4438
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4196
4439
  else:
4197
4440
  cred = credential.Credential(
@@ -4203,7 +4446,7 @@ def doDescribeCloudStorageMultiThumbnail(args, parsed_globals):
4203
4446
  endpoint=g_param[OptionsDefine.Endpoint],
4204
4447
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4205
4448
  )
4206
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4449
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4207
4450
  if g_param[OptionsDefine.Language]:
4208
4451
  profile.language = g_param[OptionsDefine.Language]
4209
4452
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4243,7 +4486,10 @@ def doDeleteFirmware(args, parsed_globals):
4243
4486
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4244
4487
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4245
4488
  )
4246
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4489
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4490
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4491
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4492
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4247
4493
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4248
4494
  else:
4249
4495
  cred = credential.Credential(
@@ -4255,7 +4501,7 @@ def doDeleteFirmware(args, parsed_globals):
4255
4501
  endpoint=g_param[OptionsDefine.Endpoint],
4256
4502
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4257
4503
  )
4258
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4504
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4259
4505
  if g_param[OptionsDefine.Language]:
4260
4506
  profile.language = g_param[OptionsDefine.Language]
4261
4507
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4295,7 +4541,10 @@ def doCallDeviceActionAsync(args, parsed_globals):
4295
4541
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4296
4542
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4297
4543
  )
4298
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4544
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4545
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4546
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4547
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4299
4548
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4300
4549
  else:
4301
4550
  cred = credential.Credential(
@@ -4307,7 +4556,7 @@ def doCallDeviceActionAsync(args, parsed_globals):
4307
4556
  endpoint=g_param[OptionsDefine.Endpoint],
4308
4557
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4309
4558
  )
4310
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4559
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4311
4560
  if g_param[OptionsDefine.Language]:
4312
4561
  profile.language = g_param[OptionsDefine.Language]
4313
4562
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4347,7 +4596,10 @@ def doRunDevice(args, parsed_globals):
4347
4596
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4348
4597
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4349
4598
  )
4350
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4599
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4600
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4601
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4602
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4351
4603
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4352
4604
  else:
4353
4605
  cred = credential.Credential(
@@ -4359,7 +4611,7 @@ def doRunDevice(args, parsed_globals):
4359
4611
  endpoint=g_param[OptionsDefine.Endpoint],
4360
4612
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4361
4613
  )
4362
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4614
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4363
4615
  if g_param[OptionsDefine.Language]:
4364
4616
  profile.language = g_param[OptionsDefine.Language]
4365
4617
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4399,7 +4651,10 @@ def doUploadOtaVersion(args, parsed_globals):
4399
4651
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4400
4652
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4401
4653
  )
4402
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4654
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4655
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4656
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4657
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4403
4658
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4404
4659
  else:
4405
4660
  cred = credential.Credential(
@@ -4411,7 +4666,7 @@ def doUploadOtaVersion(args, parsed_globals):
4411
4666
  endpoint=g_param[OptionsDefine.Endpoint],
4412
4667
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4413
4668
  )
4414
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4669
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4415
4670
  if g_param[OptionsDefine.Language]:
4416
4671
  profile.language = g_param[OptionsDefine.Language]
4417
4672
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4451,7 +4706,10 @@ def doCreateUsrToken(args, parsed_globals):
4451
4706
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4452
4707
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4453
4708
  )
4454
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4709
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4710
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4711
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4712
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4455
4713
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4456
4714
  else:
4457
4715
  cred = credential.Credential(
@@ -4463,7 +4721,7 @@ def doCreateUsrToken(args, parsed_globals):
4463
4721
  endpoint=g_param[OptionsDefine.Endpoint],
4464
4722
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4465
4723
  )
4466
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4724
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4467
4725
  if g_param[OptionsDefine.Language]:
4468
4726
  profile.language = g_param[OptionsDefine.Language]
4469
4727
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4503,7 +4761,10 @@ def doCheckForwardAuth(args, parsed_globals):
4503
4761
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4504
4762
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4505
4763
  )
4506
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4764
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4765
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4766
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4767
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4507
4768
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4508
4769
  else:
4509
4770
  cred = credential.Credential(
@@ -4515,7 +4776,7 @@ def doCheckForwardAuth(args, parsed_globals):
4515
4776
  endpoint=g_param[OptionsDefine.Endpoint],
4516
4777
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4517
4778
  )
4518
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4779
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4519
4780
  if g_param[OptionsDefine.Language]:
4520
4781
  profile.language = g_param[OptionsDefine.Language]
4521
4782
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4555,7 +4816,10 @@ def doDescribeDeviceData(args, parsed_globals):
4555
4816
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4556
4817
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4557
4818
  )
4558
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4819
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4820
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4821
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4822
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4559
4823
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4560
4824
  else:
4561
4825
  cred = credential.Credential(
@@ -4567,7 +4831,7 @@ def doDescribeDeviceData(args, parsed_globals):
4567
4831
  endpoint=g_param[OptionsDefine.Endpoint],
4568
4832
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4569
4833
  )
4570
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4834
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4571
4835
  if g_param[OptionsDefine.Language]:
4572
4836
  profile.language = g_param[OptionsDefine.Language]
4573
4837
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4607,7 +4871,10 @@ def doClearDeviceActiveCode(args, parsed_globals):
4607
4871
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4608
4872
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4609
4873
  )
4610
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4874
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4875
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4876
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4877
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4611
4878
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4612
4879
  else:
4613
4880
  cred = credential.Credential(
@@ -4619,7 +4886,7 @@ def doClearDeviceActiveCode(args, parsed_globals):
4619
4886
  endpoint=g_param[OptionsDefine.Endpoint],
4620
4887
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4621
4888
  )
4622
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4889
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4623
4890
  if g_param[OptionsDefine.Language]:
4624
4891
  profile.language = g_param[OptionsDefine.Language]
4625
4892
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4659,7 +4926,10 @@ def doModifyProduct(args, parsed_globals):
4659
4926
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4660
4927
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4661
4928
  )
4662
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4929
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4930
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4931
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4932
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4663
4933
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4664
4934
  else:
4665
4935
  cred = credential.Credential(
@@ -4671,7 +4941,7 @@ def doModifyProduct(args, parsed_globals):
4671
4941
  endpoint=g_param[OptionsDefine.Endpoint],
4672
4942
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4673
4943
  )
4674
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4944
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4675
4945
  if g_param[OptionsDefine.Language]:
4676
4946
  profile.language = g_param[OptionsDefine.Language]
4677
4947
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4711,7 +4981,10 @@ def doDescribeAIModelUsage(args, parsed_globals):
4711
4981
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4712
4982
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4713
4983
  )
4714
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4984
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4985
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4986
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4987
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4715
4988
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4716
4989
  else:
4717
4990
  cred = credential.Credential(
@@ -4723,7 +4996,7 @@ def doDescribeAIModelUsage(args, parsed_globals):
4723
4996
  endpoint=g_param[OptionsDefine.Endpoint],
4724
4997
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4725
4998
  )
4726
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4999
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4727
5000
  if g_param[OptionsDefine.Language]:
4728
5001
  profile.language = g_param[OptionsDefine.Language]
4729
5002
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4763,7 +5036,10 @@ def doRunIotModel(args, parsed_globals):
4763
5036
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4764
5037
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4765
5038
  )
4766
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5039
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5040
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5041
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5042
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4767
5043
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4768
5044
  else:
4769
5045
  cred = credential.Credential(
@@ -4775,7 +5051,7 @@ def doRunIotModel(args, parsed_globals):
4775
5051
  endpoint=g_param[OptionsDefine.Endpoint],
4776
5052
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4777
5053
  )
4778
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5054
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4779
5055
  if g_param[OptionsDefine.Language]:
4780
5056
  profile.language = g_param[OptionsDefine.Language]
4781
5057
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4815,7 +5091,10 @@ def doModifyDeviceAction(args, parsed_globals):
4815
5091
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4816
5092
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4817
5093
  )
4818
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5094
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5095
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5096
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5097
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4819
5098
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4820
5099
  else:
4821
5100
  cred = credential.Credential(
@@ -4827,7 +5106,7 @@ def doModifyDeviceAction(args, parsed_globals):
4827
5106
  endpoint=g_param[OptionsDefine.Endpoint],
4828
5107
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4829
5108
  )
4830
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5109
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4831
5110
  if g_param[OptionsDefine.Language]:
4832
5111
  profile.language = g_param[OptionsDefine.Language]
4833
5112
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4867,7 +5146,10 @@ def doModifyForwardRule(args, parsed_globals):
4867
5146
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4868
5147
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4869
5148
  )
4870
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5149
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5150
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5151
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5152
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4871
5153
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4872
5154
  else:
4873
5155
  cred = credential.Credential(
@@ -4879,7 +5161,7 @@ def doModifyForwardRule(args, parsed_globals):
4879
5161
  endpoint=g_param[OptionsDefine.Endpoint],
4880
5162
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4881
5163
  )
4882
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5164
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4883
5165
  if g_param[OptionsDefine.Language]:
4884
5166
  profile.language = g_param[OptionsDefine.Language]
4885
5167
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4919,7 +5201,10 @@ def doCancelAIModelApplication(args, parsed_globals):
4919
5201
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4920
5202
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4921
5203
  )
4922
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5204
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5205
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5206
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5207
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4923
5208
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4924
5209
  else:
4925
5210
  cred = credential.Credential(
@@ -4931,7 +5216,7 @@ def doCancelAIModelApplication(args, parsed_globals):
4931
5216
  endpoint=g_param[OptionsDefine.Endpoint],
4932
5217
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4933
5218
  )
4934
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5219
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4935
5220
  if g_param[OptionsDefine.Language]:
4936
5221
  profile.language = g_param[OptionsDefine.Language]
4937
5222
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4971,7 +5256,10 @@ def doDescribeCloudStorage(args, parsed_globals):
4971
5256
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4972
5257
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4973
5258
  )
4974
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5259
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5260
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5261
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5262
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4975
5263
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4976
5264
  else:
4977
5265
  cred = credential.Credential(
@@ -4983,7 +5271,7 @@ def doDescribeCloudStorage(args, parsed_globals):
4983
5271
  endpoint=g_param[OptionsDefine.Endpoint],
4984
5272
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4985
5273
  )
4986
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5274
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4987
5275
  if g_param[OptionsDefine.Language]:
4988
5276
  profile.language = g_param[OptionsDefine.Language]
4989
5277
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5023,7 +5311,10 @@ def doDescribeDeviceCommLog(args, parsed_globals):
5023
5311
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5024
5312
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5025
5313
  )
5026
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5314
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5315
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5316
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5317
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5027
5318
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5028
5319
  else:
5029
5320
  cred = credential.Credential(
@@ -5035,7 +5326,7 @@ def doDescribeDeviceCommLog(args, parsed_globals):
5035
5326
  endpoint=g_param[OptionsDefine.Endpoint],
5036
5327
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5037
5328
  )
5038
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5329
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5039
5330
  if g_param[OptionsDefine.Language]:
5040
5331
  profile.language = g_param[OptionsDefine.Language]
5041
5332
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5075,7 +5366,10 @@ def doCreateIotModel(args, parsed_globals):
5075
5366
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5076
5367
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5077
5368
  )
5078
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5369
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5370
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5371
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5372
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5079
5373
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5080
5374
  else:
5081
5375
  cred = credential.Credential(
@@ -5087,7 +5381,7 @@ def doCreateIotModel(args, parsed_globals):
5087
5381
  endpoint=g_param[OptionsDefine.Endpoint],
5088
5382
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5089
5383
  )
5090
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5384
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5091
5385
  if g_param[OptionsDefine.Language]:
5092
5386
  profile.language = g_param[OptionsDefine.Language]
5093
5387
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5127,7 +5421,10 @@ def doDescribeDeviceActionHistory(args, parsed_globals):
5127
5421
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5128
5422
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5129
5423
  )
5130
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5424
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5425
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5426
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5427
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5131
5428
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5132
5429
  else:
5133
5430
  cred = credential.Credential(
@@ -5139,7 +5436,7 @@ def doDescribeDeviceActionHistory(args, parsed_globals):
5139
5436
  endpoint=g_param[OptionsDefine.Endpoint],
5140
5437
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5141
5438
  )
5142
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5439
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5143
5440
  if g_param[OptionsDefine.Language]:
5144
5441
  profile.language = g_param[OptionsDefine.Language]
5145
5442
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5179,7 +5476,10 @@ def doDescribeIotModel(args, parsed_globals):
5179
5476
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5180
5477
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5181
5478
  )
5182
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5479
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5480
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5481
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5482
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5183
5483
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5184
5484
  else:
5185
5485
  cred = credential.Credential(
@@ -5191,7 +5491,7 @@ def doDescribeIotModel(args, parsed_globals):
5191
5491
  endpoint=g_param[OptionsDefine.Endpoint],
5192
5492
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5193
5493
  )
5194
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5494
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5195
5495
  if g_param[OptionsDefine.Language]:
5196
5496
  profile.language = g_param[OptionsDefine.Language]
5197
5497
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5231,7 +5531,10 @@ def doCreateCOSCredentials(args, parsed_globals):
5231
5531
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5232
5532
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5233
5533
  )
5234
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5534
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5535
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5536
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5537
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5235
5538
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5236
5539
  else:
5237
5540
  cred = credential.Credential(
@@ -5243,7 +5546,7 @@ def doCreateCOSCredentials(args, parsed_globals):
5243
5546
  endpoint=g_param[OptionsDefine.Endpoint],
5244
5547
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5245
5548
  )
5246
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5549
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5247
5550
  if g_param[OptionsDefine.Language]:
5248
5551
  profile.language = g_param[OptionsDefine.Language]
5249
5552
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5283,7 +5586,10 @@ def doCreateFreeCloudStorage(args, parsed_globals):
5283
5586
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5284
5587
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5285
5588
  )
5286
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5589
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5590
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5591
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5592
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5287
5593
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5288
5594
  else:
5289
5595
  cred = credential.Credential(
@@ -5295,7 +5601,7 @@ def doCreateFreeCloudStorage(args, parsed_globals):
5295
5601
  endpoint=g_param[OptionsDefine.Endpoint],
5296
5602
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5297
5603
  )
5298
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5604
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5299
5605
  if g_param[OptionsDefine.Language]:
5300
5606
  profile.language = g_param[OptionsDefine.Language]
5301
5607
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5335,7 +5641,10 @@ def doSendOnlineMsg(args, parsed_globals):
5335
5641
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5336
5642
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5337
5643
  )
5338
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5644
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5645
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5646
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5647
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5339
5648
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5340
5649
  else:
5341
5650
  cred = credential.Credential(
@@ -5347,7 +5656,7 @@ def doSendOnlineMsg(args, parsed_globals):
5347
5656
  endpoint=g_param[OptionsDefine.Endpoint],
5348
5657
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5349
5658
  )
5350
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5659
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5351
5660
  if g_param[OptionsDefine.Language]:
5352
5661
  profile.language = g_param[OptionsDefine.Language]
5353
5662
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5387,7 +5696,10 @@ def doCreateTraceIds(args, parsed_globals):
5387
5696
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5388
5697
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5389
5698
  )
5390
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5699
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5700
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5701
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5702
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5391
5703
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5392
5704
  else:
5393
5705
  cred = credential.Credential(
@@ -5399,7 +5711,7 @@ def doCreateTraceIds(args, parsed_globals):
5399
5711
  endpoint=g_param[OptionsDefine.Endpoint],
5400
5712
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5401
5713
  )
5402
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5714
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5403
5715
  if g_param[OptionsDefine.Language]:
5404
5716
  profile.language = g_param[OptionsDefine.Language]
5405
5717
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5439,7 +5751,10 @@ def doCreateBatch(args, parsed_globals):
5439
5751
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5440
5752
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5441
5753
  )
5442
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5754
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5755
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5756
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5757
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5443
5758
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5444
5759
  else:
5445
5760
  cred = credential.Credential(
@@ -5451,7 +5766,7 @@ def doCreateBatch(args, parsed_globals):
5451
5766
  endpoint=g_param[OptionsDefine.Endpoint],
5452
5767
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5453
5768
  )
5454
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5769
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5455
5770
  if g_param[OptionsDefine.Language]:
5456
5771
  profile.language = g_param[OptionsDefine.Language]
5457
5772
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5491,7 +5806,10 @@ def doDescribeMessageQueue(args, parsed_globals):
5491
5806
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5492
5807
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5493
5808
  )
5494
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5809
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5810
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5811
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5812
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5495
5813
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5496
5814
  else:
5497
5815
  cred = credential.Credential(
@@ -5503,7 +5821,7 @@ def doDescribeMessageQueue(args, parsed_globals):
5503
5821
  endpoint=g_param[OptionsDefine.Endpoint],
5504
5822
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5505
5823
  )
5506
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5824
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5507
5825
  if g_param[OptionsDefine.Language]:
5508
5826
  profile.language = g_param[OptionsDefine.Language]
5509
5827
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5543,7 +5861,10 @@ def doCreateBinding(args, parsed_globals):
5543
5861
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5544
5862
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5545
5863
  )
5546
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5864
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5865
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5866
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5867
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5547
5868
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5548
5869
  else:
5549
5870
  cred = credential.Credential(
@@ -5555,7 +5876,7 @@ def doCreateBinding(args, parsed_globals):
5555
5876
  endpoint=g_param[OptionsDefine.Endpoint],
5556
5877
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5557
5878
  )
5558
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5879
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5559
5880
  if g_param[OptionsDefine.Language]:
5560
5881
  profile.language = g_param[OptionsDefine.Language]
5561
5882
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5595,7 +5916,10 @@ def doDescribePushChannel(args, parsed_globals):
5595
5916
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5596
5917
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5597
5918
  )
5598
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5919
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5920
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5921
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5922
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5599
5923
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5600
5924
  else:
5601
5925
  cred = credential.Credential(
@@ -5607,7 +5931,7 @@ def doDescribePushChannel(args, parsed_globals):
5607
5931
  endpoint=g_param[OptionsDefine.Endpoint],
5608
5932
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5609
5933
  )
5610
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5934
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5611
5935
  if g_param[OptionsDefine.Language]:
5612
5936
  profile.language = g_param[OptionsDefine.Language]
5613
5937
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5647,7 +5971,10 @@ def doCreateCloudStorage(args, parsed_globals):
5647
5971
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5648
5972
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5649
5973
  )
5650
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5974
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5975
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5976
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5977
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5651
5978
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5652
5979
  else:
5653
5980
  cred = credential.Credential(
@@ -5659,7 +5986,7 @@ def doCreateCloudStorage(args, parsed_globals):
5659
5986
  endpoint=g_param[OptionsDefine.Endpoint],
5660
5987
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5661
5988
  )
5662
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5989
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5663
5990
  if g_param[OptionsDefine.Language]:
5664
5991
  profile.language = g_param[OptionsDefine.Language]
5665
5992
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5699,7 +6026,10 @@ def doCreateStorageService(args, parsed_globals):
5699
6026
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5700
6027
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5701
6028
  )
5702
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6029
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6030
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6031
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6032
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5703
6033
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5704
6034
  else:
5705
6035
  cred = credential.Credential(
@@ -5711,7 +6041,7 @@ def doCreateStorageService(args, parsed_globals):
5711
6041
  endpoint=g_param[OptionsDefine.Endpoint],
5712
6042
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5713
6043
  )
5714
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6044
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5715
6045
  if g_param[OptionsDefine.Language]:
5716
6046
  profile.language = g_param[OptionsDefine.Language]
5717
6047
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5751,7 +6081,10 @@ def doDescribeOsList(args, parsed_globals):
5751
6081
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5752
6082
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5753
6083
  )
5754
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6084
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6085
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6086
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6087
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5755
6088
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5756
6089
  else:
5757
6090
  cred = credential.Credential(
@@ -5763,7 +6096,7 @@ def doDescribeOsList(args, parsed_globals):
5763
6096
  endpoint=g_param[OptionsDefine.Endpoint],
5764
6097
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5765
6098
  )
5766
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6099
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5767
6100
  if g_param[OptionsDefine.Language]:
5768
6101
  profile.language = g_param[OptionsDefine.Language]
5769
6102
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5803,7 +6136,10 @@ def doDescribeLogs(args, parsed_globals):
5803
6136
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5804
6137
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5805
6138
  )
5806
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6139
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6140
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6141
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6142
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5807
6143
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5808
6144
  else:
5809
6145
  cred = credential.Credential(
@@ -5815,7 +6151,7 @@ def doDescribeLogs(args, parsed_globals):
5815
6151
  endpoint=g_param[OptionsDefine.Endpoint],
5816
6152
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5817
6153
  )
5818
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6154
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5819
6155
  if g_param[OptionsDefine.Language]:
5820
6156
  profile.language = g_param[OptionsDefine.Language]
5821
6157
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5855,7 +6191,10 @@ def doDescribeProductDynamicRegister(args, parsed_globals):
5855
6191
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5856
6192
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5857
6193
  )
5858
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6194
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6195
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6196
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6197
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5859
6198
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5860
6199
  else:
5861
6200
  cred = credential.Credential(
@@ -5867,7 +6206,7 @@ def doDescribeProductDynamicRegister(args, parsed_globals):
5867
6206
  endpoint=g_param[OptionsDefine.Endpoint],
5868
6207
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5869
6208
  )
5870
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6209
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5871
6210
  if g_param[OptionsDefine.Language]:
5872
6211
  profile.language = g_param[OptionsDefine.Language]
5873
6212
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5907,7 +6246,10 @@ def doDeliverStorageService(args, parsed_globals):
5907
6246
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5908
6247
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5909
6248
  )
5910
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6249
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6250
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6251
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6252
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5911
6253
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5912
6254
  else:
5913
6255
  cred = credential.Credential(
@@ -5919,7 +6261,7 @@ def doDeliverStorageService(args, parsed_globals):
5919
6261
  endpoint=g_param[OptionsDefine.Endpoint],
5920
6262
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5921
6263
  )
5922
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6264
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5923
6265
  if g_param[OptionsDefine.Language]:
5924
6266
  profile.language = g_param[OptionsDefine.Language]
5925
6267
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -5959,7 +6301,10 @@ def doDescribeTraceStatus(args, parsed_globals):
5959
6301
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5960
6302
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5961
6303
  )
5962
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6304
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6305
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6306
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6307
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5963
6308
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5964
6309
  else:
5965
6310
  cred = credential.Credential(
@@ -5971,7 +6316,7 @@ def doDescribeTraceStatus(args, parsed_globals):
5971
6316
  endpoint=g_param[OptionsDefine.Endpoint],
5972
6317
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5973
6318
  )
5974
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6319
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5975
6320
  if g_param[OptionsDefine.Language]:
5976
6321
  profile.language = g_param[OptionsDefine.Language]
5977
6322
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6011,7 +6356,10 @@ def doCreateUploadTest(args, parsed_globals):
6011
6356
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6012
6357
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6013
6358
  )
6014
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6359
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6360
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6361
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6362
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6015
6363
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6016
6364
  else:
6017
6365
  cred = credential.Credential(
@@ -6023,7 +6371,7 @@ def doCreateUploadTest(args, parsed_globals):
6023
6371
  endpoint=g_param[OptionsDefine.Endpoint],
6024
6372
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6025
6373
  )
6026
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6374
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6027
6375
  if g_param[OptionsDefine.Language]:
6028
6376
  profile.language = g_param[OptionsDefine.Language]
6029
6377
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6063,7 +6411,10 @@ def doDescribeDeviceDataStats(args, parsed_globals):
6063
6411
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6064
6412
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6065
6413
  )
6066
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6414
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6415
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6416
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6417
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6067
6418
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6068
6419
  else:
6069
6420
  cred = credential.Credential(
@@ -6075,7 +6426,7 @@ def doDescribeDeviceDataStats(args, parsed_globals):
6075
6426
  endpoint=g_param[OptionsDefine.Endpoint],
6076
6427
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6077
6428
  )
6078
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6429
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6079
6430
  if g_param[OptionsDefine.Language]:
6080
6431
  profile.language = g_param[OptionsDefine.Language]
6081
6432
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6115,7 +6466,10 @@ def doWakeUpDevice(args, parsed_globals):
6115
6466
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6116
6467
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6117
6468
  )
6118
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6469
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6470
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6471
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6472
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6119
6473
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6120
6474
  else:
6121
6475
  cred = credential.Credential(
@@ -6127,7 +6481,7 @@ def doWakeUpDevice(args, parsed_globals):
6127
6481
  endpoint=g_param[OptionsDefine.Endpoint],
6128
6482
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6129
6483
  )
6130
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6484
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6131
6485
  if g_param[OptionsDefine.Language]:
6132
6486
  profile.language = g_param[OptionsDefine.Language]
6133
6487
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6167,7 +6521,10 @@ def doDescribeDeviceStatusLog(args, parsed_globals):
6167
6521
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6168
6522
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6169
6523
  )
6170
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6524
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6525
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6526
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6527
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6171
6528
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6172
6529
  else:
6173
6530
  cred = credential.Credential(
@@ -6179,7 +6536,7 @@ def doDescribeDeviceStatusLog(args, parsed_globals):
6179
6536
  endpoint=g_param[OptionsDefine.Endpoint],
6180
6537
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6181
6538
  )
6182
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6539
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6183
6540
  if g_param[OptionsDefine.Language]:
6184
6541
  profile.language = g_param[OptionsDefine.Language]
6185
6542
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6219,7 +6576,10 @@ def doDescribeCloudStorageEvents(args, parsed_globals):
6219
6576
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6220
6577
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6221
6578
  )
6222
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6579
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6580
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6581
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6582
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6223
6583
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6224
6584
  else:
6225
6585
  cred = credential.Credential(
@@ -6231,7 +6591,7 @@ def doDescribeCloudStorageEvents(args, parsed_globals):
6231
6591
  endpoint=g_param[OptionsDefine.Endpoint],
6232
6592
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6233
6593
  )
6234
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6594
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6235
6595
  if g_param[OptionsDefine.Language]:
6236
6596
  profile.language = g_param[OptionsDefine.Language]
6237
6597
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6271,7 +6631,10 @@ def doDescribeRunLog(args, parsed_globals):
6271
6631
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6272
6632
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6273
6633
  )
6274
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6634
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6635
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6636
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6637
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6275
6638
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6276
6639
  else:
6277
6640
  cred = credential.Credential(
@@ -6283,7 +6646,7 @@ def doDescribeRunLog(args, parsed_globals):
6283
6646
  endpoint=g_param[OptionsDefine.Endpoint],
6284
6647
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6285
6648
  )
6286
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6649
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6287
6650
  if g_param[OptionsDefine.Language]:
6288
6651
  profile.language = g_param[OptionsDefine.Language]
6289
6652
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6323,7 +6686,10 @@ def doDescribeAIModelChannel(args, parsed_globals):
6323
6686
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6324
6687
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6325
6688
  )
6326
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6689
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6690
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6691
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6692
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6327
6693
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6328
6694
  else:
6329
6695
  cred = credential.Credential(
@@ -6335,7 +6701,7 @@ def doDescribeAIModelChannel(args, parsed_globals):
6335
6701
  endpoint=g_param[OptionsDefine.Endpoint],
6336
6702
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6337
6703
  )
6338
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6704
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6339
6705
  if g_param[OptionsDefine.Language]:
6340
6706
  profile.language = g_param[OptionsDefine.Language]
6341
6707
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6375,7 +6741,10 @@ def doDescribeModelDataRet(args, parsed_globals):
6375
6741
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6376
6742
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6377
6743
  )
6378
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6744
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6745
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6746
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6747
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6379
6748
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6380
6749
  else:
6381
6750
  cred = credential.Credential(
@@ -6387,7 +6756,7 @@ def doDescribeModelDataRet(args, parsed_globals):
6387
6756
  endpoint=g_param[OptionsDefine.Endpoint],
6388
6757
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6389
6758
  )
6390
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6759
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6391
6760
  if g_param[OptionsDefine.Language]:
6392
6761
  profile.language = g_param[OptionsDefine.Language]
6393
6762
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6427,7 +6796,10 @@ def doDescribeBalance(args, parsed_globals):
6427
6796
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6428
6797
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6429
6798
  )
6430
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6799
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6800
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6801
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6802
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6431
6803
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6432
6804
  else:
6433
6805
  cred = credential.Credential(
@@ -6439,7 +6811,7 @@ def doDescribeBalance(args, parsed_globals):
6439
6811
  endpoint=g_param[OptionsDefine.Endpoint],
6440
6812
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6441
6813
  )
6442
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6814
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6443
6815
  if g_param[OptionsDefine.Language]:
6444
6816
  profile.language = g_param[OptionsDefine.Language]
6445
6817
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6479,7 +6851,10 @@ def doDescribeSDKLog(args, parsed_globals):
6479
6851
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6480
6852
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6481
6853
  )
6482
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6854
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6855
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6856
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6857
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6483
6858
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6484
6859
  else:
6485
6860
  cred = credential.Credential(
@@ -6491,7 +6866,7 @@ def doDescribeSDKLog(args, parsed_globals):
6491
6866
  endpoint=g_param[OptionsDefine.Endpoint],
6492
6867
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6493
6868
  )
6494
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6869
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6495
6870
  if g_param[OptionsDefine.Language]:
6496
6871
  profile.language = g_param[OptionsDefine.Language]
6497
6872
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6531,7 +6906,10 @@ def doDescribeModelDefinition(args, parsed_globals):
6531
6906
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6532
6907
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6533
6908
  )
6534
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6909
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6910
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6911
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6912
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6535
6913
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6536
6914
  else:
6537
6915
  cred = credential.Credential(
@@ -6543,7 +6921,7 @@ def doDescribeModelDefinition(args, parsed_globals):
6543
6921
  endpoint=g_param[OptionsDefine.Endpoint],
6544
6922
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6545
6923
  )
6546
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6924
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6547
6925
  if g_param[OptionsDefine.Language]:
6548
6926
  profile.language = g_param[OptionsDefine.Language]
6549
6927
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6583,7 +6961,10 @@ def doDescribeDevice(args, parsed_globals):
6583
6961
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6584
6962
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6585
6963
  )
6586
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6964
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
6965
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
6966
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
6967
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6587
6968
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6588
6969
  else:
6589
6970
  cred = credential.Credential(
@@ -6595,7 +6976,7 @@ def doDescribeDevice(args, parsed_globals):
6595
6976
  endpoint=g_param[OptionsDefine.Endpoint],
6596
6977
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6597
6978
  )
6598
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6979
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6599
6980
  if g_param[OptionsDefine.Language]:
6600
6981
  profile.language = g_param[OptionsDefine.Language]
6601
6982
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6635,7 +7016,10 @@ def doDescribeMessageDataStats(args, parsed_globals):
6635
7016
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6636
7017
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6637
7018
  )
6638
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7019
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7020
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7021
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7022
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6639
7023
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6640
7024
  else:
6641
7025
  cred = credential.Credential(
@@ -6647,7 +7031,7 @@ def doDescribeMessageDataStats(args, parsed_globals):
6647
7031
  endpoint=g_param[OptionsDefine.Endpoint],
6648
7032
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6649
7033
  )
6650
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7034
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6651
7035
  if g_param[OptionsDefine.Language]:
6652
7036
  profile.language = g_param[OptionsDefine.Language]
6653
7037
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6687,7 +7071,10 @@ def doDeleteCloudStorageEvent(args, parsed_globals):
6687
7071
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6688
7072
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6689
7073
  )
6690
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7074
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7075
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7076
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7077
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6691
7078
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6692
7079
  else:
6693
7080
  cred = credential.Credential(
@@ -6699,7 +7086,7 @@ def doDeleteCloudStorageEvent(args, parsed_globals):
6699
7086
  endpoint=g_param[OptionsDefine.Endpoint],
6700
7087
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6701
7088
  )
6702
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7089
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6703
7090
  if g_param[OptionsDefine.Language]:
6704
7091
  profile.language = g_param[OptionsDefine.Language]
6705
7092
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6739,7 +7126,10 @@ def doDisableDevice(args, parsed_globals):
6739
7126
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6740
7127
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6741
7128
  )
6742
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7129
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7130
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7131
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7132
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6743
7133
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6744
7134
  else:
6745
7135
  cred = credential.Credential(
@@ -6751,7 +7141,7 @@ def doDisableDevice(args, parsed_globals):
6751
7141
  endpoint=g_param[OptionsDefine.Endpoint],
6752
7142
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6753
7143
  )
6754
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7144
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6755
7145
  if g_param[OptionsDefine.Language]:
6756
7146
  profile.language = g_param[OptionsDefine.Language]
6757
7147
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6791,7 +7181,10 @@ def doCreateDeviceChannel(args, parsed_globals):
6791
7181
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6792
7182
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6793
7183
  )
6794
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7184
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7185
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7186
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7187
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6795
7188
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6796
7189
  else:
6797
7190
  cred = credential.Credential(
@@ -6803,7 +7196,7 @@ def doCreateDeviceChannel(args, parsed_globals):
6803
7196
  endpoint=g_param[OptionsDefine.Endpoint],
6804
7197
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6805
7198
  )
6806
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7199
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6807
7200
  if g_param[OptionsDefine.Language]:
6808
7201
  profile.language = g_param[OptionsDefine.Language]
6809
7202
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6843,7 +7236,10 @@ def doRunTestOtaVersion(args, parsed_globals):
6843
7236
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6844
7237
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6845
7238
  )
6846
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7239
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7240
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7241
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7242
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6847
7243
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6848
7244
  else:
6849
7245
  cred = credential.Credential(
@@ -6855,7 +7251,7 @@ def doRunTestOtaVersion(args, parsed_globals):
6855
7251
  endpoint=g_param[OptionsDefine.Endpoint],
6856
7252
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6857
7253
  )
6858
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7254
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6859
7255
  if g_param[OptionsDefine.Language]:
6860
7256
  profile.language = g_param[OptionsDefine.Language]
6861
7257
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6895,7 +7291,10 @@ def doDescribeP2PInfo(args, parsed_globals):
6895
7291
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6896
7292
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6897
7293
  )
6898
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7294
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7295
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7296
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7297
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6899
7298
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6900
7299
  else:
6901
7300
  cred = credential.Credential(
@@ -6907,7 +7306,7 @@ def doDescribeP2PInfo(args, parsed_globals):
6907
7306
  endpoint=g_param[OptionsDefine.Endpoint],
6908
7307
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6909
7308
  )
6910
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7309
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6911
7310
  if g_param[OptionsDefine.Language]:
6912
7311
  profile.language = g_param[OptionsDefine.Language]
6913
7312
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6947,7 +7346,10 @@ def doCreateIotDataType(args, parsed_globals):
6947
7346
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6948
7347
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6949
7348
  )
6950
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7349
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7350
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7351
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7352
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6951
7353
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6952
7354
  else:
6953
7355
  cred = credential.Credential(
@@ -6959,7 +7361,7 @@ def doCreateIotDataType(args, parsed_globals):
6959
7361
  endpoint=g_param[OptionsDefine.Endpoint],
6960
7362
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6961
7363
  )
6962
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7364
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6963
7365
  if g_param[OptionsDefine.Language]:
6964
7366
  profile.language = g_param[OptionsDefine.Language]
6965
7367
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6999,7 +7401,10 @@ def doCreateAnonymousAccessToken(args, parsed_globals):
6999
7401
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7000
7402
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7001
7403
  )
7002
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7404
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7405
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7406
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7407
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7003
7408
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7004
7409
  else:
7005
7410
  cred = credential.Credential(
@@ -7011,7 +7416,7 @@ def doCreateAnonymousAccessToken(args, parsed_globals):
7011
7416
  endpoint=g_param[OptionsDefine.Endpoint],
7012
7417
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7013
7418
  )
7014
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7419
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7015
7420
  if g_param[OptionsDefine.Language]:
7016
7421
  profile.language = g_param[OptionsDefine.Language]
7017
7422
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7051,7 +7456,10 @@ def doDescribeCloudStorageOrder(args, parsed_globals):
7051
7456
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7052
7457
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7053
7458
  )
7054
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7459
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7460
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7461
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7462
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7055
7463
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7056
7464
  else:
7057
7465
  cred = credential.Credential(
@@ -7063,7 +7471,7 @@ def doDescribeCloudStorageOrder(args, parsed_globals):
7063
7471
  endpoint=g_param[OptionsDefine.Endpoint],
7064
7472
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7065
7473
  )
7066
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7474
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7067
7475
  if g_param[OptionsDefine.Language]:
7068
7476
  profile.language = g_param[OptionsDefine.Language]
7069
7477
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7103,7 +7511,10 @@ def doDeleteBinding(args, parsed_globals):
7103
7511
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7104
7512
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7105
7513
  )
7106
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7514
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7515
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7516
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7517
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7107
7518
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7108
7519
  else:
7109
7520
  cred = credential.Credential(
@@ -7115,7 +7526,7 @@ def doDeleteBinding(args, parsed_globals):
7115
7526
  endpoint=g_param[OptionsDefine.Endpoint],
7116
7527
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7117
7528
  )
7118
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7529
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7119
7530
  if g_param[OptionsDefine.Language]:
7120
7531
  profile.language = g_param[OptionsDefine.Language]
7121
7532
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7155,7 +7566,10 @@ def doDescribeBalanceTransactions(args, parsed_globals):
7155
7566
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7156
7567
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7157
7568
  )
7158
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7569
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7570
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7571
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7572
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7159
7573
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7160
7574
  else:
7161
7575
  cred = credential.Credential(
@@ -7167,7 +7581,7 @@ def doDescribeBalanceTransactions(args, parsed_globals):
7167
7581
  endpoint=g_param[OptionsDefine.Endpoint],
7168
7582
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7169
7583
  )
7170
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7584
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7171
7585
  if g_param[OptionsDefine.Language]:
7172
7586
  profile.language = g_param[OptionsDefine.Language]
7173
7587
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7207,7 +7621,10 @@ def doDeleteForwardRule(args, parsed_globals):
7207
7621
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7208
7622
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7209
7623
  )
7210
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7624
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7625
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7626
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7627
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7211
7628
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7212
7629
  else:
7213
7630
  cred = credential.Credential(
@@ -7219,7 +7636,7 @@ def doDeleteForwardRule(args, parsed_globals):
7219
7636
  endpoint=g_param[OptionsDefine.Endpoint],
7220
7637
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7221
7638
  )
7222
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7639
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7223
7640
  if g_param[OptionsDefine.Language]:
7224
7641
  profile.language = g_param[OptionsDefine.Language]
7225
7642
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7259,7 +7676,10 @@ def doModifyProductDynamicRegister(args, parsed_globals):
7259
7676
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7260
7677
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7261
7678
  )
7262
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7679
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7680
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7681
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7682
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7263
7683
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7264
7684
  else:
7265
7685
  cred = credential.Credential(
@@ -7271,7 +7691,7 @@ def doModifyProductDynamicRegister(args, parsed_globals):
7271
7691
  endpoint=g_param[OptionsDefine.Endpoint],
7272
7692
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7273
7693
  )
7274
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7694
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7275
7695
  if g_param[OptionsDefine.Language]:
7276
7696
  profile.language = g_param[OptionsDefine.Language]
7277
7697
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7311,7 +7731,10 @@ def doDescribeDeviceDataHistory(args, parsed_globals):
7311
7731
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7312
7732
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7313
7733
  )
7314
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7734
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7735
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7736
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7737
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7315
7738
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7316
7739
  else:
7317
7740
  cred = credential.Credential(
@@ -7323,7 +7746,7 @@ def doDescribeDeviceDataHistory(args, parsed_globals):
7323
7746
  endpoint=g_param[OptionsDefine.Endpoint],
7324
7747
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7325
7748
  )
7326
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7749
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7327
7750
  if g_param[OptionsDefine.Language]:
7328
7751
  profile.language = g_param[OptionsDefine.Language]
7329
7752
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7363,7 +7786,10 @@ def doDeleteDevice(args, parsed_globals):
7363
7786
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7364
7787
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7365
7788
  )
7366
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7789
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7790
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7791
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7792
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7367
7793
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7368
7794
  else:
7369
7795
  cred = credential.Credential(
@@ -7375,7 +7801,7 @@ def doDeleteDevice(args, parsed_globals):
7375
7801
  endpoint=g_param[OptionsDefine.Endpoint],
7376
7802
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7377
7803
  )
7378
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7804
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7379
7805
  if g_param[OptionsDefine.Language]:
7380
7806
  profile.language = g_param[OptionsDefine.Language]
7381
7807
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7415,7 +7841,10 @@ def doDeleteAppUsr(args, parsed_globals):
7415
7841
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7416
7842
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7417
7843
  )
7418
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7844
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7845
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7846
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7847
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7419
7848
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7420
7849
  else:
7421
7850
  cred = credential.Credential(
@@ -7427,7 +7856,7 @@ def doDeleteAppUsr(args, parsed_globals):
7427
7856
  endpoint=g_param[OptionsDefine.Endpoint],
7428
7857
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7429
7858
  )
7430
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7859
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7431
7860
  if g_param[OptionsDefine.Language]:
7432
7861
  profile.language = g_param[OptionsDefine.Language]
7433
7862
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7467,7 +7896,10 @@ def doDescribeRechargeRecords(args, parsed_globals):
7467
7896
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7468
7897
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7469
7898
  )
7470
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7899
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7900
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7901
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7902
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7471
7903
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7472
7904
  else:
7473
7905
  cred = credential.Credential(
@@ -7479,7 +7911,7 @@ def doDescribeRechargeRecords(args, parsed_globals):
7479
7911
  endpoint=g_param[OptionsDefine.Endpoint],
7480
7912
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7481
7913
  )
7482
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7914
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7483
7915
  if g_param[OptionsDefine.Language]:
7484
7916
  profile.language = g_param[OptionsDefine.Language]
7485
7917
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7519,7 +7951,10 @@ def doDescribePackageConsumeTask(args, parsed_globals):
7519
7951
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7520
7952
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7521
7953
  )
7522
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7954
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
7955
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
7956
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
7957
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7523
7958
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7524
7959
  else:
7525
7960
  cred = credential.Credential(
@@ -7531,7 +7966,7 @@ def doDescribePackageConsumeTask(args, parsed_globals):
7531
7966
  endpoint=g_param[OptionsDefine.Endpoint],
7532
7967
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7533
7968
  )
7534
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7969
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7535
7970
  if g_param[OptionsDefine.Language]:
7536
7971
  profile.language = g_param[OptionsDefine.Language]
7537
7972
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7571,7 +8006,10 @@ def doCreateDevices(args, parsed_globals):
7571
8006
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7572
8007
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7573
8008
  )
7574
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8009
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8010
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8011
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8012
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7575
8013
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7576
8014
  else:
7577
8015
  cred = credential.Credential(
@@ -7583,7 +8021,7 @@ def doCreateDevices(args, parsed_globals):
7583
8021
  endpoint=g_param[OptionsDefine.Endpoint],
7584
8022
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7585
8023
  )
7586
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8024
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7587
8025
  if g_param[OptionsDefine.Language]:
7588
8026
  profile.language = g_param[OptionsDefine.Language]
7589
8027
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7623,7 +8061,10 @@ def doDescribeAccountBalance(args, parsed_globals):
7623
8061
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7624
8062
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7625
8063
  )
7626
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8064
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8065
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8066
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8067
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7627
8068
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7628
8069
  else:
7629
8070
  cred = credential.Credential(
@@ -7635,7 +8076,7 @@ def doDescribeAccountBalance(args, parsed_globals):
7635
8076
  endpoint=g_param[OptionsDefine.Endpoint],
7636
8077
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7637
8078
  )
7638
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8079
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7639
8080
  if g_param[OptionsDefine.Language]:
7640
8081
  profile.language = g_param[OptionsDefine.Language]
7641
8082
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7675,7 +8116,10 @@ def doSetForwardAuth(args, parsed_globals):
7675
8116
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7676
8117
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7677
8118
  )
7678
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8119
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8120
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8121
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8122
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7679
8123
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7680
8124
  else:
7681
8125
  cred = credential.Credential(
@@ -7687,7 +8131,7 @@ def doSetForwardAuth(args, parsed_globals):
7687
8131
  endpoint=g_param[OptionsDefine.Endpoint],
7688
8132
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7689
8133
  )
7690
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8134
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7691
8135
  if g_param[OptionsDefine.Language]:
7692
8136
  profile.language = g_param[OptionsDefine.Language]
7693
8137
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7727,7 +8171,10 @@ def doDescribeFirmwareTaskDistribution(args, parsed_globals):
7727
8171
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7728
8172
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7729
8173
  )
7730
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8174
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8175
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8176
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8177
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7731
8178
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7732
8179
  else:
7733
8180
  cred = credential.Credential(
@@ -7739,7 +8186,7 @@ def doDescribeFirmwareTaskDistribution(args, parsed_globals):
7739
8186
  endpoint=g_param[OptionsDefine.Endpoint],
7740
8187
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7741
8188
  )
7742
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8189
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7743
8190
  if g_param[OptionsDefine.Language]:
7744
8191
  profile.language = g_param[OptionsDefine.Language]
7745
8192
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7779,7 +8226,10 @@ def doDescribeIotModels(args, parsed_globals):
7779
8226
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7780
8227
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7781
8228
  )
7782
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8229
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8230
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8231
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8232
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7783
8233
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7784
8234
  else:
7785
8235
  cred = credential.Credential(
@@ -7791,7 +8241,7 @@ def doDescribeIotModels(args, parsed_globals):
7791
8241
  endpoint=g_param[OptionsDefine.Endpoint],
7792
8242
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7793
8243
  )
7794
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8244
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7795
8245
  if g_param[OptionsDefine.Language]:
7796
8246
  profile.language = g_param[OptionsDefine.Language]
7797
8247
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7831,7 +8281,10 @@ def doGenSingleDeviceSignatureOfPublic(args, parsed_globals):
7831
8281
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7832
8282
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7833
8283
  )
7834
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8284
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8285
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8286
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8287
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7835
8288
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7836
8289
  else:
7837
8290
  cred = credential.Credential(
@@ -7843,7 +8296,7 @@ def doGenSingleDeviceSignatureOfPublic(args, parsed_globals):
7843
8296
  endpoint=g_param[OptionsDefine.Endpoint],
7844
8297
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7845
8298
  )
7846
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8299
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7847
8300
  if g_param[OptionsDefine.Language]:
7848
8301
  profile.language = g_param[OptionsDefine.Language]
7849
8302
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7883,7 +8336,10 @@ def doCreateTaskFileUrl(args, parsed_globals):
7883
8336
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7884
8337
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7885
8338
  )
7886
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8339
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8340
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8341
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8342
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7887
8343
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7888
8344
  else:
7889
8345
  cred = credential.Credential(
@@ -7895,7 +8351,7 @@ def doCreateTaskFileUrl(args, parsed_globals):
7895
8351
  endpoint=g_param[OptionsDefine.Endpoint],
7896
8352
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7897
8353
  )
7898
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7899
8355
  if g_param[OptionsDefine.Language]:
7900
8356
  profile.language = g_param[OptionsDefine.Language]
7901
8357
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7935,7 +8391,10 @@ def doDescribeCloudStorageStreamData(args, parsed_globals):
7935
8391
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7936
8392
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7937
8393
  )
7938
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8394
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8395
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8396
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8397
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7939
8398
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7940
8399
  else:
7941
8400
  cred = credential.Credential(
@@ -7947,7 +8406,7 @@ def doDescribeCloudStorageStreamData(args, parsed_globals):
7947
8406
  endpoint=g_param[OptionsDefine.Endpoint],
7948
8407
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7949
8408
  )
7950
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8409
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7951
8410
  if g_param[OptionsDefine.Language]:
7952
8411
  profile.language = g_param[OptionsDefine.Language]
7953
8412
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7987,7 +8446,10 @@ def doUploadFirmware(args, parsed_globals):
7987
8446
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7988
8447
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7989
8448
  )
7990
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8449
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8450
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8451
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8452
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7991
8453
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7992
8454
  else:
7993
8455
  cred = credential.Credential(
@@ -7999,7 +8461,7 @@ def doUploadFirmware(args, parsed_globals):
7999
8461
  endpoint=g_param[OptionsDefine.Endpoint],
8000
8462
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8001
8463
  )
8002
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8464
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8003
8465
  if g_param[OptionsDefine.Language]:
8004
8466
  profile.language = g_param[OptionsDefine.Language]
8005
8467
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8039,7 +8501,10 @@ def doRunOtaVersion(args, parsed_globals):
8039
8501
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8040
8502
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8041
8503
  )
8042
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8504
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8505
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8506
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8507
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8043
8508
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8044
8509
  else:
8045
8510
  cred = credential.Credential(
@@ -8051,7 +8516,7 @@ def doRunOtaVersion(args, parsed_globals):
8051
8516
  endpoint=g_param[OptionsDefine.Endpoint],
8052
8517
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8053
8518
  )
8054
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8519
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8055
8520
  if g_param[OptionsDefine.Language]:
8056
8521
  profile.language = g_param[OptionsDefine.Language]
8057
8522
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8091,7 +8556,10 @@ def doCreateDataForward(args, parsed_globals):
8091
8556
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8092
8557
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8093
8558
  )
8094
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8559
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8560
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8561
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8562
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8095
8563
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8096
8564
  else:
8097
8565
  cred = credential.Credential(
@@ -8103,7 +8571,7 @@ def doCreateDataForward(args, parsed_globals):
8103
8571
  endpoint=g_param[OptionsDefine.Endpoint],
8104
8572
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8105
8573
  )
8106
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8574
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8107
8575
  if g_param[OptionsDefine.Language]:
8108
8576
  profile.language = g_param[OptionsDefine.Language]
8109
8577
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8143,7 +8611,10 @@ def doDescribeBonuses(args, parsed_globals):
8143
8611
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8144
8612
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8145
8613
  )
8146
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8614
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8615
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8616
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8617
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8147
8618
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8148
8619
  else:
8149
8620
  cred = credential.Credential(
@@ -8155,7 +8626,7 @@ def doDescribeBonuses(args, parsed_globals):
8155
8626
  endpoint=g_param[OptionsDefine.Endpoint],
8156
8627
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8157
8628
  )
8158
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8629
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8159
8630
  if g_param[OptionsDefine.Language]:
8160
8631
  profile.language = g_param[OptionsDefine.Language]
8161
8632
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8195,7 +8666,10 @@ def doDescribeCsReportCountDataInfo(args, parsed_globals):
8195
8666
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8196
8667
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8197
8668
  )
8198
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8669
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8670
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8671
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8672
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8199
8673
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8200
8674
  else:
8201
8675
  cred = credential.Credential(
@@ -8207,7 +8681,7 @@ def doDescribeCsReportCountDataInfo(args, parsed_globals):
8207
8681
  endpoint=g_param[OptionsDefine.Endpoint],
8208
8682
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8209
8683
  )
8210
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8684
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8211
8685
  if g_param[OptionsDefine.Language]:
8212
8686
  profile.language = g_param[OptionsDefine.Language]
8213
8687
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8247,7 +8721,10 @@ def doCreateUploadPath(args, parsed_globals):
8247
8721
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8248
8722
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8249
8723
  )
8250
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8724
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8725
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8726
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8727
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8251
8728
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8252
8729
  else:
8253
8730
  cred = credential.Credential(
@@ -8259,7 +8736,7 @@ def doCreateUploadPath(args, parsed_globals):
8259
8736
  endpoint=g_param[OptionsDefine.Endpoint],
8260
8737
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8261
8738
  )
8262
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8739
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8263
8740
  if g_param[OptionsDefine.Language]:
8264
8741
  profile.language = g_param[OptionsDefine.Language]
8265
8742
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8299,7 +8776,10 @@ def doCreateForwardRule(args, parsed_globals):
8299
8776
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8300
8777
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8301
8778
  )
8302
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8779
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8780
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8781
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8782
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8303
8783
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8304
8784
  else:
8305
8785
  cred = credential.Credential(
@@ -8311,7 +8791,7 @@ def doCreateForwardRule(args, parsed_globals):
8311
8791
  endpoint=g_param[OptionsDefine.Endpoint],
8312
8792
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8313
8793
  )
8314
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8794
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8315
8795
  if g_param[OptionsDefine.Language]:
8316
8796
  profile.language = g_param[OptionsDefine.Language]
8317
8797
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8351,7 +8831,10 @@ def doModifyModelDefinition(args, parsed_globals):
8351
8831
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8352
8832
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8353
8833
  )
8354
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8834
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8835
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8836
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8837
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8355
8838
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8356
8839
  else:
8357
8840
  cred = credential.Credential(
@@ -8363,7 +8846,7 @@ def doModifyModelDefinition(args, parsed_globals):
8363
8846
  endpoint=g_param[OptionsDefine.Endpoint],
8364
8847
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8365
8848
  )
8366
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8849
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8367
8850
  if g_param[OptionsDefine.Language]:
8368
8851
  profile.language = g_param[OptionsDefine.Language]
8369
8852
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8403,7 +8886,10 @@ def doApplyAIModel(args, parsed_globals):
8403
8886
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8404
8887
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8405
8888
  )
8406
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8889
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8890
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8891
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8892
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8407
8893
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8408
8894
  else:
8409
8895
  cred = credential.Credential(
@@ -8415,7 +8901,7 @@ def doApplyAIModel(args, parsed_globals):
8415
8901
  endpoint=g_param[OptionsDefine.Endpoint],
8416
8902
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8417
8903
  )
8418
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8904
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8419
8905
  if g_param[OptionsDefine.Language]:
8420
8906
  profile.language = g_param[OptionsDefine.Language]
8421
8907
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8455,7 +8941,10 @@ def doBindCloudStorageUser(args, parsed_globals):
8455
8941
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8456
8942
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8457
8943
  )
8458
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8944
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
8945
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
8946
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
8947
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8459
8948
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8460
8949
  else:
8461
8950
  cred = credential.Credential(
@@ -8467,7 +8956,7 @@ def doBindCloudStorageUser(args, parsed_globals):
8467
8956
  endpoint=g_param[OptionsDefine.Endpoint],
8468
8957
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8469
8958
  )
8470
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8959
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8471
8960
  if g_param[OptionsDefine.Language]:
8472
8961
  profile.language = g_param[OptionsDefine.Language]
8473
8962
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8507,7 +8996,10 @@ def doDescribeDevices(args, parsed_globals):
8507
8996
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8508
8997
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8509
8998
  )
8510
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8999
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
9000
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
9001
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
9002
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8511
9003
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8512
9004
  else:
8513
9005
  cred = credential.Credential(
@@ -8519,7 +9011,7 @@ def doDescribeDevices(args, parsed_globals):
8519
9011
  endpoint=g_param[OptionsDefine.Endpoint],
8520
9012
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8521
9013
  )
8522
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9014
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8523
9015
  if g_param[OptionsDefine.Language]:
8524
9016
  profile.language = g_param[OptionsDefine.Language]
8525
9017
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8559,7 +9051,10 @@ def doDescribeBindDev(args, parsed_globals):
8559
9051
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8560
9052
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8561
9053
  )
8562
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
9054
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
9055
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
9056
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
9057
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8563
9058
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8564
9059
  else:
8565
9060
  cred = credential.Credential(
@@ -8571,7 +9066,7 @@ def doDescribeBindDev(args, parsed_globals):
8571
9066
  endpoint=g_param[OptionsDefine.Endpoint],
8572
9067
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8573
9068
  )
8574
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9069
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8575
9070
  if g_param[OptionsDefine.Language]:
8576
9071
  profile.language = g_param[OptionsDefine.Language]
8577
9072
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8611,7 +9106,10 @@ def doModifyDeviceProperty(args, parsed_globals):
8611
9106
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8612
9107
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8613
9108
  )
8614
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
9109
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
9110
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
9111
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
9112
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8615
9113
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8616
9114
  else:
8617
9115
  cred = credential.Credential(
@@ -8623,7 +9121,7 @@ def doModifyDeviceProperty(args, parsed_globals):
8623
9121
  endpoint=g_param[OptionsDefine.Endpoint],
8624
9122
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8625
9123
  )
8626
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9124
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8627
9125
  if g_param[OptionsDefine.Language]:
8628
9126
  profile.language = g_param[OptionsDefine.Language]
8629
9127
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -8663,7 +9161,10 @@ def doDescribeCloudStoragePackageConsumeDetails(args, parsed_globals):
8663
9161
  g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8664
9162
  g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8665
9163
  )
8666
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
9164
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
9165
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
9166
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
9167
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
8667
9168
  cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8668
9169
  else:
8669
9170
  cred = credential.Credential(
@@ -8675,7 +9176,7 @@ def doDescribeCloudStoragePackageConsumeDetails(args, parsed_globals):
8675
9176
  endpoint=g_param[OptionsDefine.Endpoint],
8676
9177
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8677
9178
  )
8678
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9179
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
8679
9180
  if g_param[OptionsDefine.Language]:
8680
9181
  profile.language = g_param[OptionsDefine.Language]
8681
9182
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]