tccli 3.0.1217.1__py2.py3-none-any.whl → 3.0.1219.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/command.py +0 -1
  3. tccli/configure.py +11 -1
  4. tccli/services/__init__.py +3 -0
  5. tccli/services/aa/aa_client.py +13 -1
  6. tccli/services/aai/aai_client.py +13 -1
  7. tccli/services/acp/acp_client.py +13 -1
  8. tccli/services/advisor/advisor_client.py +13 -1
  9. tccli/services/af/af_client.py +13 -1
  10. tccli/services/af/v20200226/api.json +2 -2
  11. tccli/services/afc/afc_client.py +13 -1
  12. tccli/services/aiart/aiart_client.py +13 -1
  13. tccli/services/ame/ame_client.py +13 -1
  14. tccli/services/ams/ams_client.py +13 -1
  15. tccli/services/anicloud/anicloud_client.py +13 -1
  16. tccli/services/antiddos/antiddos_client.py +13 -1
  17. tccli/services/apcas/apcas_client.py +13 -1
  18. tccli/services/ape/ape_client.py +13 -1
  19. tccli/services/api/api_client.py +13 -1
  20. tccli/services/apigateway/apigateway_client.py +13 -1
  21. tccli/services/apm/apm_client.py +13 -1
  22. tccli/services/asr/asr_client.py +13 -1
  23. tccli/services/asw/asw_client.py +13 -1
  24. tccli/services/autoscaling/autoscaling_client.py +13 -1
  25. tccli/services/ba/ba_client.py +13 -1
  26. tccli/services/batch/batch_client.py +13 -1
  27. tccli/services/bda/bda_client.py +13 -1
  28. tccli/services/bh/bh_client.py +13 -1
  29. tccli/services/bi/bi_client.py +13 -1
  30. tccli/services/billing/billing_client.py +13 -1
  31. tccli/services/billing/v20180709/api.json +176 -181
  32. tccli/services/billing/v20180709/examples.json +7 -7
  33. tccli/services/bizlive/bizlive_client.py +13 -1
  34. tccli/services/bm/bm_client.py +13 -1
  35. tccli/services/bma/bma_client.py +13 -1
  36. tccli/services/bmeip/bmeip_client.py +13 -1
  37. tccli/services/bmlb/bmlb_client.py +13 -1
  38. tccli/services/bmvpc/bmvpc_client.py +13 -1
  39. tccli/services/bpaas/bpaas_client.py +13 -1
  40. tccli/services/bri/bri_client.py +13 -1
  41. tccli/services/bsca/bsca_client.py +13 -1
  42. tccli/services/btoe/btoe_client.py +13 -1
  43. tccli/services/ca/ca_client.py +13 -1
  44. tccli/services/cam/cam_client.py +13 -1
  45. tccli/services/captcha/captcha_client.py +13 -1
  46. tccli/services/car/car_client.py +13 -1
  47. tccli/services/cat/cat_client.py +13 -1
  48. tccli/services/cbs/cbs_client.py +13 -1
  49. tccli/services/ccc/ccc_client.py +13 -1
  50. tccli/services/cdb/cdb_client.py +13 -1
  51. tccli/services/cdc/cdc_client.py +13 -1
  52. tccli/services/cdn/cdn_client.py +13 -1
  53. tccli/services/cds/cds_client.py +13 -1
  54. tccli/services/cdwch/cdwch_client.py +13 -1
  55. tccli/services/cdwdoris/cdwdoris_client.py +13 -1
  56. tccli/services/cdwpg/cdwpg_client.py +13 -1
  57. tccli/services/cdz/cdz_client.py +13 -1
  58. tccli/services/cfg/cfg_client.py +13 -1
  59. tccli/services/cfs/cfs_client.py +13 -1
  60. tccli/services/cfw/cfw_client.py +13 -1
  61. tccli/services/chdfs/chdfs_client.py +13 -1
  62. tccli/services/ciam/ciam_client.py +13 -1
  63. tccli/services/cii/cii_client.py +13 -1
  64. tccli/services/cim/cim_client.py +13 -1
  65. tccli/services/cis/cis_client.py +13 -1
  66. tccli/services/ckafka/ckafka_client.py +13 -1
  67. tccli/services/ckafka/v20190819/api.json +7 -7
  68. tccli/services/clb/clb_client.py +13 -1
  69. tccli/services/clb/v20180317/api.json +12 -12
  70. tccli/services/cloudapp/cloudapp_client.py +13 -1
  71. tccli/services/cloudaudit/cloudaudit_client.py +13 -1
  72. tccli/services/cloudhsm/cloudhsm_client.py +13 -1
  73. tccli/services/cloudstudio/cloudstudio_client.py +13 -1
  74. tccli/services/cls/cls_client.py +13 -1
  75. tccli/services/cme/cme_client.py +13 -1
  76. tccli/services/cmq/cmq_client.py +13 -1
  77. tccli/services/cms/cms_client.py +13 -1
  78. tccli/services/config/config_client.py +13 -1
  79. tccli/services/controlcenter/controlcenter_client.py +13 -1
  80. tccli/services/cpdp/cpdp_client.py +13 -1
  81. tccli/services/csip/csip_client.py +13 -1
  82. tccli/services/csxg/csxg_client.py +13 -1
  83. tccli/services/cvm/cvm_client.py +13 -1
  84. tccli/services/cwp/cwp_client.py +13 -1
  85. tccli/services/cwp/v20180228/api.json +1 -1
  86. tccli/services/cws/cws_client.py +13 -1
  87. tccli/services/cynosdb/cynosdb_client.py +13 -1
  88. tccli/services/dasb/dasb_client.py +13 -1
  89. tccli/services/dataintegration/dataintegration_client.py +13 -1
  90. tccli/services/dayu/dayu_client.py +13 -1
  91. tccli/services/dbbrain/dbbrain_client.py +13 -1
  92. tccli/services/dbdc/dbdc_client.py +13 -1
  93. tccli/services/dc/dc_client.py +13 -1
  94. tccli/services/dcdb/dcdb_client.py +13 -1
  95. tccli/services/dlc/dlc_client.py +13 -1
  96. tccli/services/dnspod/dnspod_client.py +13 -1
  97. tccli/services/domain/domain_client.py +13 -1
  98. tccli/services/drm/drm_client.py +13 -1
  99. tccli/services/ds/ds_client.py +13 -1
  100. tccli/services/dsgc/dsgc_client.py +13 -1
  101. tccli/services/dtf/dtf_client.py +13 -1
  102. tccli/services/dts/dts_client.py +13 -1
  103. tccli/services/eb/eb_client.py +13 -1
  104. tccli/services/ecc/ecc_client.py +13 -1
  105. tccli/services/ecdn/ecdn_client.py +13 -1
  106. tccli/services/ecm/ecm_client.py +13 -1
  107. tccli/services/eiam/eiam_client.py +13 -1
  108. tccli/services/eis/eis_client.py +13 -1
  109. tccli/services/emr/emr_client.py +13 -1
  110. tccli/services/es/es_client.py +13 -1
  111. tccli/services/es/v20180416/examples.json +2 -2
  112. tccli/services/ess/ess_client.py +13 -1
  113. tccli/services/ess/v20201111/api.json +9 -0
  114. tccli/services/essbasic/essbasic_client.py +13 -1
  115. tccli/services/essbasic/v20210526/api.json +9 -0
  116. tccli/services/facefusion/facefusion_client.py +13 -1
  117. tccli/services/faceid/faceid_client.py +13 -1
  118. tccli/services/faceid/v20180301/api.json +2 -2
  119. tccli/services/fmu/fmu_client.py +13 -1
  120. tccli/services/ft/ft_client.py +13 -1
  121. tccli/services/gaap/gaap_client.py +13 -1
  122. tccli/services/gme/gme_client.py +13 -1
  123. tccli/services/goosefs/goosefs_client.py +13 -1
  124. tccli/services/gpm/gpm_client.py +13 -1
  125. tccli/services/gs/gs_client.py +13 -1
  126. tccli/services/gse/gse_client.py +13 -1
  127. tccli/services/gwlb/gwlb_client.py +13 -1
  128. tccli/services/habo/habo_client.py +13 -1
  129. tccli/services/hai/hai_client.py +13 -1
  130. tccli/services/hasim/hasim_client.py +13 -1
  131. tccli/services/hcm/hcm_client.py +13 -1
  132. tccli/services/hunyuan/hunyuan_client.py +13 -1
  133. tccli/services/iai/iai_client.py +13 -1
  134. tccli/services/iai/v20180301/api.json +17 -13
  135. tccli/services/iai/v20200303/examples.json +200 -200
  136. tccli/services/iap/__init__.py +4 -0
  137. tccli/services/iap/iap_client.py +472 -0
  138. tccli/services/iap/v20240713/api.json +471 -0
  139. tccli/services/iap/v20240713/examples.json +59 -0
  140. tccli/services/ic/ic_client.py +13 -1
  141. tccli/services/icr/icr_client.py +13 -1
  142. tccli/services/ie/ie_client.py +13 -1
  143. tccli/services/iecp/iecp_client.py +13 -1
  144. tccli/services/ig/ig_client.py +13 -1
  145. tccli/services/iir/iir_client.py +13 -1
  146. tccli/services/ims/ims_client.py +13 -1
  147. tccli/services/ioa/ioa_client.py +13 -1
  148. tccli/services/iot/iot_client.py +13 -1
  149. tccli/services/iotcloud/iotcloud_client.py +13 -1
  150. tccli/services/iotexplorer/iotexplorer_client.py +13 -1
  151. tccli/services/iottid/iottid_client.py +13 -1
  152. tccli/services/iotvideo/iotvideo_client.py +13 -1
  153. tccli/services/iotvideoindustry/iotvideoindustry_client.py +13 -1
  154. tccli/services/irp/irp_client.py +13 -1
  155. tccli/services/iss/iss_client.py +13 -1
  156. tccli/services/ivld/ivld_client.py +13 -1
  157. tccli/services/keewidb/keewidb_client.py +13 -1
  158. tccli/services/kms/kms_client.py +13 -1
  159. tccli/services/lcic/lcic_client.py +13 -1
  160. tccli/services/lcic/v20220817/api.json +3 -3
  161. tccli/services/lighthouse/lighthouse_client.py +13 -1
  162. tccli/services/live/live_client.py +441 -5
  163. tccli/services/live/v20180801/api.json +1070 -68
  164. tccli/services/live/v20180801/examples.json +64 -0
  165. tccli/services/lke/lke_client.py +13 -1
  166. tccli/services/lowcode/lowcode_client.py +13 -1
  167. tccli/services/lp/lp_client.py +13 -1
  168. tccli/services/mall/mall_client.py +13 -1
  169. tccli/services/mariadb/mariadb_client.py +13 -1
  170. tccli/services/market/market_client.py +13 -1
  171. tccli/services/market/v20191010/api.json +4 -4
  172. tccli/services/market/v20191010/examples.json +2 -2
  173. tccli/services/memcached/memcached_client.py +13 -1
  174. tccli/services/mgobe/mgobe_client.py +13 -1
  175. tccli/services/mmps/mmps_client.py +13 -1
  176. tccli/services/mna/mna_client.py +13 -1
  177. tccli/services/mongodb/mongodb_client.py +13 -1
  178. tccli/services/monitor/monitor_client.py +13 -1
  179. tccli/services/mps/mps_client.py +13 -1
  180. tccli/services/mps/v20190612/api.json +20 -0
  181. tccli/services/mqtt/mqtt_client.py +13 -1
  182. tccli/services/mrs/mrs_client.py +13 -1
  183. tccli/services/ms/ms_client.py +13 -1
  184. tccli/services/msp/msp_client.py +13 -1
  185. tccli/services/mvj/mvj_client.py +13 -1
  186. tccli/services/nlp/nlp_client.py +13 -1
  187. tccli/services/npp/npp_client.py +13 -1
  188. tccli/services/oceanus/oceanus_client.py +13 -1
  189. tccli/services/ocr/ocr_client.py +13 -1
  190. tccli/services/omics/omics_client.py +13 -1
  191. tccli/services/organization/organization_client.py +13 -1
  192. tccli/services/partners/partners_client.py +13 -1
  193. tccli/services/partners/v20180321/api.json +4 -4
  194. tccli/services/pds/pds_client.py +13 -1
  195. tccli/services/postgres/postgres_client.py +13 -1
  196. tccli/services/privatedns/privatedns_client.py +13 -1
  197. tccli/services/pts/pts_client.py +13 -1
  198. tccli/services/pts/v20210728/api.json +3 -0
  199. tccli/services/rce/rce_client.py +13 -1
  200. tccli/services/redis/redis_client.py +13 -1
  201. tccli/services/redis/v20180412/api.json +169 -163
  202. tccli/services/redis/v20180412/examples.json +3 -3
  203. tccli/services/region/region_client.py +13 -1
  204. tccli/services/rkp/rkp_client.py +13 -1
  205. tccli/services/rp/rp_client.py +13 -1
  206. tccli/services/rum/rum_client.py +13 -1
  207. tccli/services/scf/scf_client.py +13 -1
  208. tccli/services/ses/ses_client.py +13 -1
  209. tccli/services/smh/smh_client.py +13 -1
  210. tccli/services/smop/smop_client.py +13 -1
  211. tccli/services/smpn/smpn_client.py +13 -1
  212. tccli/services/sms/sms_client.py +13 -1
  213. tccli/services/soe/soe_client.py +13 -1
  214. tccli/services/solar/solar_client.py +13 -1
  215. tccli/services/sqlserver/sqlserver_client.py +13 -1
  216. tccli/services/ssa/ssa_client.py +13 -1
  217. tccli/services/ssl/ssl_client.py +13 -1
  218. tccli/services/sslpod/sslpod_client.py +13 -1
  219. tccli/services/ssm/ssm_client.py +13 -1
  220. tccli/services/sts/sts_client.py +13 -1
  221. tccli/services/svp/svp_client.py +13 -1
  222. tccli/services/svp/v20240125/api.json +27 -27
  223. tccli/services/svp/v20240125/examples.json +1 -1
  224. tccli/services/taf/taf_client.py +13 -1
  225. tccli/services/tag/tag_client.py +13 -1
  226. tccli/services/tan/tan_client.py +13 -1
  227. tccli/services/tat/tat_client.py +13 -1
  228. tccli/services/tat/v20201028/api.json +5 -5
  229. tccli/services/tav/tav_client.py +13 -1
  230. tccli/services/tbaas/tbaas_client.py +13 -1
  231. tccli/services/tbm/tbm_client.py +13 -1
  232. tccli/services/tbp/tbp_client.py +13 -1
  233. tccli/services/tcaplusdb/tcaplusdb_client.py +13 -1
  234. tccli/services/tcb/tcb_client.py +13 -1
  235. tccli/services/tcbr/tcbr_client.py +13 -1
  236. tccli/services/tcex/tcex_client.py +13 -1
  237. tccli/services/tchd/tchd_client.py +13 -1
  238. tccli/services/tci/tci_client.py +13 -1
  239. tccli/services/tcm/tcm_client.py +13 -1
  240. tccli/services/tcr/tcr_client.py +13 -1
  241. tccli/services/tcss/tcss_client.py +13 -1
  242. tccli/services/tdcpg/tdcpg_client.py +13 -1
  243. tccli/services/tdid/tdid_client.py +13 -1
  244. tccli/services/tdmq/tdmq_client.py +13 -1
  245. tccli/services/tdmq/v20200217/api.json +1 -1
  246. tccli/services/tds/tds_client.py +13 -1
  247. tccli/services/tem/tem_client.py +13 -1
  248. tccli/services/teo/teo_client.py +13 -1
  249. tccli/services/thpc/thpc_client.py +13 -1
  250. tccli/services/tia/tia_client.py +13 -1
  251. tccli/services/tic/tic_client.py +13 -1
  252. tccli/services/ticm/ticm_client.py +13 -1
  253. tccli/services/tics/tics_client.py +13 -1
  254. tccli/services/tiems/tiems_client.py +13 -1
  255. tccli/services/tiia/tiia_client.py +13 -1
  256. tccli/services/tione/tione_client.py +13 -1
  257. tccli/services/tiw/tiw_client.py +13 -1
  258. tccli/services/tke/tke_client.py +13 -1
  259. tccli/services/tke/v20220501/api.json +2 -2
  260. tccli/services/tkgdq/tkgdq_client.py +13 -1
  261. tccli/services/tms/tms_client.py +13 -1
  262. tccli/services/tmt/tmt_client.py +13 -1
  263. tccli/services/tourism/tourism_client.py +13 -1
  264. tccli/services/trdp/trdp_client.py +13 -1
  265. tccli/services/trocket/trocket_client.py +13 -1
  266. tccli/services/trp/trp_client.py +13 -1
  267. tccli/services/trro/trro_client.py +13 -1
  268. tccli/services/trtc/trtc_client.py +13 -1
  269. tccli/services/tse/tse_client.py +13 -1
  270. tccli/services/tse/v20201207/api.json +199 -12
  271. tccli/services/tsf/tsf_client.py +13 -1
  272. tccli/services/tsi/tsi_client.py +13 -1
  273. tccli/services/tsw/tsw_client.py +13 -1
  274. tccli/services/tts/tts_client.py +13 -1
  275. tccli/services/ump/ump_client.py +13 -1
  276. tccli/services/vcg/v20240404/api.json +1 -1
  277. tccli/services/vcg/v20240404/examples.json +4 -4
  278. tccli/services/vcg/vcg_client.py +13 -1
  279. tccli/services/vclm/vclm_client.py +13 -1
  280. tccli/services/vdb/vdb_client.py +13 -1
  281. tccli/services/vm/vm_client.py +13 -1
  282. tccli/services/vms/vms_client.py +13 -1
  283. tccli/services/vod/vod_client.py +13 -1
  284. tccli/services/vpc/v20170312/api.json +492 -66
  285. tccli/services/vpc/v20170312/examples.json +59 -21
  286. tccli/services/vpc/vpc_client.py +225 -1
  287. tccli/services/vrs/vrs_client.py +13 -1
  288. tccli/services/vtc/vtc_client.py +13 -1
  289. tccli/services/waf/waf_client.py +13 -1
  290. tccli/services/wav/wav_client.py +13 -1
  291. tccli/services/wedata/wedata_client.py +13 -1
  292. tccli/services/weilingwith/weilingwith_client.py +13 -1
  293. tccli/services/wss/wss_client.py +13 -1
  294. tccli/services/yinsuda/yinsuda_client.py +13 -1
  295. tccli/services/youmall/youmall_client.py +13 -1
  296. tccli/services/yunjing/yunjing_client.py +13 -1
  297. tccli/services/yunsou/yunsou_client.py +13 -1
  298. tccli/utils.py +8 -0
  299. {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/METADATA +2 -2
  300. {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/RECORD +303 -299
  301. {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/WHEEL +0 -0
  302. {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/entry_points.txt +0 -0
  303. {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,471 @@
1
+ {
2
+ "actions": {
3
+ "CreateIAPUserOIDCConfig": {
4
+ "document": "创建用户OIDC配置。只能创建一个用户OIDC身份提供商,并且创建用户OIDC配置之后会自动关闭用户SAML SSO身份提供商。",
5
+ "input": "CreateIAPUserOIDCConfigRequest",
6
+ "name": "创建IAP服务OIDC配置",
7
+ "output": "CreateIAPUserOIDCConfigResponse",
8
+ "status": "online"
9
+ },
10
+ "DescribeIAPLoginSessionDuration": {
11
+ "document": "查询登录会话时长",
12
+ "input": "DescribeIAPLoginSessionDurationRequest",
13
+ "name": "查询IAP的登录会话时长",
14
+ "output": "DescribeIAPLoginSessionDurationResponse",
15
+ "status": "online"
16
+ },
17
+ "DescribeIAPUserOIDCConfig": {
18
+ "document": "查询用户OIDC配置",
19
+ "input": "DescribeIAPUserOIDCConfigRequest",
20
+ "name": "查询IAP服务OIDC配置",
21
+ "output": "DescribeIAPUserOIDCConfigResponse",
22
+ "status": "online"
23
+ },
24
+ "DisableIAPUserSSO": {
25
+ "document": "禁用用户SSO",
26
+ "input": "DisableIAPUserSSORequest",
27
+ "name": "禁用IAP服务SSO",
28
+ "output": "DisableIAPUserSSOResponse",
29
+ "status": "online"
30
+ },
31
+ "ModifyIAPLoginSessionDuration": {
32
+ "document": "修改登录会话时长",
33
+ "input": "ModifyIAPLoginSessionDurationRequest",
34
+ "name": "修改IAP登录会话时长",
35
+ "output": "ModifyIAPLoginSessionDurationResponse",
36
+ "status": "online"
37
+ },
38
+ "UpdateIAPUserOIDCConfig": {
39
+ "document": "修改用户OIDC配置",
40
+ "input": "UpdateIAPUserOIDCConfigRequest",
41
+ "name": "修改IAP服务OIDC配置",
42
+ "output": "UpdateIAPUserOIDCConfigResponse",
43
+ "status": "online"
44
+ }
45
+ },
46
+ "metadata": {
47
+ "apiVersion": "2024-07-13",
48
+ "api_brief": "IAP服务OIDC配置管理接口",
49
+ "serviceNameCN": "身份识别平台",
50
+ "serviceShortName": "iap"
51
+ },
52
+ "objects": {
53
+ "CreateIAPUserOIDCConfigRequest": {
54
+ "document": "CreateIAPUserOIDCConfig请求参数结构体",
55
+ "members": [
56
+ {
57
+ "disabled": false,
58
+ "document": "身份提供商URL。OpenID Connect身份提供商标识。对应企业IdP提供的Openid-configuration中\"issuer\"字段的值。",
59
+ "example": "https://xxx.qq.cn/oidc",
60
+ "member": "string",
61
+ "name": "IdentityUrl",
62
+ "required": true,
63
+ "type": "string"
64
+ },
65
+ {
66
+ "disabled": false,
67
+ "document": "客户端ID,在OpenID Connect身份提供商注册的客户端ID。",
68
+ "example": "61adcf00620c31e3ddbc9546",
69
+ "member": "string",
70
+ "name": "ClientId",
71
+ "required": true,
72
+ "type": "string"
73
+ },
74
+ {
75
+ "disabled": false,
76
+ "document": "授权请求Endpoint,OpenID Connect身份提供商授权地址。对应企业IdP提供的Openid-configuration中\"authorization_endpoint\"字段的值。",
77
+ "example": "https://console.authing.cn/console/get-started/61adcf00620c31e3d",
78
+ "member": "string",
79
+ "name": "AuthorizationEndpoint",
80
+ "required": true,
81
+ "type": "string"
82
+ },
83
+ {
84
+ "disabled": false,
85
+ "document": "授权请求Response type,固定值id_token",
86
+ "example": "id_token",
87
+ "member": "string",
88
+ "name": "ResponseType",
89
+ "required": true,
90
+ "type": "string"
91
+ },
92
+ {
93
+ "disabled": false,
94
+ "document": "授权请求Response mode。授权请求返回模式,form_post和fragment两种可选模式,推荐选择form_post模式。",
95
+ "example": "fragment",
96
+ "member": "string",
97
+ "name": "ResponseMode",
98
+ "required": true,
99
+ "type": "string"
100
+ },
101
+ {
102
+ "disabled": false,
103
+ "document": "映射字段名称。IdP的id_token中哪一个字段映射到子用户的用户名,通常是sub或者name字段",
104
+ "example": "sub",
105
+ "member": "string",
106
+ "name": "MappingFiled",
107
+ "required": true,
108
+ "type": "string"
109
+ },
110
+ {
111
+ "disabled": false,
112
+ "document": "签名公钥,需要base64_encode。验证OpenID Connect身份提供商ID Token签名的公钥。为了您的账号安全,建议您定期轮换签名公钥。",
113
+ "example": "无",
114
+ "member": "string",
115
+ "name": "IdentityKey",
116
+ "required": true,
117
+ "type": "string"
118
+ },
119
+ {
120
+ "disabled": false,
121
+ "document": "授权请求Scope。openid; email;profile。授权请求信息范围。默认必选openid。",
122
+ "example": "无",
123
+ "member": "string",
124
+ "name": "Scope",
125
+ "required": false,
126
+ "type": "list"
127
+ },
128
+ {
129
+ "disabled": false,
130
+ "document": "描述",
131
+ "example": "描述",
132
+ "member": "string",
133
+ "name": "Description",
134
+ "required": false,
135
+ "type": "string"
136
+ }
137
+ ],
138
+ "type": "object"
139
+ },
140
+ "CreateIAPUserOIDCConfigResponse": {
141
+ "document": "CreateIAPUserOIDCConfig返回参数结构体",
142
+ "members": [
143
+ {
144
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
145
+ "member": "string",
146
+ "name": "RequestId",
147
+ "type": "string"
148
+ }
149
+ ],
150
+ "type": "object"
151
+ },
152
+ "DescribeIAPLoginSessionDurationRequest": {
153
+ "document": "DescribeIAPLoginSessionDuration请求参数结构体",
154
+ "members": [],
155
+ "type": "object"
156
+ },
157
+ "DescribeIAPLoginSessionDurationResponse": {
158
+ "document": "DescribeIAPLoginSessionDuration返回参数结构体",
159
+ "members": [
160
+ {
161
+ "disabled": false,
162
+ "document": "登录会话时长",
163
+ "example": "172800",
164
+ "member": "int64",
165
+ "name": "Duration",
166
+ "output_required": true,
167
+ "type": "int",
168
+ "value_allowed_null": false
169
+ },
170
+ {
171
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
172
+ "member": "string",
173
+ "name": "RequestId",
174
+ "type": "string"
175
+ }
176
+ ],
177
+ "type": "object"
178
+ },
179
+ "DescribeIAPUserOIDCConfigRequest": {
180
+ "document": "DescribeIAPUserOIDCConfig请求参数结构体",
181
+ "members": [],
182
+ "type": "object"
183
+ },
184
+ "DescribeIAPUserOIDCConfigResponse": {
185
+ "document": "DescribeIAPUserOIDCConfig返回参数结构体",
186
+ "members": [
187
+ {
188
+ "disabled": false,
189
+ "document": "身份提供商类型。 13:IAP用户OIDC身份提供商",
190
+ "example": "13",
191
+ "member": "uint64",
192
+ "name": "ProviderType",
193
+ "output_required": true,
194
+ "type": "int",
195
+ "value_allowed_null": false
196
+ },
197
+ {
198
+ "disabled": false,
199
+ "document": "身份提供商URL",
200
+ "example": "1111",
201
+ "member": "string",
202
+ "name": "IdentityUrl",
203
+ "output_required": true,
204
+ "type": "string",
205
+ "value_allowed_null": false
206
+ },
207
+ {
208
+ "disabled": false,
209
+ "document": "签名公钥",
210
+ "example": "无",
211
+ "member": "string",
212
+ "name": "IdentityKey",
213
+ "output_required": true,
214
+ "type": "string",
215
+ "value_allowed_null": false
216
+ },
217
+ {
218
+ "disabled": false,
219
+ "document": "客户端id",
220
+ "example": "无",
221
+ "member": "string",
222
+ "name": "ClientId",
223
+ "output_required": true,
224
+ "type": "string",
225
+ "value_allowed_null": false
226
+ },
227
+ {
228
+ "disabled": false,
229
+ "document": "状态:0:未设置,11:已开启,2:已禁用",
230
+ "example": "1",
231
+ "member": "uint64",
232
+ "name": "Status",
233
+ "output_required": true,
234
+ "type": "int",
235
+ "value_allowed_null": false
236
+ },
237
+ {
238
+ "disabled": false,
239
+ "document": "HTTPS CA证书的验证指纹,允许英文字母和数字,每个指纹长度为40个字符,最多5个指纹。",
240
+ "example": "[\"902ef2deeb3c5b13ea4c3d5193629309e231****\"]",
241
+ "member": "string",
242
+ "name": "Fingerprints",
243
+ "output_required": false,
244
+ "type": "list",
245
+ "value_allowed_null": false
246
+ },
247
+ {
248
+ "disabled": false,
249
+ "document": "是否需要开启自动使用OIDC签名公钥,1:需要,2:不需要,默认不需要",
250
+ "example": "2",
251
+ "member": "uint64",
252
+ "name": "EnableAutoPublicKey",
253
+ "output_required": false,
254
+ "type": "int",
255
+ "value_allowed_null": false
256
+ },
257
+ {
258
+ "disabled": false,
259
+ "document": "授权请求Endpoint",
260
+ "example": "无",
261
+ "member": "string",
262
+ "name": "AuthorizationEndpoint",
263
+ "output_required": true,
264
+ "type": "string",
265
+ "value_allowed_null": false
266
+ },
267
+ {
268
+ "disabled": false,
269
+ "document": "授权请求Scope",
270
+ "example": "无",
271
+ "member": "string",
272
+ "name": "Scope",
273
+ "output_required": true,
274
+ "type": "list",
275
+ "value_allowed_null": false
276
+ },
277
+ {
278
+ "disabled": false,
279
+ "document": "授权请求Response type",
280
+ "example": "无",
281
+ "member": "string",
282
+ "name": "ResponseType",
283
+ "output_required": true,
284
+ "type": "string",
285
+ "value_allowed_null": false
286
+ },
287
+ {
288
+ "disabled": false,
289
+ "document": "授权请求Response mode",
290
+ "example": "无",
291
+ "member": "string",
292
+ "name": "ResponseMode",
293
+ "output_required": true,
294
+ "type": "string",
295
+ "value_allowed_null": false
296
+ },
297
+ {
298
+ "disabled": false,
299
+ "document": "映射字段名称",
300
+ "example": "无",
301
+ "member": "string",
302
+ "name": "MappingFiled",
303
+ "output_required": true,
304
+ "type": "string",
305
+ "value_allowed_null": false
306
+ },
307
+ {
308
+ "disabled": false,
309
+ "document": "描述",
310
+ "example": "无",
311
+ "member": "string",
312
+ "name": "Description",
313
+ "output_required": true,
314
+ "type": "string",
315
+ "value_allowed_null": false
316
+ },
317
+ {
318
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
319
+ "member": "string",
320
+ "name": "RequestId",
321
+ "type": "string"
322
+ }
323
+ ],
324
+ "type": "object"
325
+ },
326
+ "DisableIAPUserSSORequest": {
327
+ "document": "DisableIAPUserSSO请求参数结构体",
328
+ "members": [],
329
+ "type": "object"
330
+ },
331
+ "DisableIAPUserSSOResponse": {
332
+ "document": "DisableIAPUserSSO返回参数结构体",
333
+ "members": [
334
+ {
335
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
336
+ "member": "string",
337
+ "name": "RequestId",
338
+ "type": "string"
339
+ }
340
+ ],
341
+ "type": "object"
342
+ },
343
+ "ModifyIAPLoginSessionDurationRequest": {
344
+ "document": "ModifyIAPLoginSessionDuration请求参数结构体",
345
+ "members": [
346
+ {
347
+ "disabled": false,
348
+ "document": "登录会话时长",
349
+ "example": "172800",
350
+ "member": "int64",
351
+ "name": "Duration",
352
+ "required": true,
353
+ "type": "int"
354
+ }
355
+ ],
356
+ "type": "object"
357
+ },
358
+ "ModifyIAPLoginSessionDurationResponse": {
359
+ "document": "ModifyIAPLoginSessionDuration返回参数结构体",
360
+ "members": [
361
+ {
362
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
363
+ "member": "string",
364
+ "name": "RequestId",
365
+ "type": "string"
366
+ }
367
+ ],
368
+ "type": "object"
369
+ },
370
+ "UpdateIAPUserOIDCConfigRequest": {
371
+ "document": "UpdateIAPUserOIDCConfig请求参数结构体",
372
+ "members": [
373
+ {
374
+ "disabled": false,
375
+ "document": "身份提供商URL。OpenID Connect身份提供商标识。对应企业IdP提供的Openid-configuration中\"issuer\"字段的值。",
376
+ "example": "https://xxx.qq.cn/oidc",
377
+ "member": "string",
378
+ "name": "IdentityUrl",
379
+ "required": true,
380
+ "type": "string"
381
+ },
382
+ {
383
+ "disabled": false,
384
+ "document": "客户端ID,在OpenID Connect身份提供商注册的客户端ID。",
385
+ "example": "61adcf00620c31e3ddbc9546",
386
+ "member": "string",
387
+ "name": "ClientId",
388
+ "required": true,
389
+ "type": "string"
390
+ },
391
+ {
392
+ "disabled": false,
393
+ "document": "授权请求Endpoint,OpenID Connect身份提供商授权地址。对应企业IdP提供的Openid-configuration中\"authorization_endpoint\"字段的值。",
394
+ "example": "https://console.authing.cn/console/get-started/61adcf00620c31e3d",
395
+ "member": "string",
396
+ "name": "AuthorizationEndpoint",
397
+ "required": true,
398
+ "type": "string"
399
+ },
400
+ {
401
+ "disabled": false,
402
+ "document": "授权请求Response type,固定值id_token",
403
+ "example": "id_token",
404
+ "member": "string",
405
+ "name": "ResponseType",
406
+ "required": true,
407
+ "type": "string"
408
+ },
409
+ {
410
+ "disabled": false,
411
+ "document": "授权请求Response mode。授权请求返回模式,form_post和fragment两种可选模式,推荐选择form_post模式。",
412
+ "example": "fragment",
413
+ "member": "string",
414
+ "name": "ResponseMode",
415
+ "required": true,
416
+ "type": "string"
417
+ },
418
+ {
419
+ "disabled": false,
420
+ "document": "映射字段名称。IdP的id_token中哪一个字段映射到子用户的用户名,通常是sub或者name字段",
421
+ "example": "sub",
422
+ "member": "string",
423
+ "name": "MappingFiled",
424
+ "required": true,
425
+ "type": "string"
426
+ },
427
+ {
428
+ "disabled": false,
429
+ "document": "RSA签名公钥,JWKS格式,需要进行base64_encode。验证OpenID Connect身份提供商ID Token签名的公钥。为了您的账号安全,建议您定期轮换签名公钥。",
430
+ "example": "ewogICJ***IF0KfQ==",
431
+ "member": "string",
432
+ "name": "IdentityKey",
433
+ "required": true,
434
+ "type": "string"
435
+ },
436
+ {
437
+ "disabled": false,
438
+ "document": "授权请求Scope。openid; email;profile。授权请求信息范围。默认必选openid。",
439
+ "example": "openid",
440
+ "member": "string",
441
+ "name": "Scope",
442
+ "required": false,
443
+ "type": "list"
444
+ },
445
+ {
446
+ "disabled": false,
447
+ "document": "描述,长度为1~255个英文或中文字符,默认值为空。",
448
+ "example": "描述",
449
+ "member": "string",
450
+ "name": "Description",
451
+ "required": false,
452
+ "type": "string"
453
+ }
454
+ ],
455
+ "type": "object"
456
+ },
457
+ "UpdateIAPUserOIDCConfigResponse": {
458
+ "document": "UpdateIAPUserOIDCConfig返回参数结构体",
459
+ "members": [
460
+ {
461
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
462
+ "member": "string",
463
+ "name": "RequestId",
464
+ "type": "string"
465
+ }
466
+ ],
467
+ "type": "object"
468
+ }
469
+ },
470
+ "version": "1.0"
471
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "actions": {
3
+ "CreateIAPUserOIDCConfig": [
4
+ {
5
+ "document": "创建IAP的OIDC配置",
6
+ "input": "POST / HTTP/1.1\nHost: iap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateIAPUserOIDCConfig\n<公共请求参数>\n\n{\n \"IdentityUrl\": \"https://accounts.g**gle.com\",\n \"ClientId\": \"47***4801-pu***e7tj.apps.g**gleusercontent.com\",\n \"AuthorizationEndpoint\": \"https://accounts.g**gle.com/o/oauth2/v2/auth\",\n \"ResponseType\": \"id_token\",\n \"ResponseMode\": \"form_post\",\n \"MappingFiled\": \"email\",\n \"IdentityKey\": \"ewogICAgImtleXMiOiBb*******gICBdCn0=\",\n \"Scope\": [\n \"openid\",\n \"email\",\n \"profile\"\n ],\n \"Description\": \"111\"\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3ccecfc6-14a0-4aaa-bcf4-0d5b77835bfb\"\n }\n}",
8
+ "title": "创建IAP的OIDC配置"
9
+ }
10
+ ],
11
+ "DescribeIAPLoginSessionDuration": [
12
+ {
13
+ "document": "查询登录有效时长",
14
+ "input": "POST / HTTP/1.1\nHost: iap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIAPLoginSessionDuration\n<公共请求参数>\n\n{}",
15
+ "output": "{\n \"Response\": {\n \"Duration\": 10000,\n \"RequestId\": \"4ad66203-95eb-41cf-b011-af9c9be78e49\"\n }\n}",
16
+ "title": "查询登录有效时长"
17
+ },
18
+ {
19
+ "document": "查询登录会话时长",
20
+ "input": "POST / HTTP/1.1\nHost: iap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIAPLoginSessionDuration\n<公共请求参数>\n\n{}",
21
+ "output": "{\n \"Response\": {\n \"Duration\": 10000,\n \"RequestId\": \"4ad66203-95eb-41cf-b011-af9c9be78e49\"\n }\n}",
22
+ "title": "查询登录会话时长"
23
+ }
24
+ ],
25
+ "DescribeIAPUserOIDCConfig": [
26
+ {
27
+ "document": "查询IAP的OIDC配置",
28
+ "input": "POST / HTTP/1.1\nHost: iap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIAPUserOIDCConfig\n<公共请求参数>\n\n{}",
29
+ "output": "{\n \"Response\": {\n \"AuthorizationEndpoint\": \"https://accounts.g**gle.com/o/oauth2/v2/auth\",\n \"ClientId\": \"47***01-pu1e*****7tj.apps.g**gleusercontent.com\",\n \"Description\": \"222\",\n \"IdentityKey\": \"ewogICAgImtletVUkttZ0I***GTHVVRUJkdyIKICAgICAgICB9CiAgICBdCn0=\",\n \"IdentityUrl\": \"https://accounts.g**gle.com\",\n \"MappingFiled\": \"email\",\n \"ProviderType\": 13,\n \"RequestId\": \"f87e5dab-426a-4a50-ac5b-1c08151cd6a2\",\n \"ResponseMode\": \"form_post\",\n \"ResponseType\": \"id_token\",\n \"Scope\": [\n \"openid\",\n \"email\",\n \"profile\"\n ],\n \"Status\": 2\n }\n}",
30
+ "title": "查询IAP的OIDC配置"
31
+ }
32
+ ],
33
+ "DisableIAPUserSSO": [
34
+ {
35
+ "document": "禁用IAP",
36
+ "input": "POST / HTTP/1.1\nHost: iap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DisableIAPUserSSO\n<公共请求参数>\n\n{}",
37
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0054eaee-a5f7-4c53-9288-f4f06488fc94\"\n }\n}",
38
+ "title": "禁用IAP"
39
+ }
40
+ ],
41
+ "ModifyIAPLoginSessionDuration": [
42
+ {
43
+ "document": "设置登录会话时长",
44
+ "input": "POST / HTTP/1.1\nHost: iap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyIAPLoginSessionDuration\n<公共请求参数>\n\n{\n \"Duration\": 3600\n}",
45
+ "output": "{\n \"Response\": {\n \"RequestId\": \"27211afb-4f91-4473-bf32-1b73ac5c37f8\"\n }\n}",
46
+ "title": "设置登录会话时长"
47
+ }
48
+ ],
49
+ "UpdateIAPUserOIDCConfig": [
50
+ {
51
+ "document": "修改IAP的OIDC配置",
52
+ "input": "POST / HTTP/1.1\nHost: iap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateIAPUserOIDCConfig\n<公共请求参数>\n\n{\n \"IdentityUrl\": \"https://accounts.g**gle.com\",\n \"ClientId\": \"47***01-pu***mvj4lj1de7tj.apps.g**gleusercontent.com\",\n \"AuthorizationEndpoint\": \"https://accounts.g**gle.com/o/oauth2/v2/auth\",\n \"ResponseType\": \"id_token\",\n \"ResponseMode\": \"form_post\",\n \"MappingFiled\": \"email\",\n \"IdentityKey\": \"ewogICAgImtle***xkd09GTHVVRUJkdyIKICAgICAgICB9CiAgICBdCn0=\",\n \"Scope\": [\n \"openid\",\n \"email\",\n \"profile\"\n ],\n \"Description\": \"1\"\n}",
53
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b83e3152-6d18-4617-986d-ff4c666750ed\"\n }\n}",
54
+ "title": "修改IAP的OIDC配置"
55
+ }
56
+ ]
57
+ },
58
+ "version": "1.0"
59
+ }
@@ -520,7 +520,13 @@ def action_caller():
520
520
 
521
521
  def parse_global_arg(parsed_globals):
522
522
  g_param = parsed_globals
523
-
523
+ cvm_role_flag = True
524
+ for param in parsed_globals.keys():
525
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
526
+ OptionsDefine.RoleSessionName]:
527
+ if parsed_globals[param] is not None:
528
+ cvm_role_flag = False
529
+ break
524
530
  is_exist_profile = True
525
531
  if not parsed_globals["profile"]:
526
532
  is_exist_profile = False
@@ -551,6 +557,7 @@ def parse_global_arg(parsed_globals):
551
557
  cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
552
558
  cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
553
559
  cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
560
+ cvm_role_flag = False
554
561
 
555
562
  if os.environ.get(OptionsDefine.ENV_REGION):
556
563
  conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
@@ -558,6 +565,11 @@ def parse_global_arg(parsed_globals):
558
565
  if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
559
566
  cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
560
567
  cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
568
+ cvm_role_flag = False
569
+
570
+ if cvm_role_flag:
571
+ if "type" in cred and cred["type"] == "cvm-role":
572
+ g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
561
573
 
562
574
  for param in g_param.keys():
563
575
  if g_param[param] is None:
@@ -96,7 +96,13 @@ def action_caller():
96
96
 
97
97
  def parse_global_arg(parsed_globals):
98
98
  g_param = parsed_globals
99
-
99
+ cvm_role_flag = True
100
+ for param in parsed_globals.keys():
101
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
102
+ OptionsDefine.RoleSessionName]:
103
+ if parsed_globals[param] is not None:
104
+ cvm_role_flag = False
105
+ break
100
106
  is_exist_profile = True
101
107
  if not parsed_globals["profile"]:
102
108
  is_exist_profile = False
@@ -127,6 +133,7 @@ def parse_global_arg(parsed_globals):
127
133
  cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
128
134
  cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
129
135
  cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
136
+ cvm_role_flag = False
130
137
 
131
138
  if os.environ.get(OptionsDefine.ENV_REGION):
132
139
  conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
@@ -134,6 +141,11 @@ def parse_global_arg(parsed_globals):
134
141
  if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
135
142
  cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
136
143
  cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
144
+ cvm_role_flag = False
145
+
146
+ if cvm_role_flag:
147
+ if "type" in cred and cred["type"] == "cvm-role":
148
+ g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
137
149
 
138
150
  for param in g_param.keys():
139
151
  if g_param[param] is None:
@@ -573,7 +573,13 @@ def action_caller():
573
573
 
574
574
  def parse_global_arg(parsed_globals):
575
575
  g_param = parsed_globals
576
-
576
+ cvm_role_flag = True
577
+ for param in parsed_globals.keys():
578
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
579
+ OptionsDefine.RoleSessionName]:
580
+ if parsed_globals[param] is not None:
581
+ cvm_role_flag = False
582
+ break
577
583
  is_exist_profile = True
578
584
  if not parsed_globals["profile"]:
579
585
  is_exist_profile = False
@@ -604,6 +610,7 @@ def parse_global_arg(parsed_globals):
604
610
  cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
605
611
  cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
606
612
  cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
613
+ cvm_role_flag = False
607
614
 
608
615
  if os.environ.get(OptionsDefine.ENV_REGION):
609
616
  conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
@@ -611,6 +618,11 @@ def parse_global_arg(parsed_globals):
611
618
  if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
612
619
  cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
613
620
  cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
621
+ cvm_role_flag = False
622
+
623
+ if cvm_role_flag:
624
+ if "type" in cred and cred["type"] == "cvm-role":
625
+ g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
614
626
 
615
627
  for param in g_param.keys():
616
628
  if g_param[param] is None:
@@ -4389,7 +4389,13 @@ def action_caller():
4389
4389
 
4390
4390
  def parse_global_arg(parsed_globals):
4391
4391
  g_param = parsed_globals
4392
-
4392
+ cvm_role_flag = True
4393
+ for param in parsed_globals.keys():
4394
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
4395
+ OptionsDefine.RoleSessionName]:
4396
+ if parsed_globals[param] is not None:
4397
+ cvm_role_flag = False
4398
+ break
4393
4399
  is_exist_profile = True
4394
4400
  if not parsed_globals["profile"]:
4395
4401
  is_exist_profile = False
@@ -4420,6 +4426,7 @@ def parse_global_arg(parsed_globals):
4420
4426
  cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
4421
4427
  cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
4422
4428
  cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
4429
+ cvm_role_flag = False
4423
4430
 
4424
4431
  if os.environ.get(OptionsDefine.ENV_REGION):
4425
4432
  conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
@@ -4427,6 +4434,11 @@ def parse_global_arg(parsed_globals):
4427
4434
  if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
4428
4435
  cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
4429
4436
  cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
4437
+ cvm_role_flag = False
4438
+
4439
+ if cvm_role_flag:
4440
+ if "type" in cred and cred["type"] == "cvm-role":
4441
+ g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
4430
4442
 
4431
4443
  for param in g_param.keys():
4432
4444
  if g_param[param] is None: