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.
- tccli/__init__.py +1 -1
- tccli/argument.py +13 -2
- tccli/main.py +0 -5
- tccli/services/__init__.py +9 -0
- tccli/services/aai/aai_client.py +20 -8
- tccli/services/aca/aca_client.py +40 -16
- tccli/services/acp/acp_client.py +40 -16
- tccli/services/advisor/advisor_client.py +10 -4
- tccli/services/af/af_client.py +15 -6
- tccli/services/afc/afc_client.py +15 -6
- tccli/services/ags/__init__.py +4 -0
- tccli/services/ags/ags_client.py +826 -0
- tccli/services/ags/v20250920/api.json +1076 -0
- tccli/services/ags/v20250920/examples.json +101 -0
- tccli/services/ai3d/ai3d_client.py +20 -114
- tccli/services/ai3d/v20250513/api.json +6 -169
- tccli/services/ai3d/v20250513/examples.json +0 -16
- tccli/services/aiart/aiart_client.py +284 -109
- tccli/services/aiart/v20221229/api.json +201 -8
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/ame/ame_client.py +155 -62
- tccli/services/ams/ams_client.py +45 -18
- tccli/services/anicloud/anicloud_client.py +15 -6
- tccli/services/antiddos/antiddos_client.py +470 -188
- tccli/services/ape/ape_client.py +40 -16
- tccli/services/api/api_client.py +15 -6
- tccli/services/apigateway/apigateway_client.py +495 -198
- tccli/services/apm/apm_client.py +742 -81
- tccli/services/apm/v20210622/api.json +3239 -1322
- tccli/services/apm/v20210622/examples.json +95 -1
- tccli/services/asr/asr_client.py +160 -64
- tccli/services/asr/v20190614/api.json +2 -2
- tccli/services/asw/asw_client.py +45 -18
- tccli/services/autoscaling/autoscaling_client.py +290 -116
- tccli/services/autoscaling/v20180419/api.json +51 -7
- tccli/services/ba/ba_client.py +15 -6
- tccli/services/batch/batch_client.py +150 -60
- tccli/services/batch/v20170312/api.json +11 -0
- tccli/services/bda/bda_client.py +40 -714
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/bh/bh_client.py +1934 -465
- tccli/services/bh/v20230418/api.json +1720 -107
- tccli/services/bh/v20230418/examples.json +188 -0
- tccli/services/bi/bi_client.py +145 -58
- tccli/services/billing/billing_client.py +310 -124
- tccli/services/billing/v20180709/api.json +18 -9
- tccli/services/billing/v20180709/examples.json +2 -2
- tccli/services/bizlive/bizlive_client.py +30 -12
- tccli/services/bm/bm_client.py +265 -106
- tccli/services/bma/bma_client.py +185 -74
- tccli/services/bmeip/bmeip_client.py +100 -40
- tccli/services/bmlb/bmlb_client.py +245 -98
- tccli/services/bmvpc/bmvpc_client.py +305 -122
- tccli/services/bpaas/bpaas_client.py +10 -4
- tccli/services/bri/bri_client.py +5 -2
- tccli/services/bsca/bsca_client.py +35 -14
- tccli/services/btoe/btoe_client.py +70 -28
- tccli/services/ca/ca_client.py +15 -6
- tccli/services/cam/cam_client.py +460 -184
- tccli/services/cam/v20190116/api.json +3 -3
- tccli/services/captcha/captcha_client.py +90 -36
- tccli/services/captcha/v20190722/api.json +4 -4
- tccli/services/captcha/v20190722/examples.json +1 -1
- tccli/services/car/car_client.py +30 -12
- tccli/services/cat/cat_client.py +70 -28
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/cbs/cbs_client.py +230 -92
- tccli/services/ccc/ccc_client.py +613 -158
- tccli/services/ccc/v20200210/api.json +406 -8
- tccli/services/ccc/v20200210/examples.json +32 -0
- tccli/services/cdb/cdb_client.py +931 -350
- tccli/services/cdb/v20170320/api.json +131 -32
- tccli/services/cdb/v20170320/examples.json +18 -10
- tccli/services/cdc/cdc_client.py +115 -46
- tccli/services/cdn/cdn_client.py +275 -110
- tccli/services/cdn/v20180606/api.json +15 -4
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cds/cds_client.py +25 -10
- tccli/services/cdwch/cdwch_client.py +145 -58
- tccli/services/cdwch/v20200915/api.json +26 -11
- tccli/services/cdwdoris/cdwdoris_client.py +300 -120
- tccli/services/cdwdoris/v20211228/api.json +11 -1
- tccli/services/cdwpg/cdwpg_client.py +120 -48
- tccli/services/cdz/cdz_client.py +10 -4
- tccli/services/cfg/cfg_client.py +85 -34
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +326 -208
- tccli/services/cfs/v20190719/api.json +199 -64
- tccli/services/cfs/v20190719/examples.json +6 -14
- tccli/services/cfw/cfw_client.py +679 -287
- tccli/services/cfw/v20190904/api.json +420 -2
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/chc/chc_client.py +190 -76
- tccli/services/chc/v20230418/api.json +77 -2
- tccli/services/chdfs/chdfs_client.py +145 -58
- tccli/services/ciam/ciam_client.py +115 -46
- tccli/services/cii/cii_client.py +65 -26
- tccli/services/cim/cim_client.py +5 -2
- tccli/services/ckafka/ckafka_client.py +837 -240
- tccli/services/ckafka/v20190819/api.json +561 -91
- tccli/services/ckafka/v20190819/examples.json +53 -5
- tccli/services/clb/clb_client.py +435 -439
- tccli/services/clb/v20180317/api.json +147 -312
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/cloudapp_client.py +10 -4
- tccli/services/cloudaudit/cloudaudit_client.py +95 -38
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/cloudhsm_client.py +70 -28
- tccli/services/cloudhsm/v20191112/api.json +37 -7
- tccli/services/cloudstudio/cloudstudio_client.py +45 -18
- tccli/services/cls/cls_client.py +843 -268
- tccli/services/cls/v20201016/api.json +1241 -68
- tccli/services/cls/v20201016/examples.json +36 -4
- tccli/services/cme/cme_client.py +250 -100
- tccli/services/cmq/cmq_client.py +10 -4
- tccli/services/cms/cms_client.py +30 -12
- tccli/services/config/config_client.py +35 -14
- tccli/services/controlcenter/controlcenter_client.py +25 -10
- tccli/services/cpdp/cpdp_client.py +1095 -438
- tccli/services/csip/csip_client.py +410 -164
- tccli/services/csip/v20221121/api.json +140 -20
- tccli/services/csip/v20221121/examples.json +10 -16
- tccli/services/csxg/csxg_client.py +25 -10
- tccli/services/ctem/ctem_client.py +1823 -156
- tccli/services/ctem/v20231128/api.json +2990 -206
- tccli/services/ctem/v20231128/examples.json +224 -0
- tccli/services/ctsdb/ctsdb_client.py +10 -4
- tccli/services/cvm/cvm_client.py +490 -196
- tccli/services/cvm/v20170312/api.json +41 -41
- tccli/services/cvm/v20170312/examples.json +92 -86
- tccli/services/cwp/cwp_client.py +2570 -1028
- tccli/services/cws/cws_client.py +95 -38
- tccli/services/cynosdb/cynosdb_client.py +1006 -340
- tccli/services/cynosdb/v20190107/api.json +1238 -212
- tccli/services/cynosdb/v20190107/examples.json +32 -8
- tccli/services/dasb/dasb_client.py +315 -126
- tccli/services/dataagent/__init__.py +4 -0
- tccli/services/dataagent/dataagent_client.py +770 -0
- tccli/services/dataagent/v20250513/api.json +1216 -0
- tccli/services/dataagent/v20250513/examples.json +93 -0
- tccli/services/dayu/dayu_client.py +560 -224
- tccli/services/dbbrain/dbbrain_client.py +471 -166
- tccli/services/dbbrain/v20210527/api.json +268 -19
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dbdc/dbdc_client.py +30 -12
- tccli/services/dc/dc_client.py +110 -44
- tccli/services/dcdb/dcdb_client.py +415 -166
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +966 -364
- tccli/services/dlc/v20210125/api.json +1153 -150
- tccli/services/dlc/v20210125/examples.json +19 -11
- tccli/services/dnspod/dnspod_client.py +567 -182
- tccli/services/dnspod/v20210323/api.json +131 -25
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/domain/domain_client.py +275 -110
- tccli/services/domain/v20180808/api.json +21 -1
- tccli/services/drm/drm_client.py +55 -22
- tccli/services/ds/ds_client.py +60 -24
- tccli/services/dsgc/dsgc_client.py +665 -266
- tccli/services/dsgc/v20190723/api.json +18 -18
- tccli/services/dts/dts_client.py +1188 -488
- tccli/services/dts/v20211206/api.json +1068 -124
- tccli/services/dts/v20211206/examples.json +77 -7
- tccli/services/eb/eb_client.py +160 -64
- tccli/services/eb/v20210416/api.json +13 -0
- tccli/services/ecc/ecc_client.py +20 -8
- tccli/services/ecdn/ecdn_client.py +30 -12
- tccli/services/ecm/ecm_client.py +695 -278
- tccli/services/eiam/eiam_client.py +210 -84
- tccli/services/eis/eis_client.py +40 -16
- tccli/services/emr/emr_client.py +501 -178
- tccli/services/emr/v20190103/api.json +262 -0
- tccli/services/emr/v20190103/examples.json +13 -5
- tccli/services/es/es_client.py +536 -152
- tccli/services/es/v20180416/api.json +695 -65
- tccli/services/es/v20180416/examples.json +24 -0
- tccli/services/es/v20250101/api.json +10 -10
- tccli/services/ess/ess_client.py +747 -254
- tccli/services/ess/v20201111/api.json +720 -32
- tccli/services/ess/v20201111/examples.json +18 -2
- tccli/services/essbasic/essbasic_client.py +730 -292
- tccli/services/essbasic/v20210526/api.json +295 -32
- tccli/services/essbasic/v20210526/examples.json +12 -30
- tccli/services/evt/__init__.py +4 -0
- tccli/services/evt/evt_client.py +210 -0
- tccli/services/evt/v20250217/api.json +126 -0
- tccli/services/evt/v20250217/examples.json +13 -0
- tccli/services/facefusion/facefusion_client.py +20 -8
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/faceid/faceid_client.py +180 -125
- tccli/services/faceid/v20180301/api.json +18 -105
- tccli/services/faceid/v20180301/examples.json +1 -9
- tccli/services/fmu/fmu_client.py +35 -14
- tccli/services/ft/ft_client.py +30 -12
- tccli/services/gaap/gaap_client.py +510 -204
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +241 -74
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/goosefs/goosefs_client.py +135 -54
- tccli/services/gs/gs_client.py +537 -182
- tccli/services/gs/v20191118/api.json +143 -1
- tccli/services/gs/v20191118/examples.json +16 -0
- tccli/services/gwlb/gwlb_client.py +95 -38
- tccli/services/habo/habo_client.py +10 -4
- tccli/services/hai/hai_client.py +80 -32
- tccli/services/hai/v20230812/api.json +3 -3
- tccli/services/hasim/hasim_client.py +110 -44
- tccli/services/hcm/hcm_client.py +5 -2
- tccli/services/hunyuan/hunyuan_client.py +105 -42
- tccli/services/hunyuan/v20230901/api.json +69 -2
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/iai_client.py +175 -123
- tccli/services/iai/v20180301/api.json +0 -82
- tccli/services/iai/v20180301/examples.json +0 -8
- tccli/services/iai/v20200303/api.json +1 -83
- tccli/services/iai/v20200303/examples.json +0 -8
- tccli/services/iap/iap_client.py +30 -12
- tccli/services/ic/ic_client.py +45 -18
- tccli/services/icr/icr_client.py +5 -2
- tccli/services/ie/ie_client.py +50 -20
- tccli/services/ig/ig_client.py +5 -2
- tccli/services/igtm/igtm_client.py +130 -52
- tccli/services/igtm/v20231024/api.json +60 -4
- tccli/services/igtm/v20231024/examples.json +3 -3
- tccli/services/ims/ims_client.py +10 -4
- tccli/services/ioa/ioa_client.py +194 -60
- tccli/services/ioa/v20220601/api.json +149 -1
- tccli/services/ioa/v20220601/examples.json +8 -0
- tccli/services/iot/iot_client.py +225 -90
- tccli/services/iotcloud/iotcloud_client.py +430 -172
- tccli/services/iotexplorer/iotexplorer_client.py +1801 -512
- tccli/services/iotexplorer/v20190423/api.json +2681 -1016
- tccli/services/iotexplorer/v20190423/examples.json +160 -26
- tccli/services/iotvideo/iotvideo_client.py +835 -334
- tccli/services/iotvideoindustry/iotvideoindustry_client.py +520 -208
- tccli/services/irp/irp_client.py +55 -22
- tccli/services/iss/iss_client.py +460 -184
- tccli/services/iss/v20230517/api.json +2 -2
- tccli/services/iss/v20230517/examples.json +1 -1
- tccli/services/ivld/ivld_client.py +140 -56
- tccli/services/keewidb/keewidb_client.py +190 -76
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/kms/kms_client.py +340 -136
- tccli/services/lcic/lcic_client.py +355 -142
- tccli/services/lcic/v20220817/api.json +5 -5
- tccli/services/lighthouse/lighthouse_client.py +590 -236
- tccli/services/lighthouse/v20200324/api.json +81 -16
- tccli/services/lighthouse/v20200324/examples.json +7 -1
- tccli/services/live/live_client.py +1000 -453
- tccli/services/live/v20180801/api.json +6 -164
- tccli/services/live/v20180801/examples.json +6 -8
- tccli/services/lke/lke_client.py +525 -210
- tccli/services/lke/v20231130/api.json +254 -75
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lkeap/lkeap_client.py +130 -52
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/lkeap/v20240522/examples.json +1 -1
- tccli/services/lowcode/lowcode_client.py +85 -34
- tccli/services/mall/mall_client.py +5 -2
- tccli/services/mariadb/mariadb_client.py +405 -162
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/market/market_client.py +10 -4
- tccli/services/memcached/memcached_client.py +5 -2
- tccli/services/mmps/mmps_client.py +75 -30
- tccli/services/mna/mna_client.py +205 -82
- tccli/services/mna/v20210119/api.json +1 -1
- tccli/services/mongodb/mongodb_client.py +1178 -273
- tccli/services/mongodb/v20190725/api.json +1860 -135
- tccli/services/mongodb/v20190725/examples.json +105 -1
- tccli/services/monitor/monitor_client.py +901 -338
- tccli/services/monitor/v20180724/api.json +189 -29
- tccli/services/monitor/v20180724/examples.json +9 -1
- tccli/services/mps/mps_client.py +1248 -280
- tccli/services/mps/v20190612/api.json +1796 -73
- tccli/services/mps/v20190612/examples.json +106 -32
- tccli/services/mqtt/mqtt_client.py +463 -118
- tccli/services/mqtt/v20240516/api.json +166 -0
- tccli/services/mqtt/v20240516/examples.json +24 -0
- tccli/services/mrs/mrs_client.py +55 -22
- tccli/services/ms/ms_client.py +115 -46
- tccli/services/msp/msp_client.py +35 -14
- tccli/services/nlp/nlp_client.py +30 -12
- tccli/services/npp/npp_client.py +40 -16
- tccli/services/oceanus/oceanus_client.py +225 -90
- tccli/services/oceanus/v20190422/api.json +10 -13
- tccli/services/oceanus/v20190422/examples.json +2 -2
- tccli/services/ocr/ocr_client.py +471 -425
- tccli/services/ocr/v20181119/api.json +241 -639
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/omics_client.py +100 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/organization_client.py +705 -282
- tccli/services/organization/v20210331/api.json +40 -1
- tccli/services/partners/partners_client.py +115 -46
- tccli/services/postgres/postgres_client.py +724 -200
- tccli/services/postgres/v20170312/api.json +494 -58
- tccli/services/postgres/v20170312/examples.json +75 -31
- tccli/services/privatedns/privatedns_client.py +412 -80
- tccli/services/privatedns/v20201028/api.json +421 -13
- tccli/services/privatedns/v20201028/examples.json +36 -4
- tccli/services/pts/pts_client.py +240 -96
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/rce/rce_client.py +55 -22
- tccli/services/redis/redis_client.py +550 -220
- tccli/services/redis/v20180412/api.json +197 -33
- tccli/services/redis/v20180412/examples.json +10 -10
- tccli/services/region/region_client.py +15 -6
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/rum_client.py +270 -108
- tccli/services/rum/v20210622/api.json +18 -0
- tccli/services/scf/scf_client.py +260 -104
- tccli/services/scf/v20180416/api.json +167 -2
- tccli/services/scf/v20180416/examples.json +1 -1
- tccli/services/securitylake/securitylake_client.py +5 -2
- tccli/services/ses/ses_client.py +175 -70
- tccli/services/smh/smh_client.py +75 -30
- tccli/services/smop/smop_client.py +5 -2
- tccli/services/sms/sms_client.py +90 -36
- tccli/services/sms/v20190711/api.json +11 -11
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +12 -12
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/soe/soe_client.py +20 -8
- tccli/services/sqlserver/sqlserver_client.py +740 -296
- tccli/services/sqlserver/v20180328/api.json +31 -2
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/ssa/ssa_client.py +115 -46
- tccli/services/ssl/ssl_client.py +340 -136
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/sslpod/sslpod_client.py +50 -20
- tccli/services/ssm/ssm_client.py +120 -48
- tccli/services/sts/sts_client.py +35 -14
- tccli/services/sts/v20180813/api.json +1 -1
- tccli/services/svp/svp_client.py +25 -10
- tccli/services/svp/v20240125/api.json +24 -4
- tccli/services/svp/v20240125/examples.json +1 -1
- tccli/services/taf/taf_client.py +5 -2
- tccli/services/tag/tag_client.py +155 -62
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/tat_client.py +145 -58
- tccli/services/tat/v20201028/api.json +10 -1
- tccli/services/tbaas/tbaas_client.py +120 -48
- tccli/services/tbp/tbp_client.py +20 -8
- tccli/services/tcaplusdb/tcaplusdb_client.py +265 -106
- tccli/services/tcb/tcb_client.py +445 -178
- tccli/services/tcbr/tcbr_client.py +50 -20
- tccli/services/tcbr/v20220217/api.json +11 -0
- tccli/services/tccatalog/tccatalog_client.py +20 -8
- tccli/services/tchd/tchd_client.py +10 -4
- tccli/services/tcm/tcm_client.py +60 -24
- tccli/services/tcr/tcr_client.py +550 -220
- tccli/services/tcss/tcss_client.py +1756 -680
- tccli/services/tcss/v20201101/api.json +144 -11
- tccli/services/tcss/v20201101/examples.json +9 -1
- tccli/services/tdai/tdai_client.py +90 -36
- tccli/services/tdai/v20250717/api.json +30 -3
- tccli/services/tdcpg/tdcpg_client.py +125 -50
- tccli/services/tdid/tdid_client.py +90 -36
- tccli/services/tdmq/tdmq_client.py +846 -452
- tccli/services/tdmq/v20200217/api.json +372 -488
- tccli/services/tdmq/v20200217/examples.json +21 -41
- tccli/services/tds/tds_client.py +25 -10
- tccli/services/tem/tem_client.py +305 -122
- tccli/services/teo/teo_client.py +1122 -431
- tccli/services/teo/v20220901/api.json +1393 -132
- tccli/services/teo/v20220901/examples.json +59 -13
- tccli/services/thpc/thpc_client.py +215 -66
- tccli/services/thpc/v20230321/api.json +185 -27
- tccli/services/thpc/v20230321/examples.json +15 -7
- tccli/services/tia/tia_client.py +50 -20
- tccli/services/tiia/tiia_client.py +105 -42
- tccli/services/tione/tione_client.py +537 -150
- tccli/services/tione/v20211111/api.json +280 -16
- tccli/services/tione/v20211111/examples.json +25 -1
- tccli/services/tiw/tiw_client.py +175 -70
- tccli/services/tke/tke_client.py +2702 -735
- tccli/services/tke/v20180525/api.json +2279 -232
- tccli/services/tke/v20180525/examples.json +194 -18
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tkgdq/tkgdq_client.py +15 -6
- tccli/services/tms/tms_client.py +132 -8
- tccli/services/tms/v20201229/api.json +247 -1
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/tmt_client.py +40 -16
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/tourism/tourism_client.py +5 -2
- tccli/services/trabbit/trabbit_client.py +145 -58
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/trocket_client.py +350 -140
- tccli/services/trocket/v20230308/api.json +113 -5
- tccli/services/trp/trp_client.py +270 -108
- tccli/services/trro/trro_client.py +257 -58
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/trtc_client.py +360 -144
- tccli/services/trtc/v20190722/api.json +167 -27
- tccli/services/trtc/v20190722/examples.json +3 -3
- tccli/services/tse/tse_client.py +776 -248
- tccli/services/tse/v20201207/api.json +260 -1
- tccli/services/tse/v20201207/examples.json +24 -0
- tccli/services/tsf/tsf_client.py +1195 -458
- tccli/services/tsf/v20180326/api.json +121 -5
- tccli/services/tsf/v20180326/examples.json +10 -2
- tccli/services/tsi/tsi_client.py +15 -6
- tccli/services/tsw/tsw_client.py +20 -8
- tccli/services/tts/tts_client.py +15 -6
- tccli/services/vcg/vcg_client.py +10 -4
- tccli/services/vclm/v20240523/api.json +354 -4
- tccli/services/vclm/v20240523/examples.json +32 -0
- tccli/services/vclm/vclm_client.py +269 -18
- tccli/services/vcube/v20220410/api.json +89 -2
- tccli/services/vcube/v20220410/examples.json +18 -2
- tccli/services/vcube/vcube_client.py +290 -76
- tccli/services/vdb/vdb_client.py +70 -28
- tccli/services/vm/v20210922/api.json +3 -3
- tccli/services/vm/vm_client.py +30 -12
- tccli/services/vms/vms_client.py +10 -4
- tccli/services/vod/v20180717/api.json +2 -2
- tccli/services/vod/vod_client.py +965 -386
- tccli/services/vpc/v20170312/api.json +1239 -128
- tccli/services/vpc/v20170312/examples.json +127 -15
- tccli/services/vpc/vpc_client.py +2963 -928
- tccli/services/vrs/vrs_client.py +40 -16
- tccli/services/vtc/vtc_client.py +15 -6
- tccli/services/waf/v20180125/api.json +11219 -8659
- tccli/services/waf/v20180125/examples.json +89 -9
- tccli/services/waf/waf_client.py +1530 -415
- tccli/services/wav/wav_client.py +130 -52
- tccli/services/wedata/v20250806/api.json +55 -16
- tccli/services/wedata/wedata_client.py +2045 -818
- tccli/services/weilingwith/weilingwith_client.py +320 -128
- tccli/services/wsa/wsa_client.py +5 -2
- tccli/services/wss/wss_client.py +15 -6
- tccli/services/yinsuda/yinsuda_client.py +100 -40
- tccli/services/yunjing/yunjing_client.py +500 -200
- tccli/services/yunsou/yunsou_client.py +10 -4
- {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/METADATA +13 -11
- {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/RECORD +446 -434
- {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1407.1.dist-info → tccli-3.1.6.1.dist-info}/entry_points.txt +0 -0
- {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 doDescribeAutoScalingConfiguration(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)
|
|
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 doDescribeAutoScalingConfiguration(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="
|
|
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 doDeleteNodes(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)
|
|
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 doDeleteNodes(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="
|
|
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 doTerminateWorkspaces(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)
|
|
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 doTerminateWorkspaces(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="
|
|
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 doModifyWorkspacesAttribute(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)
|
|
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 doModifyWorkspacesAttribute(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="
|
|
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 doCreateCluster(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)
|
|
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 doCreateCluster(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="
|
|
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 doCreateWorkspaces(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)
|
|
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 doCreateWorkspaces(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="
|
|
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 doDescribeQueues(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)
|
|
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 doDescribeQueues(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="
|
|
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 doAddNodes(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)
|
|
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 doAddNodes(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="
|
|
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 doDescribeNodes(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)
|
|
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 doDescribeNodes(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="
|
|
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 doDeleteCluster(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)
|
|
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 doDeleteCluster(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="
|
|
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 doDeleteClusterStorageOption(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)
|
|
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 doDeleteClusterStorageOption(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="
|
|
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 doDescribeWorkspaces(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)
|
|
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 doDescribeWorkspaces(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="
|
|
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 doTerminateJob(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)
|
|
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 doTerminateJob(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="
|
|
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 doDetachNodes(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)
|
|
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 doDetachNodes(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="
|
|
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 doDescribeClusters(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)
|
|
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 doDescribeClusters(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="
|
|
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 doSetAutoScalingConfiguration(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)
|
|
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 doSetAutoScalingConfiguration(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="
|
|
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 doAddQueue(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)
|
|
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 doAddQueue(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="
|
|
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 doDescribeInitNodeScripts(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)
|
|
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 doDescribeInitNodeScripts(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="
|
|
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 doAttachNodes(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)
|
|
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 doAttachNodes(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="
|
|
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 doDescribeJobSubmitInfo(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)
|
|
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 doDescribeJobSubmitInfo(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="
|
|
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 doDescribeClusterActivities(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)
|
|
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 doDescribeClusterActivities(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="
|
|
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 doSubmitJob(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)
|
|
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 doSubmitJob(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="
|
|
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 doDescribeClusterStorageOption(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)
|
|
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 doDescribeClusterStorageOption(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="
|
|
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]]
|
|
@@ -1217,7 +1286,7 @@ def doDescribeClusterStorageOption(args, parsed_globals):
|
|
|
1217
1286
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1218
1287
|
|
|
1219
1288
|
|
|
1220
|
-
def
|
|
1289
|
+
def doModifyClusterDeletionProtection(args, parsed_globals):
|
|
1221
1290
|
g_param = parse_global_arg(parsed_globals)
|
|
1222
1291
|
|
|
1223
1292
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1227,7 +1296,10 @@ def doBindAutoScalingGroup(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)
|
|
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,18 +1311,18 @@ def doBindAutoScalingGroup(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="
|
|
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]]
|
|
1246
1318
|
client = mod.ThpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1247
1319
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1248
1320
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1249
|
-
model = models.
|
|
1321
|
+
model = models.ModifyClusterDeletionProtectionRequest()
|
|
1250
1322
|
model.from_json_string(json.dumps(args))
|
|
1251
1323
|
start_time = time.time()
|
|
1252
1324
|
while True:
|
|
1253
|
-
rsp = client.
|
|
1325
|
+
rsp = client.ModifyClusterDeletionProtection(model)
|
|
1254
1326
|
result = rsp.to_json_string()
|
|
1255
1327
|
try:
|
|
1256
1328
|
json_obj = json.loads(result)
|
|
@@ -1279,7 +1351,10 @@ def doModifyInitNodeScripts(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)
|
|
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 doModifyInitNodeScripts(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="
|
|
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 doAddClusterStorageOption(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)
|
|
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 doAddClusterStorageOption(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="
|
|
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 doDescribeJobsOverview(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)
|
|
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 doDescribeJobsOverview(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="
|
|
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 doDescribeJobs(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)
|
|
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 doDescribeJobs(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="
|
|
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 doModifyWorkspacesRenewFlag(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)
|
|
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 doModifyWorkspacesRenewFlag(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="
|
|
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 doDeleteQueue(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)
|
|
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 doDeleteQueue(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="
|
|
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 doDeleteJob(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)
|
|
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 doDeleteJob(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="
|
|
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]]
|
|
@@ -1633,6 +1726,61 @@ def doDeleteJob(args, parsed_globals):
|
|
|
1633
1726
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1634
1727
|
|
|
1635
1728
|
|
|
1729
|
+
def doBindAutoScalingGroup(args, parsed_globals):
|
|
1730
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1731
|
+
|
|
1732
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1733
|
+
cred = credential.CVMRoleCredential()
|
|
1734
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1735
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1736
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1737
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1738
|
+
)
|
|
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):
|
|
1743
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1744
|
+
else:
|
|
1745
|
+
cred = credential.Credential(
|
|
1746
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1747
|
+
)
|
|
1748
|
+
http_profile = HttpProfile(
|
|
1749
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1750
|
+
reqMethod="POST",
|
|
1751
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1752
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1753
|
+
)
|
|
1754
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1755
|
+
if g_param[OptionsDefine.Language]:
|
|
1756
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1757
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1758
|
+
client = mod.ThpcClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1759
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1760
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1761
|
+
model = models.BindAutoScalingGroupRequest()
|
|
1762
|
+
model.from_json_string(json.dumps(args))
|
|
1763
|
+
start_time = time.time()
|
|
1764
|
+
while True:
|
|
1765
|
+
rsp = client.BindAutoScalingGroup(model)
|
|
1766
|
+
result = rsp.to_json_string()
|
|
1767
|
+
try:
|
|
1768
|
+
json_obj = json.loads(result)
|
|
1769
|
+
except TypeError as e:
|
|
1770
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1771
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1772
|
+
break
|
|
1773
|
+
cur_time = time.time()
|
|
1774
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1775
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1776
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1777
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1778
|
+
else:
|
|
1779
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1780
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1781
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1782
|
+
|
|
1783
|
+
|
|
1636
1784
|
CLIENT_MAP = {
|
|
1637
1785
|
"v20230321": thpc_client_v20230321,
|
|
1638
1786
|
"v20220401": thpc_client_v20220401,
|
|
@@ -1671,7 +1819,7 @@ ACTION_MAP = {
|
|
|
1671
1819
|
"DescribeClusterActivities": doDescribeClusterActivities,
|
|
1672
1820
|
"SubmitJob": doSubmitJob,
|
|
1673
1821
|
"DescribeClusterStorageOption": doDescribeClusterStorageOption,
|
|
1674
|
-
"
|
|
1822
|
+
"ModifyClusterDeletionProtection": doModifyClusterDeletionProtection,
|
|
1675
1823
|
"ModifyInitNodeScripts": doModifyInitNodeScripts,
|
|
1676
1824
|
"AddClusterStorageOption": doAddClusterStorageOption,
|
|
1677
1825
|
"DescribeJobsOverview": doDescribeJobsOverview,
|
|
@@ -1679,6 +1827,7 @@ ACTION_MAP = {
|
|
|
1679
1827
|
"ModifyWorkspacesRenewFlag": doModifyWorkspacesRenewFlag,
|
|
1680
1828
|
"DeleteQueue": doDeleteQueue,
|
|
1681
1829
|
"DeleteJob": doDeleteJob,
|
|
1830
|
+
"BindAutoScalingGroup": doBindAutoScalingGroup,
|
|
1682
1831
|
|
|
1683
1832
|
}
|
|
1684
1833
|
|