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.
- tccli/__init__.py +1 -1
- tccli/command.py +0 -1
- tccli/configure.py +11 -1
- tccli/services/__init__.py +3 -0
- tccli/services/aa/aa_client.py +13 -1
- tccli/services/aai/aai_client.py +13 -1
- tccli/services/acp/acp_client.py +13 -1
- tccli/services/advisor/advisor_client.py +13 -1
- tccli/services/af/af_client.py +13 -1
- tccli/services/af/v20200226/api.json +2 -2
- tccli/services/afc/afc_client.py +13 -1
- tccli/services/aiart/aiart_client.py +13 -1
- tccli/services/ame/ame_client.py +13 -1
- tccli/services/ams/ams_client.py +13 -1
- tccli/services/anicloud/anicloud_client.py +13 -1
- tccli/services/antiddos/antiddos_client.py +13 -1
- tccli/services/apcas/apcas_client.py +13 -1
- tccli/services/ape/ape_client.py +13 -1
- tccli/services/api/api_client.py +13 -1
- tccli/services/apigateway/apigateway_client.py +13 -1
- tccli/services/apm/apm_client.py +13 -1
- tccli/services/asr/asr_client.py +13 -1
- tccli/services/asw/asw_client.py +13 -1
- tccli/services/autoscaling/autoscaling_client.py +13 -1
- tccli/services/ba/ba_client.py +13 -1
- tccli/services/batch/batch_client.py +13 -1
- tccli/services/bda/bda_client.py +13 -1
- tccli/services/bh/bh_client.py +13 -1
- tccli/services/bi/bi_client.py +13 -1
- tccli/services/billing/billing_client.py +13 -1
- tccli/services/billing/v20180709/api.json +176 -181
- tccli/services/billing/v20180709/examples.json +7 -7
- tccli/services/bizlive/bizlive_client.py +13 -1
- tccli/services/bm/bm_client.py +13 -1
- tccli/services/bma/bma_client.py +13 -1
- tccli/services/bmeip/bmeip_client.py +13 -1
- tccli/services/bmlb/bmlb_client.py +13 -1
- tccli/services/bmvpc/bmvpc_client.py +13 -1
- tccli/services/bpaas/bpaas_client.py +13 -1
- tccli/services/bri/bri_client.py +13 -1
- tccli/services/bsca/bsca_client.py +13 -1
- tccli/services/btoe/btoe_client.py +13 -1
- tccli/services/ca/ca_client.py +13 -1
- tccli/services/cam/cam_client.py +13 -1
- tccli/services/captcha/captcha_client.py +13 -1
- tccli/services/car/car_client.py +13 -1
- tccli/services/cat/cat_client.py +13 -1
- tccli/services/cbs/cbs_client.py +13 -1
- tccli/services/ccc/ccc_client.py +13 -1
- tccli/services/cdb/cdb_client.py +13 -1
- tccli/services/cdc/cdc_client.py +13 -1
- tccli/services/cdn/cdn_client.py +13 -1
- tccli/services/cds/cds_client.py +13 -1
- tccli/services/cdwch/cdwch_client.py +13 -1
- tccli/services/cdwdoris/cdwdoris_client.py +13 -1
- tccli/services/cdwpg/cdwpg_client.py +13 -1
- tccli/services/cdz/cdz_client.py +13 -1
- tccli/services/cfg/cfg_client.py +13 -1
- tccli/services/cfs/cfs_client.py +13 -1
- tccli/services/cfw/cfw_client.py +13 -1
- tccli/services/chdfs/chdfs_client.py +13 -1
- tccli/services/ciam/ciam_client.py +13 -1
- tccli/services/cii/cii_client.py +13 -1
- tccli/services/cim/cim_client.py +13 -1
- tccli/services/cis/cis_client.py +13 -1
- tccli/services/ckafka/ckafka_client.py +13 -1
- tccli/services/ckafka/v20190819/api.json +7 -7
- tccli/services/clb/clb_client.py +13 -1
- tccli/services/clb/v20180317/api.json +12 -12
- tccli/services/cloudapp/cloudapp_client.py +13 -1
- tccli/services/cloudaudit/cloudaudit_client.py +13 -1
- tccli/services/cloudhsm/cloudhsm_client.py +13 -1
- tccli/services/cloudstudio/cloudstudio_client.py +13 -1
- tccli/services/cls/cls_client.py +13 -1
- tccli/services/cme/cme_client.py +13 -1
- tccli/services/cmq/cmq_client.py +13 -1
- tccli/services/cms/cms_client.py +13 -1
- tccli/services/config/config_client.py +13 -1
- tccli/services/controlcenter/controlcenter_client.py +13 -1
- tccli/services/cpdp/cpdp_client.py +13 -1
- tccli/services/csip/csip_client.py +13 -1
- tccli/services/csxg/csxg_client.py +13 -1
- tccli/services/cvm/cvm_client.py +13 -1
- tccli/services/cwp/cwp_client.py +13 -1
- tccli/services/cwp/v20180228/api.json +1 -1
- tccli/services/cws/cws_client.py +13 -1
- tccli/services/cynosdb/cynosdb_client.py +13 -1
- tccli/services/dasb/dasb_client.py +13 -1
- tccli/services/dataintegration/dataintegration_client.py +13 -1
- tccli/services/dayu/dayu_client.py +13 -1
- tccli/services/dbbrain/dbbrain_client.py +13 -1
- tccli/services/dbdc/dbdc_client.py +13 -1
- tccli/services/dc/dc_client.py +13 -1
- tccli/services/dcdb/dcdb_client.py +13 -1
- tccli/services/dlc/dlc_client.py +13 -1
- tccli/services/dnspod/dnspod_client.py +13 -1
- tccli/services/domain/domain_client.py +13 -1
- tccli/services/drm/drm_client.py +13 -1
- tccli/services/ds/ds_client.py +13 -1
- tccli/services/dsgc/dsgc_client.py +13 -1
- tccli/services/dtf/dtf_client.py +13 -1
- tccli/services/dts/dts_client.py +13 -1
- tccli/services/eb/eb_client.py +13 -1
- tccli/services/ecc/ecc_client.py +13 -1
- tccli/services/ecdn/ecdn_client.py +13 -1
- tccli/services/ecm/ecm_client.py +13 -1
- tccli/services/eiam/eiam_client.py +13 -1
- tccli/services/eis/eis_client.py +13 -1
- tccli/services/emr/emr_client.py +13 -1
- tccli/services/es/es_client.py +13 -1
- tccli/services/es/v20180416/examples.json +2 -2
- tccli/services/ess/ess_client.py +13 -1
- tccli/services/ess/v20201111/api.json +9 -0
- tccli/services/essbasic/essbasic_client.py +13 -1
- tccli/services/essbasic/v20210526/api.json +9 -0
- tccli/services/facefusion/facefusion_client.py +13 -1
- tccli/services/faceid/faceid_client.py +13 -1
- tccli/services/faceid/v20180301/api.json +2 -2
- tccli/services/fmu/fmu_client.py +13 -1
- tccli/services/ft/ft_client.py +13 -1
- tccli/services/gaap/gaap_client.py +13 -1
- tccli/services/gme/gme_client.py +13 -1
- tccli/services/goosefs/goosefs_client.py +13 -1
- tccli/services/gpm/gpm_client.py +13 -1
- tccli/services/gs/gs_client.py +13 -1
- tccli/services/gse/gse_client.py +13 -1
- tccli/services/gwlb/gwlb_client.py +13 -1
- tccli/services/habo/habo_client.py +13 -1
- tccli/services/hai/hai_client.py +13 -1
- tccli/services/hasim/hasim_client.py +13 -1
- tccli/services/hcm/hcm_client.py +13 -1
- tccli/services/hunyuan/hunyuan_client.py +13 -1
- tccli/services/iai/iai_client.py +13 -1
- tccli/services/iai/v20180301/api.json +17 -13
- tccli/services/iai/v20200303/examples.json +200 -200
- tccli/services/iap/__init__.py +4 -0
- tccli/services/iap/iap_client.py +472 -0
- tccli/services/iap/v20240713/api.json +471 -0
- tccli/services/iap/v20240713/examples.json +59 -0
- tccli/services/ic/ic_client.py +13 -1
- tccli/services/icr/icr_client.py +13 -1
- tccli/services/ie/ie_client.py +13 -1
- tccli/services/iecp/iecp_client.py +13 -1
- tccli/services/ig/ig_client.py +13 -1
- tccli/services/iir/iir_client.py +13 -1
- tccli/services/ims/ims_client.py +13 -1
- tccli/services/ioa/ioa_client.py +13 -1
- tccli/services/iot/iot_client.py +13 -1
- tccli/services/iotcloud/iotcloud_client.py +13 -1
- tccli/services/iotexplorer/iotexplorer_client.py +13 -1
- tccli/services/iottid/iottid_client.py +13 -1
- tccli/services/iotvideo/iotvideo_client.py +13 -1
- tccli/services/iotvideoindustry/iotvideoindustry_client.py +13 -1
- tccli/services/irp/irp_client.py +13 -1
- tccli/services/iss/iss_client.py +13 -1
- tccli/services/ivld/ivld_client.py +13 -1
- tccli/services/keewidb/keewidb_client.py +13 -1
- tccli/services/kms/kms_client.py +13 -1
- tccli/services/lcic/lcic_client.py +13 -1
- tccli/services/lcic/v20220817/api.json +3 -3
- tccli/services/lighthouse/lighthouse_client.py +13 -1
- tccli/services/live/live_client.py +441 -5
- tccli/services/live/v20180801/api.json +1070 -68
- tccli/services/live/v20180801/examples.json +64 -0
- tccli/services/lke/lke_client.py +13 -1
- tccli/services/lowcode/lowcode_client.py +13 -1
- tccli/services/lp/lp_client.py +13 -1
- tccli/services/mall/mall_client.py +13 -1
- tccli/services/mariadb/mariadb_client.py +13 -1
- tccli/services/market/market_client.py +13 -1
- tccli/services/market/v20191010/api.json +4 -4
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/memcached/memcached_client.py +13 -1
- tccli/services/mgobe/mgobe_client.py +13 -1
- tccli/services/mmps/mmps_client.py +13 -1
- tccli/services/mna/mna_client.py +13 -1
- tccli/services/mongodb/mongodb_client.py +13 -1
- tccli/services/monitor/monitor_client.py +13 -1
- tccli/services/mps/mps_client.py +13 -1
- tccli/services/mps/v20190612/api.json +20 -0
- tccli/services/mqtt/mqtt_client.py +13 -1
- tccli/services/mrs/mrs_client.py +13 -1
- tccli/services/ms/ms_client.py +13 -1
- tccli/services/msp/msp_client.py +13 -1
- tccli/services/mvj/mvj_client.py +13 -1
- tccli/services/nlp/nlp_client.py +13 -1
- tccli/services/npp/npp_client.py +13 -1
- tccli/services/oceanus/oceanus_client.py +13 -1
- tccli/services/ocr/ocr_client.py +13 -1
- tccli/services/omics/omics_client.py +13 -1
- tccli/services/organization/organization_client.py +13 -1
- tccli/services/partners/partners_client.py +13 -1
- tccli/services/partners/v20180321/api.json +4 -4
- tccli/services/pds/pds_client.py +13 -1
- tccli/services/postgres/postgres_client.py +13 -1
- tccli/services/privatedns/privatedns_client.py +13 -1
- tccli/services/pts/pts_client.py +13 -1
- tccli/services/pts/v20210728/api.json +3 -0
- tccli/services/rce/rce_client.py +13 -1
- tccli/services/redis/redis_client.py +13 -1
- tccli/services/redis/v20180412/api.json +169 -163
- tccli/services/redis/v20180412/examples.json +3 -3
- tccli/services/region/region_client.py +13 -1
- tccli/services/rkp/rkp_client.py +13 -1
- tccli/services/rp/rp_client.py +13 -1
- tccli/services/rum/rum_client.py +13 -1
- tccli/services/scf/scf_client.py +13 -1
- tccli/services/ses/ses_client.py +13 -1
- tccli/services/smh/smh_client.py +13 -1
- tccli/services/smop/smop_client.py +13 -1
- tccli/services/smpn/smpn_client.py +13 -1
- tccli/services/sms/sms_client.py +13 -1
- tccli/services/soe/soe_client.py +13 -1
- tccli/services/solar/solar_client.py +13 -1
- tccli/services/sqlserver/sqlserver_client.py +13 -1
- tccli/services/ssa/ssa_client.py +13 -1
- tccli/services/ssl/ssl_client.py +13 -1
- tccli/services/sslpod/sslpod_client.py +13 -1
- tccli/services/ssm/ssm_client.py +13 -1
- tccli/services/sts/sts_client.py +13 -1
- tccli/services/svp/svp_client.py +13 -1
- tccli/services/svp/v20240125/api.json +27 -27
- tccli/services/svp/v20240125/examples.json +1 -1
- tccli/services/taf/taf_client.py +13 -1
- tccli/services/tag/tag_client.py +13 -1
- tccli/services/tan/tan_client.py +13 -1
- tccli/services/tat/tat_client.py +13 -1
- tccli/services/tat/v20201028/api.json +5 -5
- tccli/services/tav/tav_client.py +13 -1
- tccli/services/tbaas/tbaas_client.py +13 -1
- tccli/services/tbm/tbm_client.py +13 -1
- tccli/services/tbp/tbp_client.py +13 -1
- tccli/services/tcaplusdb/tcaplusdb_client.py +13 -1
- tccli/services/tcb/tcb_client.py +13 -1
- tccli/services/tcbr/tcbr_client.py +13 -1
- tccli/services/tcex/tcex_client.py +13 -1
- tccli/services/tchd/tchd_client.py +13 -1
- tccli/services/tci/tci_client.py +13 -1
- tccli/services/tcm/tcm_client.py +13 -1
- tccli/services/tcr/tcr_client.py +13 -1
- tccli/services/tcss/tcss_client.py +13 -1
- tccli/services/tdcpg/tdcpg_client.py +13 -1
- tccli/services/tdid/tdid_client.py +13 -1
- tccli/services/tdmq/tdmq_client.py +13 -1
- tccli/services/tdmq/v20200217/api.json +1 -1
- tccli/services/tds/tds_client.py +13 -1
- tccli/services/tem/tem_client.py +13 -1
- tccli/services/teo/teo_client.py +13 -1
- tccli/services/thpc/thpc_client.py +13 -1
- tccli/services/tia/tia_client.py +13 -1
- tccli/services/tic/tic_client.py +13 -1
- tccli/services/ticm/ticm_client.py +13 -1
- tccli/services/tics/tics_client.py +13 -1
- tccli/services/tiems/tiems_client.py +13 -1
- tccli/services/tiia/tiia_client.py +13 -1
- tccli/services/tione/tione_client.py +13 -1
- tccli/services/tiw/tiw_client.py +13 -1
- tccli/services/tke/tke_client.py +13 -1
- tccli/services/tke/v20220501/api.json +2 -2
- tccli/services/tkgdq/tkgdq_client.py +13 -1
- tccli/services/tms/tms_client.py +13 -1
- tccli/services/tmt/tmt_client.py +13 -1
- tccli/services/tourism/tourism_client.py +13 -1
- tccli/services/trdp/trdp_client.py +13 -1
- tccli/services/trocket/trocket_client.py +13 -1
- tccli/services/trp/trp_client.py +13 -1
- tccli/services/trro/trro_client.py +13 -1
- tccli/services/trtc/trtc_client.py +13 -1
- tccli/services/tse/tse_client.py +13 -1
- tccli/services/tse/v20201207/api.json +199 -12
- tccli/services/tsf/tsf_client.py +13 -1
- tccli/services/tsi/tsi_client.py +13 -1
- tccli/services/tsw/tsw_client.py +13 -1
- tccli/services/tts/tts_client.py +13 -1
- tccli/services/ump/ump_client.py +13 -1
- tccli/services/vcg/v20240404/api.json +1 -1
- tccli/services/vcg/v20240404/examples.json +4 -4
- tccli/services/vcg/vcg_client.py +13 -1
- tccli/services/vclm/vclm_client.py +13 -1
- tccli/services/vdb/vdb_client.py +13 -1
- tccli/services/vm/vm_client.py +13 -1
- tccli/services/vms/vms_client.py +13 -1
- tccli/services/vod/vod_client.py +13 -1
- tccli/services/vpc/v20170312/api.json +492 -66
- tccli/services/vpc/v20170312/examples.json +59 -21
- tccli/services/vpc/vpc_client.py +225 -1
- tccli/services/vrs/vrs_client.py +13 -1
- tccli/services/vtc/vtc_client.py +13 -1
- tccli/services/waf/waf_client.py +13 -1
- tccli/services/wav/wav_client.py +13 -1
- tccli/services/wedata/wedata_client.py +13 -1
- tccli/services/weilingwith/weilingwith_client.py +13 -1
- tccli/services/wss/wss_client.py +13 -1
- tccli/services/yinsuda/yinsuda_client.py +13 -1
- tccli/services/youmall/youmall_client.py +13 -1
- tccli/services/yunjing/yunjing_client.py +13 -1
- tccli/services/yunsou/yunsou_client.py +13 -1
- tccli/utils.py +8 -0
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/RECORD +303 -299
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1217.1.dist-info → tccli-3.0.1219.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/drm/drm_client.py
CHANGED
@@ -626,7 +626,13 @@ def action_caller():
|
|
626
626
|
|
627
627
|
def parse_global_arg(parsed_globals):
|
628
628
|
g_param = parsed_globals
|
629
|
-
|
629
|
+
cvm_role_flag = True
|
630
|
+
for param in parsed_globals.keys():
|
631
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
632
|
+
OptionsDefine.RoleSessionName]:
|
633
|
+
if parsed_globals[param] is not None:
|
634
|
+
cvm_role_flag = False
|
635
|
+
break
|
630
636
|
is_exist_profile = True
|
631
637
|
if not parsed_globals["profile"]:
|
632
638
|
is_exist_profile = False
|
@@ -657,6 +663,7 @@ def parse_global_arg(parsed_globals):
|
|
657
663
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
658
664
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
659
665
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
666
|
+
cvm_role_flag = False
|
660
667
|
|
661
668
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
662
669
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -664,6 +671,11 @@ def parse_global_arg(parsed_globals):
|
|
664
671
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
665
672
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
666
673
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
674
|
+
cvm_role_flag = False
|
675
|
+
|
676
|
+
if cvm_role_flag:
|
677
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
678
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
667
679
|
|
668
680
|
for param in g_param.keys():
|
669
681
|
if g_param[param] is None:
|
tccli/services/ds/ds_client.py
CHANGED
@@ -679,7 +679,13 @@ def action_caller():
|
|
679
679
|
|
680
680
|
def parse_global_arg(parsed_globals):
|
681
681
|
g_param = parsed_globals
|
682
|
-
|
682
|
+
cvm_role_flag = True
|
683
|
+
for param in parsed_globals.keys():
|
684
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
685
|
+
OptionsDefine.RoleSessionName]:
|
686
|
+
if parsed_globals[param] is not None:
|
687
|
+
cvm_role_flag = False
|
688
|
+
break
|
683
689
|
is_exist_profile = True
|
684
690
|
if not parsed_globals["profile"]:
|
685
691
|
is_exist_profile = False
|
@@ -710,6 +716,7 @@ def parse_global_arg(parsed_globals):
|
|
710
716
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
711
717
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
712
718
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
719
|
+
cvm_role_flag = False
|
713
720
|
|
714
721
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
715
722
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -717,6 +724,11 @@ def parse_global_arg(parsed_globals):
|
|
717
724
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
718
725
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
719
726
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
727
|
+
cvm_role_flag = False
|
728
|
+
|
729
|
+
if cvm_role_flag:
|
730
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
731
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
720
732
|
|
721
733
|
for param in g_param.keys():
|
722
734
|
if g_param[param] is None:
|
@@ -7887,7 +7887,13 @@ def action_caller():
|
|
7887
7887
|
|
7888
7888
|
def parse_global_arg(parsed_globals):
|
7889
7889
|
g_param = parsed_globals
|
7890
|
-
|
7890
|
+
cvm_role_flag = True
|
7891
|
+
for param in parsed_globals.keys():
|
7892
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
7893
|
+
OptionsDefine.RoleSessionName]:
|
7894
|
+
if parsed_globals[param] is not None:
|
7895
|
+
cvm_role_flag = False
|
7896
|
+
break
|
7891
7897
|
is_exist_profile = True
|
7892
7898
|
if not parsed_globals["profile"]:
|
7893
7899
|
is_exist_profile = False
|
@@ -7918,6 +7924,7 @@ def parse_global_arg(parsed_globals):
|
|
7918
7924
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
7919
7925
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
7920
7926
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
7927
|
+
cvm_role_flag = False
|
7921
7928
|
|
7922
7929
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
7923
7930
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -7925,6 +7932,11 @@ def parse_global_arg(parsed_globals):
|
|
7925
7932
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
7926
7933
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
7927
7934
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
7935
|
+
cvm_role_flag = False
|
7936
|
+
|
7937
|
+
if cvm_role_flag:
|
7938
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
7939
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
7928
7940
|
|
7929
7941
|
for param in g_param.keys():
|
7930
7942
|
if g_param[param] is None:
|
tccli/services/dtf/dtf_client.py
CHANGED
@@ -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:
|
tccli/services/dts/dts_client.py
CHANGED
@@ -4447,7 +4447,13 @@ def action_caller():
|
|
4447
4447
|
|
4448
4448
|
def parse_global_arg(parsed_globals):
|
4449
4449
|
g_param = parsed_globals
|
4450
|
-
|
4450
|
+
cvm_role_flag = True
|
4451
|
+
for param in parsed_globals.keys():
|
4452
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
4453
|
+
OptionsDefine.RoleSessionName]:
|
4454
|
+
if parsed_globals[param] is not None:
|
4455
|
+
cvm_role_flag = False
|
4456
|
+
break
|
4451
4457
|
is_exist_profile = True
|
4452
4458
|
if not parsed_globals["profile"]:
|
4453
4459
|
is_exist_profile = False
|
@@ -4478,6 +4484,7 @@ def parse_global_arg(parsed_globals):
|
|
4478
4484
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
4479
4485
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
4480
4486
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
4487
|
+
cvm_role_flag = False
|
4481
4488
|
|
4482
4489
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
4483
4490
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -4485,6 +4492,11 @@ def parse_global_arg(parsed_globals):
|
|
4485
4492
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
4486
4493
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
4487
4494
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
4495
|
+
cvm_role_flag = False
|
4496
|
+
|
4497
|
+
if cvm_role_flag:
|
4498
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
4499
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
4488
4500
|
|
4489
4501
|
for param in g_param.keys():
|
4490
4502
|
if g_param[param] is None:
|
tccli/services/eb/eb_client.py
CHANGED
@@ -1739,7 +1739,13 @@ def action_caller():
|
|
1739
1739
|
|
1740
1740
|
def parse_global_arg(parsed_globals):
|
1741
1741
|
g_param = parsed_globals
|
1742
|
-
|
1742
|
+
cvm_role_flag = True
|
1743
|
+
for param in parsed_globals.keys():
|
1744
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
1745
|
+
OptionsDefine.RoleSessionName]:
|
1746
|
+
if parsed_globals[param] is not None:
|
1747
|
+
cvm_role_flag = False
|
1748
|
+
break
|
1743
1749
|
is_exist_profile = True
|
1744
1750
|
if not parsed_globals["profile"]:
|
1745
1751
|
is_exist_profile = False
|
@@ -1770,6 +1776,7 @@ def parse_global_arg(parsed_globals):
|
|
1770
1776
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
1771
1777
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
1772
1778
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
1779
|
+
cvm_role_flag = False
|
1773
1780
|
|
1774
1781
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
1775
1782
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -1777,6 +1784,11 @@ def parse_global_arg(parsed_globals):
|
|
1777
1784
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
1778
1785
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
1779
1786
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
1787
|
+
cvm_role_flag = False
|
1788
|
+
|
1789
|
+
if cvm_role_flag:
|
1790
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
1791
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
1780
1792
|
|
1781
1793
|
for param in g_param.keys():
|
1782
1794
|
if g_param[param] is None:
|
tccli/services/ecc/ecc_client.py
CHANGED
@@ -255,7 +255,13 @@ def action_caller():
|
|
255
255
|
|
256
256
|
def parse_global_arg(parsed_globals):
|
257
257
|
g_param = parsed_globals
|
258
|
-
|
258
|
+
cvm_role_flag = True
|
259
|
+
for param in parsed_globals.keys():
|
260
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
261
|
+
OptionsDefine.RoleSessionName]:
|
262
|
+
if parsed_globals[param] is not None:
|
263
|
+
cvm_role_flag = False
|
264
|
+
break
|
259
265
|
is_exist_profile = True
|
260
266
|
if not parsed_globals["profile"]:
|
261
267
|
is_exist_profile = False
|
@@ -286,6 +292,7 @@ def parse_global_arg(parsed_globals):
|
|
286
292
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
287
293
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
288
294
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
295
|
+
cvm_role_flag = False
|
289
296
|
|
290
297
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
291
298
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -293,6 +300,11 @@ def parse_global_arg(parsed_globals):
|
|
293
300
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
294
301
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
295
302
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
303
|
+
cvm_role_flag = False
|
304
|
+
|
305
|
+
if cvm_role_flag:
|
306
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
307
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
296
308
|
|
297
309
|
for param in g_param.keys():
|
298
310
|
if g_param[param] is None:
|
@@ -891,7 +891,13 @@ def action_caller():
|
|
891
891
|
|
892
892
|
def parse_global_arg(parsed_globals):
|
893
893
|
g_param = parsed_globals
|
894
|
-
|
894
|
+
cvm_role_flag = True
|
895
|
+
for param in parsed_globals.keys():
|
896
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
897
|
+
OptionsDefine.RoleSessionName]:
|
898
|
+
if parsed_globals[param] is not None:
|
899
|
+
cvm_role_flag = False
|
900
|
+
break
|
895
901
|
is_exist_profile = True
|
896
902
|
if not parsed_globals["profile"]:
|
897
903
|
is_exist_profile = False
|
@@ -922,6 +928,7 @@ def parse_global_arg(parsed_globals):
|
|
922
928
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
923
929
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
924
930
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
931
|
+
cvm_role_flag = False
|
925
932
|
|
926
933
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
927
934
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -929,6 +936,11 @@ def parse_global_arg(parsed_globals):
|
|
929
936
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
930
937
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
931
938
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
939
|
+
cvm_role_flag = False
|
940
|
+
|
941
|
+
if cvm_role_flag:
|
942
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
943
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
932
944
|
|
933
945
|
for param in g_param.keys():
|
934
946
|
if g_param[param] is None:
|
tccli/services/ecm/ecm_client.py
CHANGED
@@ -7410,7 +7410,13 @@ def action_caller():
|
|
7410
7410
|
|
7411
7411
|
def parse_global_arg(parsed_globals):
|
7412
7412
|
g_param = parsed_globals
|
7413
|
-
|
7413
|
+
cvm_role_flag = True
|
7414
|
+
for param in parsed_globals.keys():
|
7415
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
7416
|
+
OptionsDefine.RoleSessionName]:
|
7417
|
+
if parsed_globals[param] is not None:
|
7418
|
+
cvm_role_flag = False
|
7419
|
+
break
|
7414
7420
|
is_exist_profile = True
|
7415
7421
|
if not parsed_globals["profile"]:
|
7416
7422
|
is_exist_profile = False
|
@@ -7441,6 +7447,7 @@ def parse_global_arg(parsed_globals):
|
|
7441
7447
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
7442
7448
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
7443
7449
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
7450
|
+
cvm_role_flag = False
|
7444
7451
|
|
7445
7452
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
7446
7453
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -7448,6 +7455,11 @@ def parse_global_arg(parsed_globals):
|
|
7448
7455
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
7449
7456
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
7450
7457
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
7458
|
+
cvm_role_flag = False
|
7459
|
+
|
7460
|
+
if cvm_role_flag:
|
7461
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
7462
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
7451
7463
|
|
7452
7464
|
for param in g_param.keys():
|
7453
7465
|
if g_param[param] is None:
|
@@ -2269,7 +2269,13 @@ def action_caller():
|
|
2269
2269
|
|
2270
2270
|
def parse_global_arg(parsed_globals):
|
2271
2271
|
g_param = parsed_globals
|
2272
|
-
|
2272
|
+
cvm_role_flag = True
|
2273
|
+
for param in parsed_globals.keys():
|
2274
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
2275
|
+
OptionsDefine.RoleSessionName]:
|
2276
|
+
if parsed_globals[param] is not None:
|
2277
|
+
cvm_role_flag = False
|
2278
|
+
break
|
2273
2279
|
is_exist_profile = True
|
2274
2280
|
if not parsed_globals["profile"]:
|
2275
2281
|
is_exist_profile = False
|
@@ -2300,6 +2306,7 @@ def parse_global_arg(parsed_globals):
|
|
2300
2306
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
2301
2307
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
2302
2308
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
2309
|
+
cvm_role_flag = False
|
2303
2310
|
|
2304
2311
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
2305
2312
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -2307,6 +2314,11 @@ def parse_global_arg(parsed_globals):
|
|
2307
2314
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
2308
2315
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
2309
2316
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
2317
|
+
cvm_role_flag = False
|
2318
|
+
|
2319
|
+
if cvm_role_flag:
|
2320
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
2321
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
2310
2322
|
|
2311
2323
|
for param in g_param.keys():
|
2312
2324
|
if g_param[param] is None:
|
tccli/services/eis/eis_client.py
CHANGED
@@ -472,7 +472,13 @@ def action_caller():
|
|
472
472
|
|
473
473
|
def parse_global_arg(parsed_globals):
|
474
474
|
g_param = parsed_globals
|
475
|
-
|
475
|
+
cvm_role_flag = True
|
476
|
+
for param in parsed_globals.keys():
|
477
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
478
|
+
OptionsDefine.RoleSessionName]:
|
479
|
+
if parsed_globals[param] is not None:
|
480
|
+
cvm_role_flag = False
|
481
|
+
break
|
476
482
|
is_exist_profile = True
|
477
483
|
if not parsed_globals["profile"]:
|
478
484
|
is_exist_profile = False
|
@@ -503,6 +509,7 @@ def parse_global_arg(parsed_globals):
|
|
503
509
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
504
510
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
505
511
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
512
|
+
cvm_role_flag = False
|
506
513
|
|
507
514
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
508
515
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -510,6 +517,11 @@ def parse_global_arg(parsed_globals):
|
|
510
517
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
511
518
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
512
519
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
520
|
+
cvm_role_flag = False
|
521
|
+
|
522
|
+
if cvm_role_flag:
|
523
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
524
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
513
525
|
|
514
526
|
for param in g_param.keys():
|
515
527
|
if g_param[param] is None:
|
tccli/services/emr/emr_client.py
CHANGED
@@ -3488,7 +3488,13 @@ def action_caller():
|
|
3488
3488
|
|
3489
3489
|
def parse_global_arg(parsed_globals):
|
3490
3490
|
g_param = parsed_globals
|
3491
|
-
|
3491
|
+
cvm_role_flag = True
|
3492
|
+
for param in parsed_globals.keys():
|
3493
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
3494
|
+
OptionsDefine.RoleSessionName]:
|
3495
|
+
if parsed_globals[param] is not None:
|
3496
|
+
cvm_role_flag = False
|
3497
|
+
break
|
3492
3498
|
is_exist_profile = True
|
3493
3499
|
if not parsed_globals["profile"]:
|
3494
3500
|
is_exist_profile = False
|
@@ -3519,6 +3525,7 @@ def parse_global_arg(parsed_globals):
|
|
3519
3525
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
3520
3526
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
3521
3527
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
3528
|
+
cvm_role_flag = False
|
3522
3529
|
|
3523
3530
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
3524
3531
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -3526,6 +3533,11 @@ def parse_global_arg(parsed_globals):
|
|
3526
3533
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
3527
3534
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
3528
3535
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
3536
|
+
cvm_role_flag = False
|
3537
|
+
|
3538
|
+
if cvm_role_flag:
|
3539
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
3540
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
3529
3541
|
|
3530
3542
|
for param in g_param.keys():
|
3531
3543
|
if g_param[param] is None:
|
tccli/services/es/es_client.py
CHANGED
@@ -3276,7 +3276,13 @@ def action_caller():
|
|
3276
3276
|
|
3277
3277
|
def parse_global_arg(parsed_globals):
|
3278
3278
|
g_param = parsed_globals
|
3279
|
-
|
3279
|
+
cvm_role_flag = True
|
3280
|
+
for param in parsed_globals.keys():
|
3281
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
3282
|
+
OptionsDefine.RoleSessionName]:
|
3283
|
+
if parsed_globals[param] is not None:
|
3284
|
+
cvm_role_flag = False
|
3285
|
+
break
|
3280
3286
|
is_exist_profile = True
|
3281
3287
|
if not parsed_globals["profile"]:
|
3282
3288
|
is_exist_profile = False
|
@@ -3307,6 +3313,7 @@ def parse_global_arg(parsed_globals):
|
|
3307
3313
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
3308
3314
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
3309
3315
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
3316
|
+
cvm_role_flag = False
|
3310
3317
|
|
3311
3318
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
3312
3319
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -3314,6 +3321,11 @@ def parse_global_arg(parsed_globals):
|
|
3314
3321
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
3315
3322
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
3316
3323
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
3324
|
+
cvm_role_flag = False
|
3325
|
+
|
3326
|
+
if cvm_role_flag:
|
3327
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
3328
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
3317
3329
|
|
3318
3330
|
for param in g_param.keys():
|
3319
3331
|
if g_param[param] is None:
|
@@ -156,7 +156,7 @@
|
|
156
156
|
{
|
157
157
|
"document": "查询实例最新的主日志",
|
158
158
|
"input": "https://es.tencentcloudapi.com/?Action=DescribeInstanceLogs\r\n&InstanceId=es-f5mwm28u\r\n&<公共请求参数>",
|
159
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:
|
159
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdcxxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8axxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
160
160
|
"title": "查询ES集群日志"
|
161
161
|
}
|
162
162
|
],
|
@@ -188,7 +188,7 @@
|
|
188
188
|
{
|
189
189
|
"document": "",
|
190
190
|
"input": "https://es.tencentcloudapi.com/?Action=DescribeLogstashInstanceLogs\n&InstanceId=ls-f5mwm28u\n&<公共请求参数>",
|
191
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"12123141441\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:
|
191
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"12123141441\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdcxxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"NodeID\": \"12123141442\",\n \"Ip\": \"10.0.128.65\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8axxxabc, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
192
192
|
"title": "获取Logstash实例日志"
|
193
193
|
}
|
194
194
|
],
|
tccli/services/ess/ess_client.py
CHANGED
@@ -5025,7 +5025,13 @@ def action_caller():
|
|
5025
5025
|
|
5026
5026
|
def parse_global_arg(parsed_globals):
|
5027
5027
|
g_param = parsed_globals
|
5028
|
-
|
5028
|
+
cvm_role_flag = True
|
5029
|
+
for param in parsed_globals.keys():
|
5030
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
5031
|
+
OptionsDefine.RoleSessionName]:
|
5032
|
+
if parsed_globals[param] is not None:
|
5033
|
+
cvm_role_flag = False
|
5034
|
+
break
|
5029
5035
|
is_exist_profile = True
|
5030
5036
|
if not parsed_globals["profile"]:
|
5031
5037
|
is_exist_profile = False
|
@@ -5056,6 +5062,7 @@ def parse_global_arg(parsed_globals):
|
|
5056
5062
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
5057
5063
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
5058
5064
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
5065
|
+
cvm_role_flag = False
|
5059
5066
|
|
5060
5067
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
5061
5068
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -5063,6 +5070,11 @@ def parse_global_arg(parsed_globals):
|
|
5063
5070
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
5064
5071
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
5065
5072
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
5073
|
+
cvm_role_flag = False
|
5074
|
+
|
5075
|
+
if cvm_role_flag:
|
5076
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
5077
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
5066
5078
|
|
5067
5079
|
for param in g_param.keys():
|
5068
5080
|
if g_param[param] is None:
|
@@ -2835,6 +2835,15 @@
|
|
2835
2835
|
"name": "FlowBatchUrlInfo",
|
2836
2836
|
"required": false,
|
2837
2837
|
"type": "object"
|
2838
|
+
},
|
2839
|
+
{
|
2840
|
+
"disabled": false,
|
2841
|
+
"document": "签署完成后是否自动回跳\n<ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>\n\n注: \n1. 该参数<font color=\"red\">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效\n2. <font color=\"red\">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)\n3. <font color=\"red\">电子签小程序跳转贵方APP,不支持自动跳转,必需用户手动点击完成按钮(微信的限制)</font> ",
|
2842
|
+
"example": "false",
|
2843
|
+
"member": "bool",
|
2844
|
+
"name": "AutoJumpBack",
|
2845
|
+
"required": false,
|
2846
|
+
"type": "bool"
|
2838
2847
|
}
|
2839
2848
|
],
|
2840
2849
|
"type": "object"
|
@@ -7150,7 +7150,13 @@ def action_caller():
|
|
7150
7150
|
|
7151
7151
|
def parse_global_arg(parsed_globals):
|
7152
7152
|
g_param = parsed_globals
|
7153
|
-
|
7153
|
+
cvm_role_flag = True
|
7154
|
+
for param in parsed_globals.keys():
|
7155
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
7156
|
+
OptionsDefine.RoleSessionName]:
|
7157
|
+
if parsed_globals[param] is not None:
|
7158
|
+
cvm_role_flag = False
|
7159
|
+
break
|
7154
7160
|
is_exist_profile = True
|
7155
7161
|
if not parsed_globals["profile"]:
|
7156
7162
|
is_exist_profile = False
|
@@ -7181,6 +7187,7 @@ def parse_global_arg(parsed_globals):
|
|
7181
7187
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
7182
7188
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
7183
7189
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
7190
|
+
cvm_role_flag = False
|
7184
7191
|
|
7185
7192
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
7186
7193
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -7188,6 +7195,11 @@ def parse_global_arg(parsed_globals):
|
|
7188
7195
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
7189
7196
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
7190
7197
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
7198
|
+
cvm_role_flag = False
|
7199
|
+
|
7200
|
+
if cvm_role_flag:
|
7201
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
7202
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
7191
7203
|
|
7192
7204
|
for param in g_param.keys():
|
7193
7205
|
if g_param[param] is None:
|
@@ -1865,6 +1865,15 @@
|
|
1865
1865
|
"name": "OrganizationOpenId",
|
1866
1866
|
"required": false,
|
1867
1867
|
"type": "string"
|
1868
|
+
},
|
1869
|
+
{
|
1870
|
+
"disabled": false,
|
1871
|
+
"document": "签署完成后是否自动回跳\n<ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>\n\n注: \n1. 该参数<font color=\"red\">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效\n2. <font color=\"red\">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)\n3. <font color=\"red\">电子签小程序跳转贵方APP,不支持自动跳转,必需用户手动点击完成按钮(微信的限制)</font> ",
|
1872
|
+
"example": "false",
|
1873
|
+
"member": "bool",
|
1874
|
+
"name": "AutoJumpBack",
|
1875
|
+
"required": false,
|
1876
|
+
"type": "bool"
|
1868
1877
|
}
|
1869
1878
|
],
|
1870
1879
|
"type": "object"
|
@@ -260,7 +260,13 @@ def action_caller():
|
|
260
260
|
|
261
261
|
def parse_global_arg(parsed_globals):
|
262
262
|
g_param = parsed_globals
|
263
|
-
|
263
|
+
cvm_role_flag = True
|
264
|
+
for param in parsed_globals.keys():
|
265
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
266
|
+
OptionsDefine.RoleSessionName]:
|
267
|
+
if parsed_globals[param] is not None:
|
268
|
+
cvm_role_flag = False
|
269
|
+
break
|
264
270
|
is_exist_profile = True
|
265
271
|
if not parsed_globals["profile"]:
|
266
272
|
is_exist_profile = False
|
@@ -291,6 +297,7 @@ def parse_global_arg(parsed_globals):
|
|
291
297
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
292
298
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
293
299
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
300
|
+
cvm_role_flag = False
|
294
301
|
|
295
302
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
296
303
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -298,6 +305,11 @@ def parse_global_arg(parsed_globals):
|
|
298
305
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
299
306
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
300
307
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
308
|
+
cvm_role_flag = False
|
309
|
+
|
310
|
+
if cvm_role_flag:
|
311
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
312
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
301
313
|
|
302
314
|
for param in g_param.keys():
|
303
315
|
if g_param[param] is None:
|