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
@@ -3151,6 +3151,17 @@
|
|
3151
3151
|
"required": false,
|
3152
3152
|
"type": "string",
|
3153
3153
|
"value_allowed_null": true
|
3154
|
+
},
|
3155
|
+
{
|
3156
|
+
"disabled": false,
|
3157
|
+
"document": "配置文件ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3158
|
+
"example": "无",
|
3159
|
+
"member": "string",
|
3160
|
+
"name": "ConfigFileId",
|
3161
|
+
"output_required": false,
|
3162
|
+
"required": false,
|
3163
|
+
"type": "string",
|
3164
|
+
"value_allowed_null": true
|
3154
3165
|
}
|
3155
3166
|
],
|
3156
3167
|
"usage": "both"
|
@@ -3201,6 +3212,17 @@
|
|
3201
3212
|
"required": false,
|
3202
3213
|
"type": "string",
|
3203
3214
|
"value_allowed_null": true
|
3215
|
+
},
|
3216
|
+
{
|
3217
|
+
"disabled": false,
|
3218
|
+
"document": "配置发布ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3219
|
+
"example": "1",
|
3220
|
+
"member": "uint64",
|
3221
|
+
"name": "Id",
|
3222
|
+
"output_required": false,
|
3223
|
+
"required": false,
|
3224
|
+
"type": "int",
|
3225
|
+
"value_allowed_null": true
|
3204
3226
|
}
|
3205
3227
|
],
|
3206
3228
|
"usage": "both"
|
@@ -4449,6 +4471,16 @@
|
|
4449
4471
|
"type": "bool",
|
4450
4472
|
"value_allowed_null": false
|
4451
4473
|
},
|
4474
|
+
{
|
4475
|
+
"disabled": false,
|
4476
|
+
"document": "创建的配置文件Id\n注意:此字段可能返回 null,表示取不到有效值。",
|
4477
|
+
"example": "无",
|
4478
|
+
"member": "string",
|
4479
|
+
"name": "ConfigFileId",
|
4480
|
+
"output_required": false,
|
4481
|
+
"type": "string",
|
4482
|
+
"value_allowed_null": true
|
4483
|
+
},
|
4452
4484
|
{
|
4453
4485
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4454
4486
|
"member": "string",
|
@@ -5012,6 +5044,15 @@
|
|
5012
5044
|
"name": "ConfigFilePublishInfo",
|
5013
5045
|
"required": true,
|
5014
5046
|
"type": "object"
|
5047
|
+
},
|
5048
|
+
{
|
5049
|
+
"disabled": false,
|
5050
|
+
"document": "控制开启校验配置版本是否已经存在",
|
5051
|
+
"example": "true",
|
5052
|
+
"member": "bool",
|
5053
|
+
"name": "StrictEnable",
|
5054
|
+
"required": false,
|
5055
|
+
"type": "bool"
|
5015
5056
|
}
|
5016
5057
|
],
|
5017
5058
|
"type": "object"
|
@@ -5029,6 +5070,26 @@
|
|
5029
5070
|
"type": "bool",
|
5030
5071
|
"value_allowed_null": false
|
5031
5072
|
},
|
5073
|
+
{
|
5074
|
+
"disabled": false,
|
5075
|
+
"document": "配置发布Id\n注意:此字段可能返回 null,表示取不到有效值。",
|
5076
|
+
"example": "无",
|
5077
|
+
"member": "string",
|
5078
|
+
"name": "ConfigFileReleaseId",
|
5079
|
+
"output_required": false,
|
5080
|
+
"type": "string",
|
5081
|
+
"value_allowed_null": true
|
5082
|
+
},
|
5083
|
+
{
|
5084
|
+
"disabled": false,
|
5085
|
+
"document": "配置文件Id\n注意:此字段可能返回 null,表示取不到有效值。",
|
5086
|
+
"example": "无",
|
5087
|
+
"member": "string",
|
5088
|
+
"name": "ConfigFileId",
|
5089
|
+
"output_required": false,
|
5090
|
+
"type": "string",
|
5091
|
+
"value_allowed_null": true
|
5092
|
+
},
|
5032
5093
|
{
|
5033
5094
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5034
5095
|
"member": "string",
|
@@ -5626,7 +5687,7 @@
|
|
5626
5687
|
"example": "namespace",
|
5627
5688
|
"member": "string",
|
5628
5689
|
"name": "Namespace",
|
5629
|
-
"required":
|
5690
|
+
"required": false,
|
5630
5691
|
"type": "string"
|
5631
5692
|
},
|
5632
5693
|
{
|
@@ -5635,7 +5696,7 @@
|
|
5635
5696
|
"example": "group",
|
5636
5697
|
"member": "string",
|
5637
5698
|
"name": "Group",
|
5638
|
-
"required":
|
5699
|
+
"required": false,
|
5639
5700
|
"type": "string"
|
5640
5701
|
},
|
5641
5702
|
{
|
@@ -5644,7 +5705,16 @@
|
|
5644
5705
|
"example": "name",
|
5645
5706
|
"member": "string",
|
5646
5707
|
"name": "Name",
|
5647
|
-
"required":
|
5708
|
+
"required": false,
|
5709
|
+
"type": "string"
|
5710
|
+
},
|
5711
|
+
{
|
5712
|
+
"disabled": false,
|
5713
|
+
"document": "配置文件Id",
|
5714
|
+
"example": "1",
|
5715
|
+
"member": "string",
|
5716
|
+
"name": "Id",
|
5717
|
+
"required": false,
|
5648
5718
|
"type": "string"
|
5649
5719
|
}
|
5650
5720
|
],
|
@@ -7389,6 +7459,15 @@
|
|
7389
7459
|
"required": false,
|
7390
7460
|
"type": "int"
|
7391
7461
|
},
|
7462
|
+
{
|
7463
|
+
"disabled": false,
|
7464
|
+
"document": "配置文件ID",
|
7465
|
+
"example": "1",
|
7466
|
+
"member": "string",
|
7467
|
+
"name": "ConfigFileId",
|
7468
|
+
"required": false,
|
7469
|
+
"type": "string"
|
7470
|
+
},
|
7392
7471
|
{
|
7393
7472
|
"disabled": false,
|
7394
7473
|
"document": "返回数量,默认为20,最大值为100。\t",
|
@@ -7460,7 +7539,7 @@
|
|
7460
7539
|
"example": "无",
|
7461
7540
|
"member": "string",
|
7462
7541
|
"name": "Namespace",
|
7463
|
-
"required":
|
7542
|
+
"required": false,
|
7464
7543
|
"type": "string"
|
7465
7544
|
},
|
7466
7545
|
{
|
@@ -7469,7 +7548,7 @@
|
|
7469
7548
|
"example": "无",
|
7470
7549
|
"member": "string",
|
7471
7550
|
"name": "Group",
|
7472
|
-
"required":
|
7551
|
+
"required": false,
|
7473
7552
|
"type": "string"
|
7474
7553
|
},
|
7475
7554
|
{
|
@@ -7478,7 +7557,7 @@
|
|
7478
7557
|
"example": "无",
|
7479
7558
|
"member": "string",
|
7480
7559
|
"name": "Name",
|
7481
|
-
"required":
|
7560
|
+
"required": false,
|
7482
7561
|
"type": "string"
|
7483
7562
|
},
|
7484
7563
|
{
|
@@ -7489,6 +7568,15 @@
|
|
7489
7568
|
"name": "ReleaseName",
|
7490
7569
|
"required": false,
|
7491
7570
|
"type": "string"
|
7571
|
+
},
|
7572
|
+
{
|
7573
|
+
"disabled": false,
|
7574
|
+
"document": "配置文件发布Id",
|
7575
|
+
"example": "无",
|
7576
|
+
"member": "string",
|
7577
|
+
"name": "Id",
|
7578
|
+
"required": false,
|
7579
|
+
"type": "string"
|
7492
7580
|
}
|
7493
7581
|
],
|
7494
7582
|
"type": "object"
|
@@ -7553,6 +7641,15 @@
|
|
7553
7641
|
"name": "FileName",
|
7554
7642
|
"required": false,
|
7555
7643
|
"type": "string"
|
7644
|
+
},
|
7645
|
+
{
|
7646
|
+
"disabled": false,
|
7647
|
+
"document": "配置文件ID",
|
7648
|
+
"example": "1",
|
7649
|
+
"member": "string",
|
7650
|
+
"name": "ConfigFileId",
|
7651
|
+
"required": false,
|
7652
|
+
"type": "string"
|
7556
7653
|
}
|
7557
7654
|
],
|
7558
7655
|
"type": "object"
|
@@ -7671,6 +7768,15 @@
|
|
7671
7768
|
"name": "OrderDesc",
|
7672
7769
|
"required": false,
|
7673
7770
|
"type": "string"
|
7771
|
+
},
|
7772
|
+
{
|
7773
|
+
"disabled": false,
|
7774
|
+
"document": "配置发布ID",
|
7775
|
+
"example": "无",
|
7776
|
+
"member": "string",
|
7777
|
+
"name": "Id",
|
7778
|
+
"required": false,
|
7779
|
+
"type": "string"
|
7674
7780
|
}
|
7675
7781
|
],
|
7676
7782
|
"type": "object"
|
@@ -7725,7 +7831,7 @@
|
|
7725
7831
|
"example": "namespace",
|
7726
7832
|
"member": "string",
|
7727
7833
|
"name": "Namespace",
|
7728
|
-
"required":
|
7834
|
+
"required": false,
|
7729
7835
|
"type": "string"
|
7730
7836
|
},
|
7731
7837
|
{
|
@@ -7734,16 +7840,25 @@
|
|
7734
7840
|
"example": "group",
|
7735
7841
|
"member": "string",
|
7736
7842
|
"name": "Group",
|
7737
|
-
"required":
|
7843
|
+
"required": false,
|
7738
7844
|
"type": "string"
|
7739
7845
|
},
|
7740
7846
|
{
|
7741
7847
|
"disabled": false,
|
7742
|
-
"document": "
|
7848
|
+
"document": "配置文件名称",
|
7743
7849
|
"example": "name",
|
7744
7850
|
"member": "string",
|
7745
7851
|
"name": "Name",
|
7746
|
-
"required":
|
7852
|
+
"required": false,
|
7853
|
+
"type": "string"
|
7854
|
+
},
|
7855
|
+
{
|
7856
|
+
"disabled": false,
|
7857
|
+
"document": "配置文件Id",
|
7858
|
+
"example": "无",
|
7859
|
+
"member": "string",
|
7860
|
+
"name": "Id",
|
7861
|
+
"required": false,
|
7747
7862
|
"type": "string"
|
7748
7863
|
}
|
7749
7864
|
],
|
@@ -7886,7 +8001,7 @@
|
|
7886
8001
|
},
|
7887
8002
|
{
|
7888
8003
|
"disabled": false,
|
7889
|
-
"document": "
|
8004
|
+
"document": "配置文件名称",
|
7890
8005
|
"example": "name",
|
7891
8006
|
"member": "string",
|
7892
8007
|
"name": "Name",
|
@@ -7919,6 +8034,15 @@
|
|
7919
8034
|
"name": "Offset",
|
7920
8035
|
"required": false,
|
7921
8036
|
"type": "int"
|
8037
|
+
},
|
8038
|
+
{
|
8039
|
+
"disabled": false,
|
8040
|
+
"document": "配置文件ID",
|
8041
|
+
"example": "无",
|
8042
|
+
"member": "string",
|
8043
|
+
"name": "Id",
|
8044
|
+
"required": false,
|
8045
|
+
"type": "string"
|
7922
8046
|
}
|
7923
8047
|
],
|
7924
8048
|
"type": "object"
|
@@ -14750,6 +14874,15 @@
|
|
14750
14874
|
"name": "ConfigFileReleases",
|
14751
14875
|
"required": true,
|
14752
14876
|
"type": "object"
|
14877
|
+
},
|
14878
|
+
{
|
14879
|
+
"disabled": false,
|
14880
|
+
"document": "控制开启校验配置版本是否已经存在",
|
14881
|
+
"example": "true",
|
14882
|
+
"member": "bool",
|
14883
|
+
"name": "StrictEnable",
|
14884
|
+
"required": false,
|
14885
|
+
"type": "bool"
|
14753
14886
|
}
|
14754
14887
|
],
|
14755
14888
|
"type": "object"
|
@@ -14767,6 +14900,16 @@
|
|
14767
14900
|
"type": "bool",
|
14768
14901
|
"value_allowed_null": false
|
14769
14902
|
},
|
14903
|
+
{
|
14904
|
+
"disabled": false,
|
14905
|
+
"document": "配置文件发布Id\n注意:此字段可能返回 null,表示取不到有效值。",
|
14906
|
+
"example": "1",
|
14907
|
+
"member": "string",
|
14908
|
+
"name": "ConfigFileReleaseId",
|
14909
|
+
"output_required": false,
|
14910
|
+
"type": "string",
|
14911
|
+
"value_allowed_null": true
|
14912
|
+
},
|
14770
14913
|
{
|
14771
14914
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
14772
14915
|
"member": "string",
|
@@ -14846,7 +14989,7 @@
|
|
14846
14989
|
"members": [
|
14847
14990
|
{
|
14848
14991
|
"disabled": false,
|
14849
|
-
"document": "
|
14992
|
+
"document": "配置发布的版本\n注意:此字段可能返回 null,表示取不到有效值。",
|
14850
14993
|
"example": "无",
|
14851
14994
|
"member": "string",
|
14852
14995
|
"name": "Name",
|
@@ -14865,6 +15008,50 @@
|
|
14865
15008
|
"required": false,
|
14866
15009
|
"type": "bool",
|
14867
15010
|
"value_allowed_null": true
|
15011
|
+
},
|
15012
|
+
{
|
15013
|
+
"disabled": false,
|
15014
|
+
"document": "配置发布的ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
15015
|
+
"example": "无",
|
15016
|
+
"member": "string",
|
15017
|
+
"name": "Id",
|
15018
|
+
"output_required": false,
|
15019
|
+
"required": false,
|
15020
|
+
"type": "string",
|
15021
|
+
"value_allowed_null": true
|
15022
|
+
},
|
15023
|
+
{
|
15024
|
+
"disabled": false,
|
15025
|
+
"document": "配置发布的命名空间\n注意:此字段可能返回 null,表示取不到有效值。",
|
15026
|
+
"example": "无",
|
15027
|
+
"member": "string",
|
15028
|
+
"name": "Namespace",
|
15029
|
+
"output_required": false,
|
15030
|
+
"required": false,
|
15031
|
+
"type": "string",
|
15032
|
+
"value_allowed_null": true
|
15033
|
+
},
|
15034
|
+
{
|
15035
|
+
"disabled": false,
|
15036
|
+
"document": "配置发布的分组\n注意:此字段可能返回 null,表示取不到有效值。",
|
15037
|
+
"example": "无",
|
15038
|
+
"member": "string",
|
15039
|
+
"name": "Group",
|
15040
|
+
"output_required": false,
|
15041
|
+
"required": false,
|
15042
|
+
"type": "string",
|
15043
|
+
"value_allowed_null": true
|
15044
|
+
},
|
15045
|
+
{
|
15046
|
+
"disabled": false,
|
15047
|
+
"document": "配置发布的文件名\n注意:此字段可能返回 null,表示取不到有效值。",
|
15048
|
+
"example": "无",
|
15049
|
+
"member": "string",
|
15050
|
+
"name": "FileName",
|
15051
|
+
"output_required": false,
|
15052
|
+
"required": false,
|
15053
|
+
"type": "string",
|
15054
|
+
"value_allowed_null": true
|
14868
15055
|
}
|
14869
15056
|
],
|
14870
15057
|
"usage": "both"
|
tccli/services/tsf/tsf_client.py
CHANGED
@@ -11809,7 +11809,13 @@ def action_caller():
|
|
11809
11809
|
|
11810
11810
|
def parse_global_arg(parsed_globals):
|
11811
11811
|
g_param = parsed_globals
|
11812
|
-
|
11812
|
+
cvm_role_flag = True
|
11813
|
+
for param in parsed_globals.keys():
|
11814
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
11815
|
+
OptionsDefine.RoleSessionName]:
|
11816
|
+
if parsed_globals[param] is not None:
|
11817
|
+
cvm_role_flag = False
|
11818
|
+
break
|
11813
11819
|
is_exist_profile = True
|
11814
11820
|
if not parsed_globals["profile"]:
|
11815
11821
|
is_exist_profile = False
|
@@ -11840,6 +11846,7 @@ def parse_global_arg(parsed_globals):
|
|
11840
11846
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
11841
11847
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
11842
11848
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
11849
|
+
cvm_role_flag = False
|
11843
11850
|
|
11844
11851
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
11845
11852
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -11847,6 +11854,11 @@ def parse_global_arg(parsed_globals):
|
|
11847
11854
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
11848
11855
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
11849
11856
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
11857
|
+
cvm_role_flag = False
|
11858
|
+
|
11859
|
+
if cvm_role_flag:
|
11860
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
11861
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
11850
11862
|
|
11851
11863
|
for param in g_param.keys():
|
11852
11864
|
if g_param[param] is None:
|
tccli/services/tsi/tsi_client.py
CHANGED
@@ -202,7 +202,13 @@ def action_caller():
|
|
202
202
|
|
203
203
|
def parse_global_arg(parsed_globals):
|
204
204
|
g_param = parsed_globals
|
205
|
-
|
205
|
+
cvm_role_flag = True
|
206
|
+
for param in parsed_globals.keys():
|
207
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
208
|
+
OptionsDefine.RoleSessionName]:
|
209
|
+
if parsed_globals[param] is not None:
|
210
|
+
cvm_role_flag = False
|
211
|
+
break
|
206
212
|
is_exist_profile = True
|
207
213
|
if not parsed_globals["profile"]:
|
208
214
|
is_exist_profile = False
|
@@ -233,6 +239,7 @@ def parse_global_arg(parsed_globals):
|
|
233
239
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
234
240
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
235
241
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
242
|
+
cvm_role_flag = False
|
236
243
|
|
237
244
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
238
245
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -240,6 +247,11 @@ def parse_global_arg(parsed_globals):
|
|
240
247
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
241
248
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
242
249
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
250
|
+
cvm_role_flag = False
|
251
|
+
|
252
|
+
if cvm_role_flag:
|
253
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
254
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
243
255
|
|
244
256
|
for param in g_param.keys():
|
245
257
|
if g_param[param] is None:
|
tccli/services/tsw/tsw_client.py
CHANGED
@@ -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:
|
tccli/services/tts/tts_client.py
CHANGED
@@ -202,7 +202,13 @@ def action_caller():
|
|
202
202
|
|
203
203
|
def parse_global_arg(parsed_globals):
|
204
204
|
g_param = parsed_globals
|
205
|
-
|
205
|
+
cvm_role_flag = True
|
206
|
+
for param in parsed_globals.keys():
|
207
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
208
|
+
OptionsDefine.RoleSessionName]:
|
209
|
+
if parsed_globals[param] is not None:
|
210
|
+
cvm_role_flag = False
|
211
|
+
break
|
206
212
|
is_exist_profile = True
|
207
213
|
if not parsed_globals["profile"]:
|
208
214
|
is_exist_profile = False
|
@@ -233,6 +239,7 @@ def parse_global_arg(parsed_globals):
|
|
233
239
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
234
240
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
235
241
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
242
|
+
cvm_role_flag = False
|
236
243
|
|
237
244
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
238
245
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -240,6 +247,11 @@ def parse_global_arg(parsed_globals):
|
|
240
247
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
241
248
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
242
249
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
250
|
+
cvm_role_flag = False
|
251
|
+
|
252
|
+
if cvm_role_flag:
|
253
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
254
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
243
255
|
|
244
256
|
for param in g_param.keys():
|
245
257
|
if g_param[param] is None:
|
tccli/services/ump/ump_client.py
CHANGED
@@ -944,7 +944,13 @@ def action_caller():
|
|
944
944
|
|
945
945
|
def parse_global_arg(parsed_globals):
|
946
946
|
g_param = parsed_globals
|
947
|
-
|
947
|
+
cvm_role_flag = True
|
948
|
+
for param in parsed_globals.keys():
|
949
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
950
|
+
OptionsDefine.RoleSessionName]:
|
951
|
+
if parsed_globals[param] is not None:
|
952
|
+
cvm_role_flag = False
|
953
|
+
break
|
948
954
|
is_exist_profile = True
|
949
955
|
if not parsed_globals["profile"]:
|
950
956
|
is_exist_profile = False
|
@@ -975,6 +981,7 @@ def parse_global_arg(parsed_globals):
|
|
975
981
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
976
982
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
977
983
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
984
|
+
cvm_role_flag = False
|
978
985
|
|
979
986
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
980
987
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -982,6 +989,11 @@ def parse_global_arg(parsed_globals):
|
|
982
989
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
983
990
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
984
991
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
992
|
+
cvm_role_flag = False
|
993
|
+
|
994
|
+
if cvm_role_flag:
|
995
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
996
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
985
997
|
|
986
998
|
for param in g_param.keys():
|
987
999
|
if g_param[param] is None:
|
@@ -104,7 +104,7 @@
|
|
104
104
|
{
|
105
105
|
"disabled": false,
|
106
106
|
"document": "输入视频URL。视频要求:\n- 视频格式:mp4、mov;\n- 视频时长:1~60秒;\n- 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;\n- 视频大小:不超过200M;\n- 视频FPS:15~60fps。",
|
107
|
-
"example": "https://xxx.mp4",
|
107
|
+
"example": "https://xxx.com/video.mp4",
|
108
108
|
"member": "string",
|
109
109
|
"name": "VideoUrl",
|
110
110
|
"required": true,
|
@@ -3,16 +3,16 @@
|
|
3
3
|
"DescribeVideoStylizationJob": [
|
4
4
|
{
|
5
5
|
"document": "成功请求",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: vcg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVideoStylizationJob\n<公共请求参数>\n\n{\n \"JobId\": \"\"\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"JobId\": \"\",\n \"RequestId\": \"\",\n \"ResultVideoUrl\": \"\",\n \"StatusCode\": \"JobSuccess\",\n \"StatusMsg\": \"处理完成\"\n }\n}",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: vcg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVideoStylizationJob\n<公共请求参数>\n\n{\n \"JobId\": \"c5daf8f7077d41a69c13aab31a7164f3\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"c5daf8f7077d41a69c13aab31a7164f3\",\n \"RequestId\": \"c048e3cf-79b3-4080-9892-15bb96a680e5\",\n \"ResultVideoUrl\": \"https://vcg-prod-xxx.cos.ap-guangzhou.tencentcos.cn/xxx.mp4\",\n \"StatusCode\": \"JobSuccess\",\n \"StatusMsg\": \"处理完成\"\n }\n}",
|
8
8
|
"title": "成功请求"
|
9
9
|
}
|
10
10
|
],
|
11
11
|
"SubmitVideoStylizationJob": [
|
12
12
|
{
|
13
13
|
"document": "提交成功",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: vcg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitVideoStylizationJob\n<公共请求参数>\n\n{\n \"StyleId\": \"2d_anime\",\n \"VideoUrl\": \"\"\n}",
|
15
|
-
"output": "{\n \"Response\": {\n \"JobId\": \"\",\n \"RequestId\": \"\"\n }\n}",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: vcg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitVideoStylizationJob\n<公共请求参数>\n\n{\n \"StyleId\": \"2d_anime\",\n \"VideoUrl\": \"http://xxxx.mp4\"\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"c5daf8f7077d41a69c13aab31a7164f3\",\n \"RequestId\": \"b1990ba2-2d71-419d-8c9d-cab8e33f8352\"\n }\n}",
|
16
16
|
"title": "提交成功"
|
17
17
|
}
|
18
18
|
]
|
tccli/services/vcg/vcg_client.py
CHANGED
@@ -149,7 +149,13 @@ def action_caller():
|
|
149
149
|
|
150
150
|
def parse_global_arg(parsed_globals):
|
151
151
|
g_param = parsed_globals
|
152
|
-
|
152
|
+
cvm_role_flag = True
|
153
|
+
for param in parsed_globals.keys():
|
154
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
155
|
+
OptionsDefine.RoleSessionName]:
|
156
|
+
if parsed_globals[param] is not None:
|
157
|
+
cvm_role_flag = False
|
158
|
+
break
|
153
159
|
is_exist_profile = True
|
154
160
|
if not parsed_globals["profile"]:
|
155
161
|
is_exist_profile = False
|
@@ -180,6 +186,7 @@ def parse_global_arg(parsed_globals):
|
|
180
186
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
181
187
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
182
188
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
189
|
+
cvm_role_flag = False
|
183
190
|
|
184
191
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
185
192
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -187,6 +194,11 @@ def parse_global_arg(parsed_globals):
|
|
187
194
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
188
195
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
189
196
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
197
|
+
cvm_role_flag = False
|
198
|
+
|
199
|
+
if cvm_role_flag:
|
200
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
201
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
190
202
|
|
191
203
|
for param in g_param.keys():
|
192
204
|
if g_param[param] is None:
|
@@ -520,7 +520,13 @@ def action_caller():
|
|
520
520
|
|
521
521
|
def parse_global_arg(parsed_globals):
|
522
522
|
g_param = parsed_globals
|
523
|
-
|
523
|
+
cvm_role_flag = True
|
524
|
+
for param in parsed_globals.keys():
|
525
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
|
526
|
+
OptionsDefine.RoleSessionName]:
|
527
|
+
if parsed_globals[param] is not None:
|
528
|
+
cvm_role_flag = False
|
529
|
+
break
|
524
530
|
is_exist_profile = True
|
525
531
|
if not parsed_globals["profile"]:
|
526
532
|
is_exist_profile = False
|
@@ -551,6 +557,7 @@ def parse_global_arg(parsed_globals):
|
|
551
557
|
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
552
558
|
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
553
559
|
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
560
|
+
cvm_role_flag = False
|
554
561
|
|
555
562
|
if os.environ.get(OptionsDefine.ENV_REGION):
|
556
563
|
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
@@ -558,6 +565,11 @@ def parse_global_arg(parsed_globals):
|
|
558
565
|
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
559
566
|
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
560
567
|
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
568
|
+
cvm_role_flag = False
|
569
|
+
|
570
|
+
if cvm_role_flag:
|
571
|
+
if "type" in cred and cred["type"] == "cvm-role":
|
572
|
+
g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
|
561
573
|
|
562
574
|
for param in g_param.keys():
|
563
575
|
if g_param[param] is None:
|