tccli-intl-en 3.0.1282.1__py2.py3-none-any.whl → 3.1.33.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 +1 -1
- tccli/services/__init__.py +15 -0
- tccli/services/advisor/advisor_client.py +2 -2
- tccli/services/ai3d/__init__.py +4 -0
- tccli/services/ai3d/ai3d_client.py +266 -0
- tccli/services/ai3d/v20250513/api.json +264 -0
- tccli/services/ai3d/v20250513/examples.json +20 -0
- tccli/services/aiart/aiart_client.py +1 -1
- tccli/services/ams/ams_client.py +4 -4
- tccli/services/antiddos/antiddos_client.py +70 -70
- tccli/services/apigateway/apigateway_client.py +93 -93
- tccli/services/apm/apm_client.py +783 -55
- tccli/services/apm/v20210622/api.json +3936 -1145
- tccli/services/apm/v20210622/examples.json +133 -23
- tccli/services/asr/asr_client.py +2 -2
- tccli/services/autoscaling/autoscaling_client.py +58 -58
- tccli/services/autoscaling/v20180419/api.json +77 -27
- tccli/services/batch/batch_client.py +28 -28
- tccli/services/bi/bi_client.py +24 -24
- tccli/services/billing/billing_client.py +42 -42
- tccli/services/cam/cam_client.py +81 -81
- tccli/services/captcha/captcha_client.py +1 -1
- tccli/services/car/car_client.py +33 -33
- tccli/services/cbs/cbs_client.py +38 -38
- tccli/services/ccc/ccc_client.py +70 -70
- tccli/services/ccc/v20200210/api.json +71 -26
- tccli/services/cdb/cdb_client.py +1262 -422
- tccli/services/cdb/v20170320/api.json +2166 -335
- tccli/services/cdb/v20170320/examples.json +126 -6
- tccli/services/cdc/cdc_client.py +20 -20
- tccli/services/cdn/cdn_client.py +44 -44
- tccli/services/cdn/v20180606/api.json +22 -22
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cdwdoris/cdwdoris_client.py +77 -77
- tccli/services/cdwpg/cdwpg_client.py +24 -24
- tccli/services/cdz/cdz_client.py +1 -1
- tccli/services/cfg/cfg_client.py +16 -16
- tccli/services/cfs/cfs_client.py +39 -39
- tccli/services/cfw/cfw_client.py +66 -66
- tccli/services/chdfs/chdfs_client.py +29 -29
- tccli/services/ciam/ciam_client.py +16 -16
- tccli/services/ckafka/ckafka_client.py +468 -76
- tccli/services/ckafka/v20190819/api.json +1009 -246
- tccli/services/ckafka/v20190819/examples.json +73 -23
- tccli/services/clb/clb_client.py +720 -384
- tccli/services/clb/v20180317/api.json +2255 -1017
- tccli/services/clb/v20180317/examples.json +184 -124
- tccli/services/cloudaudit/cloudaudit_client.py +18 -18
- tccli/services/cls/cls_client.py +86 -86
- tccli/services/cmq/cmq_client.py +2 -2
- tccli/services/config/config_client.py +6 -6
- tccli/services/controlcenter/controlcenter_client.py +225 -1
- tccli/services/controlcenter/v20230110/api.json +528 -5
- tccli/services/controlcenter/v20230110/examples.json +32 -0
- tccli/services/csip/csip_client.py +34 -34
- tccli/services/ctsdb/ctsdb_client.py +2 -2
- tccli/services/cvm/cvm_client.py +84 -84
- tccli/services/cvm/v20170312/api.json +175 -116
- tccli/services/cvm/v20170312/examples.json +93 -93
- tccli/services/cwp/cwp_client.py +465 -465
- tccli/services/cynosdb/cynosdb_client.py +154 -154
- tccli/services/dataintegration/dataintegration_client.py +1 -1
- tccli/services/dayu/dayu_client.py +103 -103
- tccli/services/dbbrain/dbbrain_client.py +42 -42
- tccli/services/dc/dc_client.py +18 -18
- tccli/services/dcdb/dcdb_client.py +62 -62
- tccli/services/dlc/dlc_client.py +109 -109
- tccli/services/dms/dms_client.py +2 -2
- tccli/services/dnspod/dnspod_client.py +40 -40
- tccli/services/domain/domain_client.py +24 -24
- tccli/services/dts/dts_client.py +83 -83
- tccli/services/eb/eb_client.py +26 -26
- tccli/services/ecdn/ecdn_client.py +15 -15
- tccli/services/ecm/ecm_client.py +124 -124
- tccli/services/eiam/eiam_client.py +40 -40
- tccli/services/emr/emr_client.py +77 -77
- tccli/services/emr/v20190103/api.json +6 -6
- tccli/services/es/es_client.py +21 -21
- tccli/services/facefusion/facefusion_client.py +3 -3
- tccli/services/faceid/faceid_client.py +19 -19
- tccli/services/faceid/v20180301/api.json +124 -46
- tccli/services/gaap/gaap_client.py +88 -88
- tccli/services/gme/gme_client.py +10 -10
- tccli/services/gpm/gpm_client.py +18 -18
- tccli/services/gse/gse_client.py +22 -22
- tccli/services/gwlb/gwlb_client.py +18 -18
- tccli/services/hunyuan/__init__.py +4 -0
- tccli/services/hunyuan/hunyuan_client.py +546 -0
- tccli/services/hunyuan/v20230901/api.json +628 -0
- tccli/services/hunyuan/v20230901/examples.json +60 -0
- tccli/services/iai/iai_client.py +29 -29
- tccli/services/iap/iap_client.py +6 -6
- tccli/services/ims/ims_client.py +1 -1
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +42 -42
- tccli/services/iotcloud/iotcloud_client.py +20 -20
- tccli/services/ip/ip_client.py +6 -6
- tccli/services/kms/kms_client.py +68 -68
- tccli/services/kms/v20190118/api.json +80 -3
- tccli/services/kms/v20190118/examples.json +3 -3
- tccli/services/lcic/lcic_client.py +53 -53
- tccli/services/lighthouse/lighthouse_client.py +434 -98
- tccli/services/lighthouse/v20200324/api.json +488 -0
- tccli/services/lighthouse/v20200324/examples.json +54 -0
- tccli/services/live/live_client.py +120 -120
- tccli/services/lke/lke_client.py +90 -90
- tccli/services/lkeap/lkeap_client.py +63 -7
- tccli/services/lkeap/v20240522/api.json +134 -0
- tccli/services/lkeap/v20240522/examples.json +21 -1
- tccli/services/mariadb/mariadb_client.py +50 -50
- tccli/services/mdc/mdc_client.py +18 -18
- tccli/services/mdl/mdl_client.py +225 -57
- tccli/services/mdl/v20200326/api.json +903 -59
- tccli/services/mdl/v20200326/examples.json +24 -0
- tccli/services/mdp/mdp_client.py +62 -62
- tccli/services/mdp/v20200527/api.json +191 -28
- tccli/services/message/message_client.py +1 -1
- tccli/services/mongodb/mongodb_client.py +1081 -129
- tccli/services/mongodb/v20190725/api.json +1798 -141
- tccli/services/mongodb/v20190725/examples.json +136 -0
- tccli/services/monitor/monitor_client.py +149 -149
- tccli/services/monitor/v20180724/api.json +8 -8
- tccli/services/mps/mps_client.py +1118 -278
- tccli/services/mps/v20190612/api.json +2117 -117
- tccli/services/mps/v20190612/examples.json +164 -62
- tccli/services/mqtt/__init__.py +4 -0
- tccli/services/mqtt/mqtt_client.py +1610 -0
- tccli/services/mqtt/v20240516/api.json +3057 -0
- tccli/services/mqtt/v20240516/examples.json +213 -0
- tccli/services/msp/msp_client.py +7 -7
- tccli/services/ocr/ocr_client.py +206 -38
- tccli/services/ocr/v20181119/api.json +726 -83
- tccli/services/ocr/v20181119/examples.json +36 -6
- tccli/services/omics/omics_client.py +20 -20
- tccli/services/organization/organization_client.py +116 -116
- tccli/services/postgres/postgres_client.py +91 -91
- tccli/services/privatedns/privatedns_client.py +31 -31
- tccli/services/pts/pts_client.py +48 -48
- tccli/services/quota/quota_client.py +5 -5
- tccli/services/rce/rce_client.py +1 -1
- tccli/services/redis/redis_client.py +109 -109
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/region/region_client.py +3 -3
- tccli/services/rum/rum_client.py +60 -60
- tccli/services/scf/scf_client.py +42 -42
- tccli/services/ses/ses_client.py +29 -29
- tccli/services/smh/__init__.py +4 -0
- tccli/services/smh/smh_client.py +714 -0
- tccli/services/smh/v20210712/api.json +1287 -0
- tccli/services/smh/v20210712/examples.json +85 -0
- tccli/services/sms/sms_client.py +18 -18
- tccli/services/sqlserver/sqlserver_client.py +139 -139
- tccli/services/ssl/ssl_client.py +38 -38
- tccli/services/ssm/ssm_client.py +24 -24
- tccli/services/sts/sts_client.py +5 -5
- tccli/services/tag/tag_client.py +30 -30
- tccli/services/tat/tat_client.py +19 -19
- tccli/services/tbaas/tbaas_client.py +4 -4
- tccli/services/tcaplusdb/tcaplusdb_client.py +52 -52
- tccli/services/tchd/tchd_client.py +1 -1
- tccli/services/tcmpp/tcmpp_client.py +104 -104
- tccli/services/tcr/tcr_client.py +76 -76
- tccli/services/tcsas/tcsas_client.py +2340 -268
- tccli/services/tcsas/v20250106/api.json +8410 -3423
- tccli/services/tcsas/v20250106/examples.json +308 -12
- tccli/services/tcss/tcss_client.py +330 -330
- tccli/services/tdid/tdid_client.py +48 -48
- tccli/services/tdmq/tdmq_client.py +2500 -372
- tccli/services/tdmq/v20200217/api.json +11607 -3958
- tccli/services/tdmq/v20200217/examples.json +562 -264
- tccli/services/tem/tem_client.py +56 -56
- tccli/services/teo/teo_client.py +466 -298
- tccli/services/teo/v20220901/api.json +324 -16
- tccli/services/teo/v20220901/examples.json +64 -22
- tccli/services/tione/tione_client.py +1 -1
- tccli/services/tiw/tiw_client.py +51 -51
- tccli/services/tke/tke_client.py +306 -138
- tccli/services/tke/v20180525/api.json +227 -0
- tccli/services/tke/v20180525/examples.json +24 -0
- tccli/services/tms/tms_client.py +1 -1
- tccli/services/tmt/tmt_client.py +1 -1
- tccli/services/trabbit/trabbit_client.py +29 -29
- tccli/services/trocket/__init__.py +4 -0
- tccli/services/trocket/trocket_client.py +2450 -0
- tccli/services/trocket/v20230308/api.json +6062 -0
- tccli/services/trocket/v20230308/examples.json +339 -0
- tccli/services/trro/trro_client.py +19 -19
- tccli/services/trtc/trtc_client.py +51 -51
- tccli/services/trtc/v20190722/api.json +15 -15
- tccli/services/tts/tts_client.py +1 -1
- tccli/services/vclm/vclm_client.py +2 -2
- tccli/services/vm/vm_client.py +4 -4
- tccli/services/vod/v20180717/api.json +2929 -296
- tccli/services/vod/v20180717/examples.json +40 -6
- tccli/services/vod/vod_client.py +459 -179
- tccli/services/vpc/v20170312/api.json +99 -29
- tccli/services/vpc/v20170312/examples.json +21 -13
- tccli/services/vpc/vpc_client.py +357 -301
- tccli/services/waf/waf_client.py +107 -107
- tccli/services/wedata/wedata_client.py +310 -310
- tccli/services/yunjing/yunjing_client.py +71 -71
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/RECORD +207 -187
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/top_level.txt +0 -0
tccli/services/mps/mps_client.py
CHANGED
|
@@ -42,7 +42,7 @@ def doDescribeAsrHotwords(args, parsed_globals):
|
|
|
42
42
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
43
43
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
44
44
|
)
|
|
45
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
45
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
46
46
|
if g_param[OptionsDefine.Language]:
|
|
47
47
|
profile.language = g_param[OptionsDefine.Language]
|
|
48
48
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -97,7 +97,7 @@ def doCreateSnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
97
97
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
98
98
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
99
99
|
)
|
|
100
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
100
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
101
101
|
if g_param[OptionsDefine.Language]:
|
|
102
102
|
profile.language = g_param[OptionsDefine.Language]
|
|
103
103
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -152,7 +152,7 @@ def doCreateAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
152
152
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
153
153
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
154
154
|
)
|
|
155
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
155
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
156
156
|
if g_param[OptionsDefine.Language]:
|
|
157
157
|
profile.language = g_param[OptionsDefine.Language]
|
|
158
158
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -207,7 +207,7 @@ def doDeleteWatermarkTemplate(args, parsed_globals):
|
|
|
207
207
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
208
208
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
209
209
|
)
|
|
210
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
210
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
211
211
|
if g_param[OptionsDefine.Language]:
|
|
212
212
|
profile.language = g_param[OptionsDefine.Language]
|
|
213
213
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -262,7 +262,7 @@ def doDescribeBatchTaskDetail(args, parsed_globals):
|
|
|
262
262
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
263
263
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
264
264
|
)
|
|
265
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
265
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
266
266
|
if g_param[OptionsDefine.Language]:
|
|
267
267
|
profile.language = g_param[OptionsDefine.Language]
|
|
268
268
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -317,7 +317,7 @@ def doModifyLiveRecordTemplate(args, parsed_globals):
|
|
|
317
317
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
318
318
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
319
319
|
)
|
|
320
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
320
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
321
321
|
if g_param[OptionsDefine.Language]:
|
|
322
322
|
profile.language = g_param[OptionsDefine.Language]
|
|
323
323
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -372,7 +372,7 @@ def doEditMedia(args, parsed_globals):
|
|
|
372
372
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
373
373
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
374
374
|
)
|
|
375
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
375
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
376
376
|
if g_param[OptionsDefine.Language]:
|
|
377
377
|
profile.language = g_param[OptionsDefine.Language]
|
|
378
378
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -402,6 +402,61 @@ def doEditMedia(args, parsed_globals):
|
|
|
402
402
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
403
403
|
|
|
404
404
|
|
|
405
|
+
def doCreateAigcImageTask(args, parsed_globals):
|
|
406
|
+
g_param = parse_global_arg(parsed_globals)
|
|
407
|
+
|
|
408
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
409
|
+
cred = credential.CVMRoleCredential()
|
|
410
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
411
|
+
cred = credential.STSAssumeRoleCredential(
|
|
412
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
413
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
414
|
+
)
|
|
415
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
416
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
417
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
418
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
419
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
420
|
+
else:
|
|
421
|
+
cred = credential.Credential(
|
|
422
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
423
|
+
)
|
|
424
|
+
http_profile = HttpProfile(
|
|
425
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
426
|
+
reqMethod="POST",
|
|
427
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
428
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
429
|
+
)
|
|
430
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
431
|
+
if g_param[OptionsDefine.Language]:
|
|
432
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
433
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
434
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
435
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
436
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
437
|
+
model = models.CreateAigcImageTaskRequest()
|
|
438
|
+
model.from_json_string(json.dumps(args))
|
|
439
|
+
start_time = time.time()
|
|
440
|
+
while True:
|
|
441
|
+
rsp = client.CreateAigcImageTask(model)
|
|
442
|
+
result = rsp.to_json_string()
|
|
443
|
+
try:
|
|
444
|
+
json_obj = json.loads(result)
|
|
445
|
+
except TypeError as e:
|
|
446
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
447
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
448
|
+
break
|
|
449
|
+
cur_time = time.time()
|
|
450
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
451
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
452
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
453
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
454
|
+
else:
|
|
455
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
456
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
457
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
458
|
+
|
|
459
|
+
|
|
405
460
|
def doDeleteAnimatedGraphicsTemplate(args, parsed_globals):
|
|
406
461
|
g_param = parse_global_arg(parsed_globals)
|
|
407
462
|
|
|
@@ -427,7 +482,7 @@ def doDeleteAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
427
482
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
428
483
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
429
484
|
)
|
|
430
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
485
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
431
486
|
if g_param[OptionsDefine.Language]:
|
|
432
487
|
profile.language = g_param[OptionsDefine.Language]
|
|
433
488
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -482,7 +537,7 @@ def doDescribeAIAnalysisTemplates(args, parsed_globals):
|
|
|
482
537
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
483
538
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
484
539
|
)
|
|
485
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
540
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
486
541
|
if g_param[OptionsDefine.Language]:
|
|
487
542
|
profile.language = g_param[OptionsDefine.Language]
|
|
488
543
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -537,7 +592,7 @@ def doDeleteSmartSubtitleTemplate(args, parsed_globals):
|
|
|
537
592
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
538
593
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
539
594
|
)
|
|
540
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
595
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
541
596
|
if g_param[OptionsDefine.Language]:
|
|
542
597
|
profile.language = g_param[OptionsDefine.Language]
|
|
543
598
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -567,7 +622,7 @@ def doDeleteSmartSubtitleTemplate(args, parsed_globals):
|
|
|
567
622
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
568
623
|
|
|
569
624
|
|
|
570
|
-
def
|
|
625
|
+
def doCreateLiveRecordTemplate(args, parsed_globals):
|
|
571
626
|
g_param = parse_global_arg(parsed_globals)
|
|
572
627
|
|
|
573
628
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -592,18 +647,18 @@ def doParseLiveStreamProcessNotification(args, parsed_globals):
|
|
|
592
647
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
593
648
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
594
649
|
)
|
|
595
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
650
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
596
651
|
if g_param[OptionsDefine.Language]:
|
|
597
652
|
profile.language = g_param[OptionsDefine.Language]
|
|
598
653
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
599
654
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
600
655
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
601
656
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
602
|
-
model = models.
|
|
657
|
+
model = models.CreateLiveRecordTemplateRequest()
|
|
603
658
|
model.from_json_string(json.dumps(args))
|
|
604
659
|
start_time = time.time()
|
|
605
660
|
while True:
|
|
606
|
-
rsp = client.
|
|
661
|
+
rsp = client.CreateLiveRecordTemplate(model)
|
|
607
662
|
result = rsp.to_json_string()
|
|
608
663
|
try:
|
|
609
664
|
json_obj = json.loads(result)
|
|
@@ -647,7 +702,7 @@ def doDeleteTranscodeTemplate(args, parsed_globals):
|
|
|
647
702
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
648
703
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
649
704
|
)
|
|
650
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
705
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
651
706
|
if g_param[OptionsDefine.Language]:
|
|
652
707
|
profile.language = g_param[OptionsDefine.Language]
|
|
653
708
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -702,7 +757,7 @@ def doDescribeTaskDetail(args, parsed_globals):
|
|
|
702
757
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
703
758
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
704
759
|
)
|
|
705
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
760
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
706
761
|
if g_param[OptionsDefine.Language]:
|
|
707
762
|
profile.language = g_param[OptionsDefine.Language]
|
|
708
763
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -757,7 +812,7 @@ def doDescribeWordSamples(args, parsed_globals):
|
|
|
757
812
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
758
813
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
759
814
|
)
|
|
760
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
815
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
761
816
|
if g_param[OptionsDefine.Language]:
|
|
762
817
|
profile.language = g_param[OptionsDefine.Language]
|
|
763
818
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -812,7 +867,7 @@ def doProcessMedia(args, parsed_globals):
|
|
|
812
867
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
813
868
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
814
869
|
)
|
|
815
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
870
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
816
871
|
if g_param[OptionsDefine.Language]:
|
|
817
872
|
profile.language = g_param[OptionsDefine.Language]
|
|
818
873
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -867,7 +922,7 @@ def doModifyAIAnalysisTemplate(args, parsed_globals):
|
|
|
867
922
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
868
923
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
869
924
|
)
|
|
870
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
925
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
871
926
|
if g_param[OptionsDefine.Language]:
|
|
872
927
|
profile.language = g_param[OptionsDefine.Language]
|
|
873
928
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -922,7 +977,7 @@ def doDeleteAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
922
977
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
923
978
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
924
979
|
)
|
|
925
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
980
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
926
981
|
if g_param[OptionsDefine.Language]:
|
|
927
982
|
profile.language = g_param[OptionsDefine.Language]
|
|
928
983
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -977,7 +1032,7 @@ def doCreateAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
977
1032
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
978
1033
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
979
1034
|
)
|
|
980
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1035
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
981
1036
|
if g_param[OptionsDefine.Language]:
|
|
982
1037
|
profile.language = g_param[OptionsDefine.Language]
|
|
983
1038
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1032,7 +1087,7 @@ def doDisableWorkflow(args, parsed_globals):
|
|
|
1032
1087
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1033
1088
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1034
1089
|
)
|
|
1035
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1090
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1036
1091
|
if g_param[OptionsDefine.Language]:
|
|
1037
1092
|
profile.language = g_param[OptionsDefine.Language]
|
|
1038
1093
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1087,7 +1142,7 @@ def doDescribeSampleSnapshotTemplates(args, parsed_globals):
|
|
|
1087
1142
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1088
1143
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1089
1144
|
)
|
|
1090
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1145
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1091
1146
|
if g_param[OptionsDefine.Language]:
|
|
1092
1147
|
profile.language = g_param[OptionsDefine.Language]
|
|
1093
1148
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1142,7 +1197,7 @@ def doDescribeLiveRecordTemplates(args, parsed_globals):
|
|
|
1142
1197
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1143
1198
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1144
1199
|
)
|
|
1145
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1200
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1146
1201
|
if g_param[OptionsDefine.Language]:
|
|
1147
1202
|
profile.language = g_param[OptionsDefine.Language]
|
|
1148
1203
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1172,7 +1227,7 @@ def doDescribeLiveRecordTemplates(args, parsed_globals):
|
|
|
1172
1227
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1173
1228
|
|
|
1174
1229
|
|
|
1175
|
-
def
|
|
1230
|
+
def doDeleteAsrHotwords(args, parsed_globals):
|
|
1176
1231
|
g_param = parse_global_arg(parsed_globals)
|
|
1177
1232
|
|
|
1178
1233
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1197,18 +1252,18 @@ def doDeleteSnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
1197
1252
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1198
1253
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1199
1254
|
)
|
|
1200
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1255
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1201
1256
|
if g_param[OptionsDefine.Language]:
|
|
1202
1257
|
profile.language = g_param[OptionsDefine.Language]
|
|
1203
1258
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1204
1259
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1205
1260
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1206
1261
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1207
|
-
model = models.
|
|
1262
|
+
model = models.DeleteAsrHotwordsRequest()
|
|
1208
1263
|
model.from_json_string(json.dumps(args))
|
|
1209
1264
|
start_time = time.time()
|
|
1210
1265
|
while True:
|
|
1211
|
-
rsp = client.
|
|
1266
|
+
rsp = client.DeleteAsrHotwords(model)
|
|
1212
1267
|
result = rsp.to_json_string()
|
|
1213
1268
|
try:
|
|
1214
1269
|
json_obj = json.loads(result)
|
|
@@ -1252,7 +1307,7 @@ def doEnableWorkflow(args, parsed_globals):
|
|
|
1252
1307
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1253
1308
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1254
1309
|
)
|
|
1255
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1310
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1256
1311
|
if g_param[OptionsDefine.Language]:
|
|
1257
1312
|
profile.language = g_param[OptionsDefine.Language]
|
|
1258
1313
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1307,7 +1362,7 @@ def doDescribeAsrHotwordsList(args, parsed_globals):
|
|
|
1307
1362
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1308
1363
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1309
1364
|
)
|
|
1310
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1365
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1311
1366
|
if g_param[OptionsDefine.Language]:
|
|
1312
1367
|
profile.language = g_param[OptionsDefine.Language]
|
|
1313
1368
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1362,7 +1417,7 @@ def doDescribeTasks(args, parsed_globals):
|
|
|
1362
1417
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1363
1418
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1364
1419
|
)
|
|
1365
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1420
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1366
1421
|
if g_param[OptionsDefine.Language]:
|
|
1367
1422
|
profile.language = g_param[OptionsDefine.Language]
|
|
1368
1423
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1417,7 +1472,7 @@ def doCreateTranscodeTemplate(args, parsed_globals):
|
|
|
1417
1472
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1418
1473
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1419
1474
|
)
|
|
1420
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1475
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1421
1476
|
if g_param[OptionsDefine.Language]:
|
|
1422
1477
|
profile.language = g_param[OptionsDefine.Language]
|
|
1423
1478
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1472,7 +1527,7 @@ def doExecuteFunction(args, parsed_globals):
|
|
|
1472
1527
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1473
1528
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1474
1529
|
)
|
|
1475
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1530
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1476
1531
|
if g_param[OptionsDefine.Language]:
|
|
1477
1532
|
profile.language = g_param[OptionsDefine.Language]
|
|
1478
1533
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -1502,7 +1557,7 @@ def doExecuteFunction(args, parsed_globals):
|
|
|
1502
1557
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1503
1558
|
|
|
1504
1559
|
|
|
1505
|
-
def
|
|
1560
|
+
def doDeleteProcessImageTemplate(args, parsed_globals):
|
|
1506
1561
|
g_param = parse_global_arg(parsed_globals)
|
|
1507
1562
|
|
|
1508
1563
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1527,18 +1582,18 @@ def doBatchProcessMedia(args, parsed_globals):
|
|
|
1527
1582
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1528
1583
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1529
1584
|
)
|
|
1530
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1585
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1531
1586
|
if g_param[OptionsDefine.Language]:
|
|
1532
1587
|
profile.language = g_param[OptionsDefine.Language]
|
|
1533
1588
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1534
1589
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1535
1590
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1536
1591
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1537
|
-
model = models.
|
|
1592
|
+
model = models.DeleteProcessImageTemplateRequest()
|
|
1538
1593
|
model.from_json_string(json.dumps(args))
|
|
1539
1594
|
start_time = time.time()
|
|
1540
1595
|
while True:
|
|
1541
|
-
rsp = client.
|
|
1596
|
+
rsp = client.DeleteProcessImageTemplate(model)
|
|
1542
1597
|
result = rsp.to_json_string()
|
|
1543
1598
|
try:
|
|
1544
1599
|
json_obj = json.loads(result)
|
|
@@ -1557,7 +1612,7 @@ def doBatchProcessMedia(args, parsed_globals):
|
|
|
1557
1612
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1558
1613
|
|
|
1559
1614
|
|
|
1560
|
-
def
|
|
1615
|
+
def doModifyProcessImageTemplate(args, parsed_globals):
|
|
1561
1616
|
g_param = parse_global_arg(parsed_globals)
|
|
1562
1617
|
|
|
1563
1618
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1582,18 +1637,18 @@ def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
|
|
|
1582
1637
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1583
1638
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1584
1639
|
)
|
|
1585
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1640
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1586
1641
|
if g_param[OptionsDefine.Language]:
|
|
1587
1642
|
profile.language = g_param[OptionsDefine.Language]
|
|
1588
1643
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1589
1644
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1590
1645
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1591
1646
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1592
|
-
model = models.
|
|
1647
|
+
model = models.ModifyProcessImageTemplateRequest()
|
|
1593
1648
|
model.from_json_string(json.dumps(args))
|
|
1594
1649
|
start_time = time.time()
|
|
1595
1650
|
while True:
|
|
1596
|
-
rsp = client.
|
|
1651
|
+
rsp = client.ModifyProcessImageTemplate(model)
|
|
1597
1652
|
result = rsp.to_json_string()
|
|
1598
1653
|
try:
|
|
1599
1654
|
json_obj = json.loads(result)
|
|
@@ -1612,7 +1667,7 @@ def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
|
|
|
1612
1667
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1613
1668
|
|
|
1614
1669
|
|
|
1615
|
-
def
|
|
1670
|
+
def doBatchProcessMedia(args, parsed_globals):
|
|
1616
1671
|
g_param = parse_global_arg(parsed_globals)
|
|
1617
1672
|
|
|
1618
1673
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1637,18 +1692,18 @@ def doDeleteSampleSnapshotTemplate(args, parsed_globals):
|
|
|
1637
1692
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1638
1693
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1639
1694
|
)
|
|
1640
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1695
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1641
1696
|
if g_param[OptionsDefine.Language]:
|
|
1642
1697
|
profile.language = g_param[OptionsDefine.Language]
|
|
1643
1698
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1644
1699
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1645
1700
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1646
1701
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1647
|
-
model = models.
|
|
1702
|
+
model = models.BatchProcessMediaRequest()
|
|
1648
1703
|
model.from_json_string(json.dumps(args))
|
|
1649
1704
|
start_time = time.time()
|
|
1650
1705
|
while True:
|
|
1651
|
-
rsp = client.
|
|
1706
|
+
rsp = client.BatchProcessMedia(model)
|
|
1652
1707
|
result = rsp.to_json_string()
|
|
1653
1708
|
try:
|
|
1654
1709
|
json_obj = json.loads(result)
|
|
@@ -1667,7 +1722,7 @@ def doDeleteSampleSnapshotTemplate(args, parsed_globals):
|
|
|
1667
1722
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1668
1723
|
|
|
1669
1724
|
|
|
1670
|
-
def
|
|
1725
|
+
def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
|
|
1671
1726
|
g_param = parse_global_arg(parsed_globals)
|
|
1672
1727
|
|
|
1673
1728
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1692,18 +1747,18 @@ def doCreateContentReviewTemplate(args, parsed_globals):
|
|
|
1692
1747
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1693
1748
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1694
1749
|
)
|
|
1695
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1750
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1696
1751
|
if g_param[OptionsDefine.Language]:
|
|
1697
1752
|
profile.language = g_param[OptionsDefine.Language]
|
|
1698
1753
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1699
1754
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1700
1755
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1701
1756
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1702
|
-
model = models.
|
|
1757
|
+
model = models.DescribeSnapshotByTimeOffsetTemplatesRequest()
|
|
1703
1758
|
model.from_json_string(json.dumps(args))
|
|
1704
1759
|
start_time = time.time()
|
|
1705
1760
|
while True:
|
|
1706
|
-
rsp = client.
|
|
1761
|
+
rsp = client.DescribeSnapshotByTimeOffsetTemplates(model)
|
|
1707
1762
|
result = rsp.to_json_string()
|
|
1708
1763
|
try:
|
|
1709
1764
|
json_obj = json.loads(result)
|
|
@@ -1722,7 +1777,7 @@ def doCreateContentReviewTemplate(args, parsed_globals):
|
|
|
1722
1777
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1723
1778
|
|
|
1724
1779
|
|
|
1725
|
-
def
|
|
1780
|
+
def doDeleteSampleSnapshotTemplate(args, parsed_globals):
|
|
1726
1781
|
g_param = parse_global_arg(parsed_globals)
|
|
1727
1782
|
|
|
1728
1783
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1747,18 +1802,18 @@ def doCreateSampleSnapshotTemplate(args, parsed_globals):
|
|
|
1747
1802
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1748
1803
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1749
1804
|
)
|
|
1750
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1805
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1751
1806
|
if g_param[OptionsDefine.Language]:
|
|
1752
1807
|
profile.language = g_param[OptionsDefine.Language]
|
|
1753
1808
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1754
1809
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1755
1810
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1756
1811
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1757
|
-
model = models.
|
|
1812
|
+
model = models.DeleteSampleSnapshotTemplateRequest()
|
|
1758
1813
|
model.from_json_string(json.dumps(args))
|
|
1759
1814
|
start_time = time.time()
|
|
1760
1815
|
while True:
|
|
1761
|
-
rsp = client.
|
|
1816
|
+
rsp = client.DeleteSampleSnapshotTemplate(model)
|
|
1762
1817
|
result = rsp.to_json_string()
|
|
1763
1818
|
try:
|
|
1764
1819
|
json_obj = json.loads(result)
|
|
@@ -1777,7 +1832,7 @@ def doCreateSampleSnapshotTemplate(args, parsed_globals):
|
|
|
1777
1832
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1778
1833
|
|
|
1779
1834
|
|
|
1780
|
-
def
|
|
1835
|
+
def doCreateContentReviewTemplate(args, parsed_globals):
|
|
1781
1836
|
g_param = parse_global_arg(parsed_globals)
|
|
1782
1837
|
|
|
1783
1838
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1802,18 +1857,18 @@ def doDeleteAIAnalysisTemplate(args, parsed_globals):
|
|
|
1802
1857
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1803
1858
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1804
1859
|
)
|
|
1805
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1860
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1806
1861
|
if g_param[OptionsDefine.Language]:
|
|
1807
1862
|
profile.language = g_param[OptionsDefine.Language]
|
|
1808
1863
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1809
1864
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1810
1865
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1811
1866
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1812
|
-
model = models.
|
|
1867
|
+
model = models.CreateContentReviewTemplateRequest()
|
|
1813
1868
|
model.from_json_string(json.dumps(args))
|
|
1814
1869
|
start_time = time.time()
|
|
1815
1870
|
while True:
|
|
1816
|
-
rsp = client.
|
|
1871
|
+
rsp = client.CreateContentReviewTemplate(model)
|
|
1817
1872
|
result = rsp.to_json_string()
|
|
1818
1873
|
try:
|
|
1819
1874
|
json_obj = json.loads(result)
|
|
@@ -1832,7 +1887,7 @@ def doDeleteAIAnalysisTemplate(args, parsed_globals):
|
|
|
1832
1887
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1833
1888
|
|
|
1834
1889
|
|
|
1835
|
-
def
|
|
1890
|
+
def doModifyBlindWatermarkTemplate(args, parsed_globals):
|
|
1836
1891
|
g_param = parse_global_arg(parsed_globals)
|
|
1837
1892
|
|
|
1838
1893
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1857,18 +1912,18 @@ def doModifySchedule(args, parsed_globals):
|
|
|
1857
1912
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1858
1913
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1859
1914
|
)
|
|
1860
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1915
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1861
1916
|
if g_param[OptionsDefine.Language]:
|
|
1862
1917
|
profile.language = g_param[OptionsDefine.Language]
|
|
1863
1918
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1864
1919
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1865
1920
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1866
1921
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1867
|
-
model = models.
|
|
1922
|
+
model = models.ModifyBlindWatermarkTemplateRequest()
|
|
1868
1923
|
model.from_json_string(json.dumps(args))
|
|
1869
1924
|
start_time = time.time()
|
|
1870
1925
|
while True:
|
|
1871
|
-
rsp = client.
|
|
1926
|
+
rsp = client.ModifyBlindWatermarkTemplate(model)
|
|
1872
1927
|
result = rsp.to_json_string()
|
|
1873
1928
|
try:
|
|
1874
1929
|
json_obj = json.loads(result)
|
|
@@ -1887,7 +1942,7 @@ def doModifySchedule(args, parsed_globals):
|
|
|
1887
1942
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1888
1943
|
|
|
1889
1944
|
|
|
1890
|
-
def
|
|
1945
|
+
def doCreateSampleSnapshotTemplate(args, parsed_globals):
|
|
1891
1946
|
g_param = parse_global_arg(parsed_globals)
|
|
1892
1947
|
|
|
1893
1948
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1912,18 +1967,18 @@ def doDescribeMediaMetaData(args, parsed_globals):
|
|
|
1912
1967
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1913
1968
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1914
1969
|
)
|
|
1915
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1970
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1916
1971
|
if g_param[OptionsDefine.Language]:
|
|
1917
1972
|
profile.language = g_param[OptionsDefine.Language]
|
|
1918
1973
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1919
1974
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1920
1975
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1921
1976
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1922
|
-
model = models.
|
|
1977
|
+
model = models.CreateSampleSnapshotTemplateRequest()
|
|
1923
1978
|
model.from_json_string(json.dumps(args))
|
|
1924
1979
|
start_time = time.time()
|
|
1925
1980
|
while True:
|
|
1926
|
-
rsp = client.
|
|
1981
|
+
rsp = client.CreateSampleSnapshotTemplate(model)
|
|
1927
1982
|
result = rsp.to_json_string()
|
|
1928
1983
|
try:
|
|
1929
1984
|
json_obj = json.loads(result)
|
|
@@ -1942,7 +1997,7 @@ def doDescribeMediaMetaData(args, parsed_globals):
|
|
|
1942
1997
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1943
1998
|
|
|
1944
1999
|
|
|
1945
|
-
def
|
|
2000
|
+
def doDeleteAIAnalysisTemplate(args, parsed_globals):
|
|
1946
2001
|
g_param = parse_global_arg(parsed_globals)
|
|
1947
2002
|
|
|
1948
2003
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1967,18 +2022,18 @@ def doModifySampleSnapshotTemplate(args, parsed_globals):
|
|
|
1967
2022
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1968
2023
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1969
2024
|
)
|
|
1970
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2025
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1971
2026
|
if g_param[OptionsDefine.Language]:
|
|
1972
2027
|
profile.language = g_param[OptionsDefine.Language]
|
|
1973
2028
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1974
2029
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1975
2030
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1976
2031
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1977
|
-
model = models.
|
|
2032
|
+
model = models.DeleteAIAnalysisTemplateRequest()
|
|
1978
2033
|
model.from_json_string(json.dumps(args))
|
|
1979
2034
|
start_time = time.time()
|
|
1980
2035
|
while True:
|
|
1981
|
-
rsp = client.
|
|
2036
|
+
rsp = client.DeleteAIAnalysisTemplate(model)
|
|
1982
2037
|
result = rsp.to_json_string()
|
|
1983
2038
|
try:
|
|
1984
2039
|
json_obj = json.loads(result)
|
|
@@ -1997,7 +2052,7 @@ def doModifySampleSnapshotTemplate(args, parsed_globals):
|
|
|
1997
2052
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1998
2053
|
|
|
1999
2054
|
|
|
2000
|
-
def
|
|
2055
|
+
def doModifySchedule(args, parsed_globals):
|
|
2001
2056
|
g_param = parse_global_arg(parsed_globals)
|
|
2002
2057
|
|
|
2003
2058
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2022,18 +2077,18 @@ def doResetWorkflow(args, parsed_globals):
|
|
|
2022
2077
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2023
2078
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2024
2079
|
)
|
|
2025
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2080
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2026
2081
|
if g_param[OptionsDefine.Language]:
|
|
2027
2082
|
profile.language = g_param[OptionsDefine.Language]
|
|
2028
2083
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2029
2084
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2030
2085
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2031
2086
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2032
|
-
model = models.
|
|
2087
|
+
model = models.ModifyScheduleRequest()
|
|
2033
2088
|
model.from_json_string(json.dumps(args))
|
|
2034
2089
|
start_time = time.time()
|
|
2035
2090
|
while True:
|
|
2036
|
-
rsp = client.
|
|
2091
|
+
rsp = client.ModifySchedule(model)
|
|
2037
2092
|
result = rsp.to_json_string()
|
|
2038
2093
|
try:
|
|
2039
2094
|
json_obj = json.loads(result)
|
|
@@ -2052,7 +2107,7 @@ def doResetWorkflow(args, parsed_globals):
|
|
|
2052
2107
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2053
2108
|
|
|
2054
2109
|
|
|
2055
|
-
def
|
|
2110
|
+
def doDescribeMediaMetaData(args, parsed_globals):
|
|
2056
2111
|
g_param = parse_global_arg(parsed_globals)
|
|
2057
2112
|
|
|
2058
2113
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2077,18 +2132,18 @@ def doDeleteQualityControlTemplate(args, parsed_globals):
|
|
|
2077
2132
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2078
2133
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2079
2134
|
)
|
|
2080
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2135
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2081
2136
|
if g_param[OptionsDefine.Language]:
|
|
2082
2137
|
profile.language = g_param[OptionsDefine.Language]
|
|
2083
2138
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2084
2139
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2085
2140
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2086
2141
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2087
|
-
model = models.
|
|
2142
|
+
model = models.DescribeMediaMetaDataRequest()
|
|
2088
2143
|
model.from_json_string(json.dumps(args))
|
|
2089
2144
|
start_time = time.time()
|
|
2090
2145
|
while True:
|
|
2091
|
-
rsp = client.
|
|
2146
|
+
rsp = client.DescribeMediaMetaData(model)
|
|
2092
2147
|
result = rsp.to_json_string()
|
|
2093
2148
|
try:
|
|
2094
2149
|
json_obj = json.loads(result)
|
|
@@ -2107,7 +2162,7 @@ def doDeleteQualityControlTemplate(args, parsed_globals):
|
|
|
2107
2162
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2108
2163
|
|
|
2109
2164
|
|
|
2110
|
-
def
|
|
2165
|
+
def doModifyWordSample(args, parsed_globals):
|
|
2111
2166
|
g_param = parse_global_arg(parsed_globals)
|
|
2112
2167
|
|
|
2113
2168
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2132,18 +2187,18 @@ def doDeleteWorkflow(args, parsed_globals):
|
|
|
2132
2187
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2133
2188
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2134
2189
|
)
|
|
2135
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2190
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2136
2191
|
if g_param[OptionsDefine.Language]:
|
|
2137
2192
|
profile.language = g_param[OptionsDefine.Language]
|
|
2138
2193
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2139
2194
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2140
2195
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2141
2196
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2142
|
-
model = models.
|
|
2197
|
+
model = models.ModifyWordSampleRequest()
|
|
2143
2198
|
model.from_json_string(json.dumps(args))
|
|
2144
2199
|
start_time = time.time()
|
|
2145
2200
|
while True:
|
|
2146
|
-
rsp = client.
|
|
2201
|
+
rsp = client.ModifyWordSample(model)
|
|
2147
2202
|
result = rsp.to_json_string()
|
|
2148
2203
|
try:
|
|
2149
2204
|
json_obj = json.loads(result)
|
|
@@ -2162,7 +2217,7 @@ def doDeleteWorkflow(args, parsed_globals):
|
|
|
2162
2217
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2163
2218
|
|
|
2164
2219
|
|
|
2165
|
-
def
|
|
2220
|
+
def doModifySampleSnapshotTemplate(args, parsed_globals):
|
|
2166
2221
|
g_param = parse_global_arg(parsed_globals)
|
|
2167
2222
|
|
|
2168
2223
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2187,18 +2242,18 @@ def doCreateQualityControlTemplate(args, parsed_globals):
|
|
|
2187
2242
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2188
2243
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2189
2244
|
)
|
|
2190
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2245
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2191
2246
|
if g_param[OptionsDefine.Language]:
|
|
2192
2247
|
profile.language = g_param[OptionsDefine.Language]
|
|
2193
2248
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2194
2249
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2195
2250
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2196
2251
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2197
|
-
model = models.
|
|
2252
|
+
model = models.ModifySampleSnapshotTemplateRequest()
|
|
2198
2253
|
model.from_json_string(json.dumps(args))
|
|
2199
2254
|
start_time = time.time()
|
|
2200
2255
|
while True:
|
|
2201
|
-
rsp = client.
|
|
2256
|
+
rsp = client.ModifySampleSnapshotTemplate(model)
|
|
2202
2257
|
result = rsp.to_json_string()
|
|
2203
2258
|
try:
|
|
2204
2259
|
json_obj = json.loads(result)
|
|
@@ -2217,7 +2272,7 @@ def doCreateQualityControlTemplate(args, parsed_globals):
|
|
|
2217
2272
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2218
2273
|
|
|
2219
2274
|
|
|
2220
|
-
def
|
|
2275
|
+
def doResetWorkflow(args, parsed_globals):
|
|
2221
2276
|
g_param = parse_global_arg(parsed_globals)
|
|
2222
2277
|
|
|
2223
2278
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2242,18 +2297,18 @@ def doModifyImageSpriteTemplate(args, parsed_globals):
|
|
|
2242
2297
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2243
2298
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2244
2299
|
)
|
|
2245
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2300
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2246
2301
|
if g_param[OptionsDefine.Language]:
|
|
2247
2302
|
profile.language = g_param[OptionsDefine.Language]
|
|
2248
2303
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2249
2304
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2250
2305
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2251
2306
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2252
|
-
model = models.
|
|
2307
|
+
model = models.ResetWorkflowRequest()
|
|
2253
2308
|
model.from_json_string(json.dumps(args))
|
|
2254
2309
|
start_time = time.time()
|
|
2255
2310
|
while True:
|
|
2256
|
-
rsp = client.
|
|
2311
|
+
rsp = client.ResetWorkflow(model)
|
|
2257
2312
|
result = rsp.to_json_string()
|
|
2258
2313
|
try:
|
|
2259
2314
|
json_obj = json.loads(result)
|
|
@@ -2272,7 +2327,7 @@ def doModifyImageSpriteTemplate(args, parsed_globals):
|
|
|
2272
2327
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2273
2328
|
|
|
2274
2329
|
|
|
2275
|
-
def
|
|
2330
|
+
def doDeleteQualityControlTemplate(args, parsed_globals):
|
|
2276
2331
|
g_param = parse_global_arg(parsed_globals)
|
|
2277
2332
|
|
|
2278
2333
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2297,18 +2352,18 @@ def doDescribeTranscodeTemplates(args, parsed_globals):
|
|
|
2297
2352
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2298
2353
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2299
2354
|
)
|
|
2300
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2355
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2301
2356
|
if g_param[OptionsDefine.Language]:
|
|
2302
2357
|
profile.language = g_param[OptionsDefine.Language]
|
|
2303
2358
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2304
2359
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2305
2360
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2306
2361
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2307
|
-
model = models.
|
|
2362
|
+
model = models.DeleteQualityControlTemplateRequest()
|
|
2308
2363
|
model.from_json_string(json.dumps(args))
|
|
2309
2364
|
start_time = time.time()
|
|
2310
2365
|
while True:
|
|
2311
|
-
rsp = client.
|
|
2366
|
+
rsp = client.DeleteQualityControlTemplate(model)
|
|
2312
2367
|
result = rsp.to_json_string()
|
|
2313
2368
|
try:
|
|
2314
2369
|
json_obj = json.loads(result)
|
|
@@ -2327,7 +2382,7 @@ def doDescribeTranscodeTemplates(args, parsed_globals):
|
|
|
2327
2382
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2328
2383
|
|
|
2329
2384
|
|
|
2330
|
-
def
|
|
2385
|
+
def doDeleteWorkflow(args, parsed_globals):
|
|
2331
2386
|
g_param = parse_global_arg(parsed_globals)
|
|
2332
2387
|
|
|
2333
2388
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2352,18 +2407,18 @@ def doProcessImage(args, parsed_globals):
|
|
|
2352
2407
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2353
2408
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2354
2409
|
)
|
|
2355
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2410
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2356
2411
|
if g_param[OptionsDefine.Language]:
|
|
2357
2412
|
profile.language = g_param[OptionsDefine.Language]
|
|
2358
2413
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2359
2414
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2360
2415
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2361
2416
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2362
|
-
model = models.
|
|
2417
|
+
model = models.DeleteWorkflowRequest()
|
|
2363
2418
|
model.from_json_string(json.dumps(args))
|
|
2364
2419
|
start_time = time.time()
|
|
2365
2420
|
while True:
|
|
2366
|
-
rsp = client.
|
|
2421
|
+
rsp = client.DeleteWorkflow(model)
|
|
2367
2422
|
result = rsp.to_json_string()
|
|
2368
2423
|
try:
|
|
2369
2424
|
json_obj = json.loads(result)
|
|
@@ -2382,7 +2437,7 @@ def doProcessImage(args, parsed_globals):
|
|
|
2382
2437
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2383
2438
|
|
|
2384
2439
|
|
|
2385
|
-
def
|
|
2440
|
+
def doCreateQualityControlTemplate(args, parsed_globals):
|
|
2386
2441
|
g_param = parse_global_arg(parsed_globals)
|
|
2387
2442
|
|
|
2388
2443
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2407,18 +2462,18 @@ def doDescribeSmartEraseTemplates(args, parsed_globals):
|
|
|
2407
2462
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2408
2463
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2409
2464
|
)
|
|
2410
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2465
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2411
2466
|
if g_param[OptionsDefine.Language]:
|
|
2412
2467
|
profile.language = g_param[OptionsDefine.Language]
|
|
2413
2468
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2414
2469
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2415
2470
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2416
2471
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2417
|
-
model = models.
|
|
2472
|
+
model = models.CreateQualityControlTemplateRequest()
|
|
2418
2473
|
model.from_json_string(json.dumps(args))
|
|
2419
2474
|
start_time = time.time()
|
|
2420
2475
|
while True:
|
|
2421
|
-
rsp = client.
|
|
2476
|
+
rsp = client.CreateQualityControlTemplate(model)
|
|
2422
2477
|
result = rsp.to_json_string()
|
|
2423
2478
|
try:
|
|
2424
2479
|
json_obj = json.loads(result)
|
|
@@ -2437,7 +2492,7 @@ def doDescribeSmartEraseTemplates(args, parsed_globals):
|
|
|
2437
2492
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2438
2493
|
|
|
2439
2494
|
|
|
2440
|
-
def
|
|
2495
|
+
def doModifyImageSpriteTemplate(args, parsed_globals):
|
|
2441
2496
|
g_param = parse_global_arg(parsed_globals)
|
|
2442
2497
|
|
|
2443
2498
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2462,18 +2517,18 @@ def doModifySmartEraseTemplate(args, parsed_globals):
|
|
|
2462
2517
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2463
2518
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2464
2519
|
)
|
|
2465
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2520
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2466
2521
|
if g_param[OptionsDefine.Language]:
|
|
2467
2522
|
profile.language = g_param[OptionsDefine.Language]
|
|
2468
2523
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2469
2524
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2470
2525
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2471
2526
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2472
|
-
model = models.
|
|
2527
|
+
model = models.ModifyImageSpriteTemplateRequest()
|
|
2473
2528
|
model.from_json_string(json.dumps(args))
|
|
2474
2529
|
start_time = time.time()
|
|
2475
2530
|
while True:
|
|
2476
|
-
rsp = client.
|
|
2531
|
+
rsp = client.ModifyImageSpriteTemplate(model)
|
|
2477
2532
|
result = rsp.to_json_string()
|
|
2478
2533
|
try:
|
|
2479
2534
|
json_obj = json.loads(result)
|
|
@@ -2492,7 +2547,7 @@ def doModifySmartEraseTemplate(args, parsed_globals):
|
|
|
2492
2547
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2493
2548
|
|
|
2494
2549
|
|
|
2495
|
-
def
|
|
2550
|
+
def doDescribeTranscodeTemplates(args, parsed_globals):
|
|
2496
2551
|
g_param = parse_global_arg(parsed_globals)
|
|
2497
2552
|
|
|
2498
2553
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2517,18 +2572,18 @@ def doCreateSmartSubtitleTemplate(args, parsed_globals):
|
|
|
2517
2572
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2518
2573
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2519
2574
|
)
|
|
2520
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2575
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2521
2576
|
if g_param[OptionsDefine.Language]:
|
|
2522
2577
|
profile.language = g_param[OptionsDefine.Language]
|
|
2523
2578
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2524
2579
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2525
2580
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2526
2581
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2527
|
-
model = models.
|
|
2582
|
+
model = models.DescribeTranscodeTemplatesRequest()
|
|
2528
2583
|
model.from_json_string(json.dumps(args))
|
|
2529
2584
|
start_time = time.time()
|
|
2530
2585
|
while True:
|
|
2531
|
-
rsp = client.
|
|
2586
|
+
rsp = client.DescribeTranscodeTemplates(model)
|
|
2532
2587
|
result = rsp.to_json_string()
|
|
2533
2588
|
try:
|
|
2534
2589
|
json_obj = json.loads(result)
|
|
@@ -2547,7 +2602,7 @@ def doCreateSmartSubtitleTemplate(args, parsed_globals):
|
|
|
2547
2602
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2548
2603
|
|
|
2549
2604
|
|
|
2550
|
-
def
|
|
2605
|
+
def doProcessImage(args, parsed_globals):
|
|
2551
2606
|
g_param = parse_global_arg(parsed_globals)
|
|
2552
2607
|
|
|
2553
2608
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2572,18 +2627,18 @@ def doDescribeSchedules(args, parsed_globals):
|
|
|
2572
2627
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2573
2628
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2574
2629
|
)
|
|
2575
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2630
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2576
2631
|
if g_param[OptionsDefine.Language]:
|
|
2577
2632
|
profile.language = g_param[OptionsDefine.Language]
|
|
2578
2633
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2579
2634
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2580
2635
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2581
2636
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2582
|
-
model = models.
|
|
2637
|
+
model = models.ProcessImageRequest()
|
|
2583
2638
|
model.from_json_string(json.dumps(args))
|
|
2584
2639
|
start_time = time.time()
|
|
2585
2640
|
while True:
|
|
2586
|
-
rsp = client.
|
|
2641
|
+
rsp = client.ProcessImage(model)
|
|
2587
2642
|
result = rsp.to_json_string()
|
|
2588
2643
|
try:
|
|
2589
2644
|
json_obj = json.loads(result)
|
|
@@ -2602,7 +2657,7 @@ def doDescribeSchedules(args, parsed_globals):
|
|
|
2602
2657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2603
2658
|
|
|
2604
2659
|
|
|
2605
|
-
def
|
|
2660
|
+
def doDescribeSmartEraseTemplates(args, parsed_globals):
|
|
2606
2661
|
g_param = parse_global_arg(parsed_globals)
|
|
2607
2662
|
|
|
2608
2663
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2627,18 +2682,18 @@ def doModifyPersonSample(args, parsed_globals):
|
|
|
2627
2682
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2628
2683
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2629
2684
|
)
|
|
2630
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2685
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2631
2686
|
if g_param[OptionsDefine.Language]:
|
|
2632
2687
|
profile.language = g_param[OptionsDefine.Language]
|
|
2633
2688
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2634
2689
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2635
2690
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2636
2691
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2637
|
-
model = models.
|
|
2692
|
+
model = models.DescribeSmartEraseTemplatesRequest()
|
|
2638
2693
|
model.from_json_string(json.dumps(args))
|
|
2639
2694
|
start_time = time.time()
|
|
2640
2695
|
while True:
|
|
2641
|
-
rsp = client.
|
|
2696
|
+
rsp = client.DescribeSmartEraseTemplates(model)
|
|
2642
2697
|
result = rsp.to_json_string()
|
|
2643
2698
|
try:
|
|
2644
2699
|
json_obj = json.loads(result)
|
|
@@ -2657,7 +2712,7 @@ def doModifyPersonSample(args, parsed_globals):
|
|
|
2657
2712
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2658
2713
|
|
|
2659
2714
|
|
|
2660
|
-
def
|
|
2715
|
+
def doModifySmartEraseTemplate(args, parsed_globals):
|
|
2661
2716
|
g_param = parse_global_arg(parsed_globals)
|
|
2662
2717
|
|
|
2663
2718
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2682,18 +2737,18 @@ def doCreateLiveRecordTemplate(args, parsed_globals):
|
|
|
2682
2737
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2683
2738
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2684
2739
|
)
|
|
2685
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2740
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2686
2741
|
if g_param[OptionsDefine.Language]:
|
|
2687
2742
|
profile.language = g_param[OptionsDefine.Language]
|
|
2688
2743
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2689
2744
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2690
2745
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2691
2746
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2692
|
-
model = models.
|
|
2747
|
+
model = models.ModifySmartEraseTemplateRequest()
|
|
2693
2748
|
model.from_json_string(json.dumps(args))
|
|
2694
2749
|
start_time = time.time()
|
|
2695
2750
|
while True:
|
|
2696
|
-
rsp = client.
|
|
2751
|
+
rsp = client.ModifySmartEraseTemplate(model)
|
|
2697
2752
|
result = rsp.to_json_string()
|
|
2698
2753
|
try:
|
|
2699
2754
|
json_obj = json.loads(result)
|
|
@@ -2712,7 +2767,7 @@ def doCreateLiveRecordTemplate(args, parsed_globals):
|
|
|
2712
2767
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2713
2768
|
|
|
2714
2769
|
|
|
2715
|
-
def
|
|
2770
|
+
def doCreateSmartSubtitleTemplate(args, parsed_globals):
|
|
2716
2771
|
g_param = parse_global_arg(parsed_globals)
|
|
2717
2772
|
|
|
2718
2773
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2737,18 +2792,18 @@ def doDeleteContentReviewTemplate(args, parsed_globals):
|
|
|
2737
2792
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2738
2793
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2739
2794
|
)
|
|
2740
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2795
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2741
2796
|
if g_param[OptionsDefine.Language]:
|
|
2742
2797
|
profile.language = g_param[OptionsDefine.Language]
|
|
2743
2798
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2744
2799
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2745
2800
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2746
2801
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2747
|
-
model = models.
|
|
2802
|
+
model = models.CreateSmartSubtitleTemplateRequest()
|
|
2748
2803
|
model.from_json_string(json.dumps(args))
|
|
2749
2804
|
start_time = time.time()
|
|
2750
2805
|
while True:
|
|
2751
|
-
rsp = client.
|
|
2806
|
+
rsp = client.CreateSmartSubtitleTemplate(model)
|
|
2752
2807
|
result = rsp.to_json_string()
|
|
2753
2808
|
try:
|
|
2754
2809
|
json_obj = json.loads(result)
|
|
@@ -2767,7 +2822,7 @@ def doDeleteContentReviewTemplate(args, parsed_globals):
|
|
|
2767
2822
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2768
2823
|
|
|
2769
2824
|
|
|
2770
|
-
def
|
|
2825
|
+
def doDescribeSchedules(args, parsed_globals):
|
|
2771
2826
|
g_param = parse_global_arg(parsed_globals)
|
|
2772
2827
|
|
|
2773
2828
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2792,18 +2847,18 @@ def doCreateAIAnalysisTemplate(args, parsed_globals):
|
|
|
2792
2847
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2793
2848
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2794
2849
|
)
|
|
2795
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2850
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2796
2851
|
if g_param[OptionsDefine.Language]:
|
|
2797
2852
|
profile.language = g_param[OptionsDefine.Language]
|
|
2798
2853
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2799
2854
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2800
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2801
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2802
|
-
model = models.
|
|
2857
|
+
model = models.DescribeSchedulesRequest()
|
|
2803
2858
|
model.from_json_string(json.dumps(args))
|
|
2804
2859
|
start_time = time.time()
|
|
2805
2860
|
while True:
|
|
2806
|
-
rsp = client.
|
|
2861
|
+
rsp = client.DescribeSchedules(model)
|
|
2807
2862
|
result = rsp.to_json_string()
|
|
2808
2863
|
try:
|
|
2809
2864
|
json_obj = json.loads(result)
|
|
@@ -2822,7 +2877,7 @@ def doCreateAIAnalysisTemplate(args, parsed_globals):
|
|
|
2822
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2823
2878
|
|
|
2824
2879
|
|
|
2825
|
-
def
|
|
2880
|
+
def doModifyPersonSample(args, parsed_globals):
|
|
2826
2881
|
g_param = parse_global_arg(parsed_globals)
|
|
2827
2882
|
|
|
2828
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2847,18 +2902,18 @@ def doModifyQualityControlTemplate(args, parsed_globals):
|
|
|
2847
2902
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2848
2903
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2849
2904
|
)
|
|
2850
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2905
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2851
2906
|
if g_param[OptionsDefine.Language]:
|
|
2852
2907
|
profile.language = g_param[OptionsDefine.Language]
|
|
2853
2908
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2854
2909
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2855
2910
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2856
2911
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2857
|
-
model = models.
|
|
2912
|
+
model = models.ModifyPersonSampleRequest()
|
|
2858
2913
|
model.from_json_string(json.dumps(args))
|
|
2859
2914
|
start_time = time.time()
|
|
2860
2915
|
while True:
|
|
2861
|
-
rsp = client.
|
|
2916
|
+
rsp = client.ModifyPersonSample(model)
|
|
2862
2917
|
result = rsp.to_json_string()
|
|
2863
2918
|
try:
|
|
2864
2919
|
json_obj = json.loads(result)
|
|
@@ -2877,7 +2932,7 @@ def doModifyQualityControlTemplate(args, parsed_globals):
|
|
|
2877
2932
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2878
2933
|
|
|
2879
2934
|
|
|
2880
|
-
def
|
|
2935
|
+
def doExtractBlindWatermark(args, parsed_globals):
|
|
2881
2936
|
g_param = parse_global_arg(parsed_globals)
|
|
2882
2937
|
|
|
2883
2938
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2902,18 +2957,18 @@ def doDescribeSmartSubtitleTemplates(args, parsed_globals):
|
|
|
2902
2957
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2903
2958
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2904
2959
|
)
|
|
2905
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2960
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2906
2961
|
if g_param[OptionsDefine.Language]:
|
|
2907
2962
|
profile.language = g_param[OptionsDefine.Language]
|
|
2908
2963
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2909
2964
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2910
2965
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2911
2966
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2912
|
-
model = models.
|
|
2967
|
+
model = models.ExtractBlindWatermarkRequest()
|
|
2913
2968
|
model.from_json_string(json.dumps(args))
|
|
2914
2969
|
start_time = time.time()
|
|
2915
2970
|
while True:
|
|
2916
|
-
rsp = client.
|
|
2971
|
+
rsp = client.ExtractBlindWatermark(model)
|
|
2917
2972
|
result = rsp.to_json_string()
|
|
2918
2973
|
try:
|
|
2919
2974
|
json_obj = json.loads(result)
|
|
@@ -2932,7 +2987,7 @@ def doDescribeSmartSubtitleTemplates(args, parsed_globals):
|
|
|
2932
2987
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2933
2988
|
|
|
2934
2989
|
|
|
2935
|
-
def
|
|
2990
|
+
def doCreateBlindWatermarkTemplate(args, parsed_globals):
|
|
2936
2991
|
g_param = parse_global_arg(parsed_globals)
|
|
2937
2992
|
|
|
2938
2993
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2957,18 +3012,18 @@ def doModifyAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
2957
3012
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2958
3013
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2959
3014
|
)
|
|
2960
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3015
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2961
3016
|
if g_param[OptionsDefine.Language]:
|
|
2962
3017
|
profile.language = g_param[OptionsDefine.Language]
|
|
2963
3018
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2964
3019
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2965
3020
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2966
3021
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2967
|
-
model = models.
|
|
3022
|
+
model = models.CreateBlindWatermarkTemplateRequest()
|
|
2968
3023
|
model.from_json_string(json.dumps(args))
|
|
2969
3024
|
start_time = time.time()
|
|
2970
3025
|
while True:
|
|
2971
|
-
rsp = client.
|
|
3026
|
+
rsp = client.CreateBlindWatermarkTemplate(model)
|
|
2972
3027
|
result = rsp.to_json_string()
|
|
2973
3028
|
try:
|
|
2974
3029
|
json_obj = json.loads(result)
|
|
@@ -2987,7 +3042,7 @@ def doModifyAnimatedGraphicsTemplate(args, parsed_globals):
|
|
|
2987
3042
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2988
3043
|
|
|
2989
3044
|
|
|
2990
|
-
def
|
|
3045
|
+
def doDeleteContentReviewTemplate(args, parsed_globals):
|
|
2991
3046
|
g_param = parse_global_arg(parsed_globals)
|
|
2992
3047
|
|
|
2993
3048
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3012,18 +3067,18 @@ def doModifyTranscodeTemplate(args, parsed_globals):
|
|
|
3012
3067
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3013
3068
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3014
3069
|
)
|
|
3015
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3070
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3016
3071
|
if g_param[OptionsDefine.Language]:
|
|
3017
3072
|
profile.language = g_param[OptionsDefine.Language]
|
|
3018
3073
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3019
3074
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3020
3075
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3021
3076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3022
|
-
model = models.
|
|
3077
|
+
model = models.DeleteContentReviewTemplateRequest()
|
|
3023
3078
|
model.from_json_string(json.dumps(args))
|
|
3024
3079
|
start_time = time.time()
|
|
3025
3080
|
while True:
|
|
3026
|
-
rsp = client.
|
|
3081
|
+
rsp = client.DeleteContentReviewTemplate(model)
|
|
3027
3082
|
result = rsp.to_json_string()
|
|
3028
3083
|
try:
|
|
3029
3084
|
json_obj = json.loads(result)
|
|
@@ -3042,7 +3097,7 @@ def doModifyTranscodeTemplate(args, parsed_globals):
|
|
|
3042
3097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3043
3098
|
|
|
3044
3099
|
|
|
3045
|
-
def
|
|
3100
|
+
def doCreateAIAnalysisTemplate(args, parsed_globals):
|
|
3046
3101
|
g_param = parse_global_arg(parsed_globals)
|
|
3047
3102
|
|
|
3048
3103
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3067,18 +3122,18 @@ def doDescribeAIRecognitionTemplates(args, parsed_globals):
|
|
|
3067
3122
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3068
3123
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3069
3124
|
)
|
|
3070
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3125
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3071
3126
|
if g_param[OptionsDefine.Language]:
|
|
3072
3127
|
profile.language = g_param[OptionsDefine.Language]
|
|
3073
3128
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3074
3129
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3075
3130
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3076
3131
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3077
|
-
model = models.
|
|
3132
|
+
model = models.CreateAIAnalysisTemplateRequest()
|
|
3078
3133
|
model.from_json_string(json.dumps(args))
|
|
3079
3134
|
start_time = time.time()
|
|
3080
3135
|
while True:
|
|
3081
|
-
rsp = client.
|
|
3136
|
+
rsp = client.CreateAIAnalysisTemplate(model)
|
|
3082
3137
|
result = rsp.to_json_string()
|
|
3083
3138
|
try:
|
|
3084
3139
|
json_obj = json.loads(result)
|
|
@@ -3097,7 +3152,7 @@ def doDescribeAIRecognitionTemplates(args, parsed_globals):
|
|
|
3097
3152
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3098
3153
|
|
|
3099
3154
|
|
|
3100
|
-
def
|
|
3155
|
+
def doModifyQualityControlTemplate(args, parsed_globals):
|
|
3101
3156
|
g_param = parse_global_arg(parsed_globals)
|
|
3102
3157
|
|
|
3103
3158
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3122,18 +3177,18 @@ def doModifyAsrHotwords(args, parsed_globals):
|
|
|
3122
3177
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3123
3178
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3124
3179
|
)
|
|
3125
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3180
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3126
3181
|
if g_param[OptionsDefine.Language]:
|
|
3127
3182
|
profile.language = g_param[OptionsDefine.Language]
|
|
3128
3183
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3129
3184
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3130
3185
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3131
3186
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3132
|
-
model = models.
|
|
3187
|
+
model = models.ModifyQualityControlTemplateRequest()
|
|
3133
3188
|
model.from_json_string(json.dumps(args))
|
|
3134
3189
|
start_time = time.time()
|
|
3135
3190
|
while True:
|
|
3136
|
-
rsp = client.
|
|
3191
|
+
rsp = client.ModifyQualityControlTemplate(model)
|
|
3137
3192
|
result = rsp.to_json_string()
|
|
3138
3193
|
try:
|
|
3139
3194
|
json_obj = json.loads(result)
|
|
@@ -3152,7 +3207,7 @@ def doModifyAsrHotwords(args, parsed_globals):
|
|
|
3152
3207
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3153
3208
|
|
|
3154
3209
|
|
|
3155
|
-
def
|
|
3210
|
+
def doDescribeSmartSubtitleTemplates(args, parsed_globals):
|
|
3156
3211
|
g_param = parse_global_arg(parsed_globals)
|
|
3157
3212
|
|
|
3158
3213
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3177,18 +3232,18 @@ def doDescribeWorkflows(args, parsed_globals):
|
|
|
3177
3232
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3178
3233
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3179
3234
|
)
|
|
3180
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3235
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3181
3236
|
if g_param[OptionsDefine.Language]:
|
|
3182
3237
|
profile.language = g_param[OptionsDefine.Language]
|
|
3183
3238
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3184
3239
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3185
3240
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3186
3241
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3187
|
-
model = models.
|
|
3242
|
+
model = models.DescribeSmartSubtitleTemplatesRequest()
|
|
3188
3243
|
model.from_json_string(json.dumps(args))
|
|
3189
3244
|
start_time = time.time()
|
|
3190
3245
|
while True:
|
|
3191
|
-
rsp = client.
|
|
3246
|
+
rsp = client.DescribeSmartSubtitleTemplates(model)
|
|
3192
3247
|
result = rsp.to_json_string()
|
|
3193
3248
|
try:
|
|
3194
3249
|
json_obj = json.loads(result)
|
|
@@ -3207,7 +3262,7 @@ def doDescribeWorkflows(args, parsed_globals):
|
|
|
3207
3262
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3208
3263
|
|
|
3209
3264
|
|
|
3210
|
-
def
|
|
3265
|
+
def doDeleteBlindWatermarkTemplate(args, parsed_globals):
|
|
3211
3266
|
g_param = parse_global_arg(parsed_globals)
|
|
3212
3267
|
|
|
3213
3268
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3232,18 +3287,18 @@ def doModifyWatermarkTemplate(args, parsed_globals):
|
|
|
3232
3287
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3233
3288
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3234
3289
|
)
|
|
3235
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3290
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3236
3291
|
if g_param[OptionsDefine.Language]:
|
|
3237
3292
|
profile.language = g_param[OptionsDefine.Language]
|
|
3238
3293
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3239
3294
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3240
3295
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3241
3296
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3242
|
-
model = models.
|
|
3297
|
+
model = models.DeleteBlindWatermarkTemplateRequest()
|
|
3243
3298
|
model.from_json_string(json.dumps(args))
|
|
3244
3299
|
start_time = time.time()
|
|
3245
3300
|
while True:
|
|
3246
|
-
rsp = client.
|
|
3301
|
+
rsp = client.DeleteBlindWatermarkTemplate(model)
|
|
3247
3302
|
result = rsp.to_json_string()
|
|
3248
3303
|
try:
|
|
3249
3304
|
json_obj = json.loads(result)
|
|
@@ -3262,7 +3317,7 @@ def doModifyWatermarkTemplate(args, parsed_globals):
|
|
|
3262
3317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3263
3318
|
|
|
3264
3319
|
|
|
3265
|
-
def
|
|
3320
|
+
def doModifyAnimatedGraphicsTemplate(args, parsed_globals):
|
|
3266
3321
|
g_param = parse_global_arg(parsed_globals)
|
|
3267
3322
|
|
|
3268
3323
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3287,18 +3342,18 @@ def doDeleteWordSamples(args, parsed_globals):
|
|
|
3287
3342
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3288
3343
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3289
3344
|
)
|
|
3290
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3345
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3291
3346
|
if g_param[OptionsDefine.Language]:
|
|
3292
3347
|
profile.language = g_param[OptionsDefine.Language]
|
|
3293
3348
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3294
3349
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3295
3350
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3296
3351
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3297
|
-
model = models.
|
|
3352
|
+
model = models.ModifyAnimatedGraphicsTemplateRequest()
|
|
3298
3353
|
model.from_json_string(json.dumps(args))
|
|
3299
3354
|
start_time = time.time()
|
|
3300
3355
|
while True:
|
|
3301
|
-
rsp = client.
|
|
3356
|
+
rsp = client.ModifyAnimatedGraphicsTemplate(model)
|
|
3302
3357
|
result = rsp.to_json_string()
|
|
3303
3358
|
try:
|
|
3304
3359
|
json_obj = json.loads(result)
|
|
@@ -3317,7 +3372,7 @@ def doDeleteWordSamples(args, parsed_globals):
|
|
|
3317
3372
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3318
3373
|
|
|
3319
3374
|
|
|
3320
|
-
def
|
|
3375
|
+
def doModifyTranscodeTemplate(args, parsed_globals):
|
|
3321
3376
|
g_param = parse_global_arg(parsed_globals)
|
|
3322
3377
|
|
|
3323
3378
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3342,18 +3397,18 @@ def doCreateWatermarkTemplate(args, parsed_globals):
|
|
|
3342
3397
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3343
3398
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3344
3399
|
)
|
|
3345
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3400
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3346
3401
|
if g_param[OptionsDefine.Language]:
|
|
3347
3402
|
profile.language = g_param[OptionsDefine.Language]
|
|
3348
3403
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3349
3404
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3350
3405
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3351
3406
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3352
|
-
model = models.
|
|
3407
|
+
model = models.ModifyTranscodeTemplateRequest()
|
|
3353
3408
|
model.from_json_string(json.dumps(args))
|
|
3354
3409
|
start_time = time.time()
|
|
3355
3410
|
while True:
|
|
3356
|
-
rsp = client.
|
|
3411
|
+
rsp = client.ModifyTranscodeTemplate(model)
|
|
3357
3412
|
result = rsp.to_json_string()
|
|
3358
3413
|
try:
|
|
3359
3414
|
json_obj = json.loads(result)
|
|
@@ -3372,7 +3427,7 @@ def doCreateWatermarkTemplate(args, parsed_globals):
|
|
|
3372
3427
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3373
3428
|
|
|
3374
3429
|
|
|
3375
|
-
def
|
|
3430
|
+
def doDescribeAIRecognitionTemplates(args, parsed_globals):
|
|
3376
3431
|
g_param = parse_global_arg(parsed_globals)
|
|
3377
3432
|
|
|
3378
3433
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3397,18 +3452,18 @@ def doDescribePersonSamples(args, parsed_globals):
|
|
|
3397
3452
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3398
3453
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3399
3454
|
)
|
|
3400
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3455
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3401
3456
|
if g_param[OptionsDefine.Language]:
|
|
3402
3457
|
profile.language = g_param[OptionsDefine.Language]
|
|
3403
3458
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3404
3459
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3405
3460
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3406
3461
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3407
|
-
model = models.
|
|
3462
|
+
model = models.DescribeAIRecognitionTemplatesRequest()
|
|
3408
3463
|
model.from_json_string(json.dumps(args))
|
|
3409
3464
|
start_time = time.time()
|
|
3410
3465
|
while True:
|
|
3411
|
-
rsp = client.
|
|
3466
|
+
rsp = client.DescribeAIRecognitionTemplates(model)
|
|
3412
3467
|
result = rsp.to_json_string()
|
|
3413
3468
|
try:
|
|
3414
3469
|
json_obj = json.loads(result)
|
|
@@ -3427,7 +3482,667 @@ def doDescribePersonSamples(args, parsed_globals):
|
|
|
3427
3482
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3428
3483
|
|
|
3429
3484
|
|
|
3430
|
-
def
|
|
3485
|
+
def doModifyAsrHotwords(args, parsed_globals):
|
|
3486
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3487
|
+
|
|
3488
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3489
|
+
cred = credential.CVMRoleCredential()
|
|
3490
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3491
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3492
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3493
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3494
|
+
)
|
|
3495
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3496
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3497
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3498
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3499
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3500
|
+
else:
|
|
3501
|
+
cred = credential.Credential(
|
|
3502
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3503
|
+
)
|
|
3504
|
+
http_profile = HttpProfile(
|
|
3505
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3506
|
+
reqMethod="POST",
|
|
3507
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3508
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3509
|
+
)
|
|
3510
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3511
|
+
if g_param[OptionsDefine.Language]:
|
|
3512
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3513
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3514
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3515
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3516
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3517
|
+
model = models.ModifyAsrHotwordsRequest()
|
|
3518
|
+
model.from_json_string(json.dumps(args))
|
|
3519
|
+
start_time = time.time()
|
|
3520
|
+
while True:
|
|
3521
|
+
rsp = client.ModifyAsrHotwords(model)
|
|
3522
|
+
result = rsp.to_json_string()
|
|
3523
|
+
try:
|
|
3524
|
+
json_obj = json.loads(result)
|
|
3525
|
+
except TypeError as e:
|
|
3526
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3527
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3528
|
+
break
|
|
3529
|
+
cur_time = time.time()
|
|
3530
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3531
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3532
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3533
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3534
|
+
else:
|
|
3535
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3536
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3537
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
def doDescribeWorkflows(args, parsed_globals):
|
|
3541
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3542
|
+
|
|
3543
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3544
|
+
cred = credential.CVMRoleCredential()
|
|
3545
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3546
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3547
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3548
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3549
|
+
)
|
|
3550
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3551
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3552
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3553
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3554
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3555
|
+
else:
|
|
3556
|
+
cred = credential.Credential(
|
|
3557
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3558
|
+
)
|
|
3559
|
+
http_profile = HttpProfile(
|
|
3560
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3561
|
+
reqMethod="POST",
|
|
3562
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3563
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3564
|
+
)
|
|
3565
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3566
|
+
if g_param[OptionsDefine.Language]:
|
|
3567
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3568
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3569
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3570
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3571
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3572
|
+
model = models.DescribeWorkflowsRequest()
|
|
3573
|
+
model.from_json_string(json.dumps(args))
|
|
3574
|
+
start_time = time.time()
|
|
3575
|
+
while True:
|
|
3576
|
+
rsp = client.DescribeWorkflows(model)
|
|
3577
|
+
result = rsp.to_json_string()
|
|
3578
|
+
try:
|
|
3579
|
+
json_obj = json.loads(result)
|
|
3580
|
+
except TypeError as e:
|
|
3581
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3582
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3583
|
+
break
|
|
3584
|
+
cur_time = time.time()
|
|
3585
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3586
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3587
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3588
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3589
|
+
else:
|
|
3590
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3591
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3592
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3593
|
+
|
|
3594
|
+
|
|
3595
|
+
def doModifyWatermarkTemplate(args, parsed_globals):
|
|
3596
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3597
|
+
|
|
3598
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3599
|
+
cred = credential.CVMRoleCredential()
|
|
3600
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3601
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3602
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3603
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3604
|
+
)
|
|
3605
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3606
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3607
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3608
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3609
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3610
|
+
else:
|
|
3611
|
+
cred = credential.Credential(
|
|
3612
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3613
|
+
)
|
|
3614
|
+
http_profile = HttpProfile(
|
|
3615
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3616
|
+
reqMethod="POST",
|
|
3617
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3618
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3619
|
+
)
|
|
3620
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3621
|
+
if g_param[OptionsDefine.Language]:
|
|
3622
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3623
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3624
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3625
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3626
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3627
|
+
model = models.ModifyWatermarkTemplateRequest()
|
|
3628
|
+
model.from_json_string(json.dumps(args))
|
|
3629
|
+
start_time = time.time()
|
|
3630
|
+
while True:
|
|
3631
|
+
rsp = client.ModifyWatermarkTemplate(model)
|
|
3632
|
+
result = rsp.to_json_string()
|
|
3633
|
+
try:
|
|
3634
|
+
json_obj = json.loads(result)
|
|
3635
|
+
except TypeError as e:
|
|
3636
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3637
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3638
|
+
break
|
|
3639
|
+
cur_time = time.time()
|
|
3640
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3641
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3642
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3643
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3644
|
+
else:
|
|
3645
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3646
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3647
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
def doDeleteWordSamples(args, parsed_globals):
|
|
3651
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3652
|
+
|
|
3653
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3654
|
+
cred = credential.CVMRoleCredential()
|
|
3655
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3656
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3657
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3658
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3659
|
+
)
|
|
3660
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3661
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3662
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3663
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3664
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3665
|
+
else:
|
|
3666
|
+
cred = credential.Credential(
|
|
3667
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3668
|
+
)
|
|
3669
|
+
http_profile = HttpProfile(
|
|
3670
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3671
|
+
reqMethod="POST",
|
|
3672
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3673
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3674
|
+
)
|
|
3675
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3676
|
+
if g_param[OptionsDefine.Language]:
|
|
3677
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3678
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3679
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3680
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3681
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3682
|
+
model = models.DeleteWordSamplesRequest()
|
|
3683
|
+
model.from_json_string(json.dumps(args))
|
|
3684
|
+
start_time = time.time()
|
|
3685
|
+
while True:
|
|
3686
|
+
rsp = client.DeleteWordSamples(model)
|
|
3687
|
+
result = rsp.to_json_string()
|
|
3688
|
+
try:
|
|
3689
|
+
json_obj = json.loads(result)
|
|
3690
|
+
except TypeError as e:
|
|
3691
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3692
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3693
|
+
break
|
|
3694
|
+
cur_time = time.time()
|
|
3695
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3696
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3697
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3698
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3699
|
+
else:
|
|
3700
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3701
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3702
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
def doCreateWatermarkTemplate(args, parsed_globals):
|
|
3706
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3707
|
+
|
|
3708
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3709
|
+
cred = credential.CVMRoleCredential()
|
|
3710
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3711
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3712
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3713
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3714
|
+
)
|
|
3715
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3716
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3717
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3718
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3719
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3720
|
+
else:
|
|
3721
|
+
cred = credential.Credential(
|
|
3722
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3723
|
+
)
|
|
3724
|
+
http_profile = HttpProfile(
|
|
3725
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3726
|
+
reqMethod="POST",
|
|
3727
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3728
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3729
|
+
)
|
|
3730
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3731
|
+
if g_param[OptionsDefine.Language]:
|
|
3732
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3733
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3734
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3735
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3736
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3737
|
+
model = models.CreateWatermarkTemplateRequest()
|
|
3738
|
+
model.from_json_string(json.dumps(args))
|
|
3739
|
+
start_time = time.time()
|
|
3740
|
+
while True:
|
|
3741
|
+
rsp = client.CreateWatermarkTemplate(model)
|
|
3742
|
+
result = rsp.to_json_string()
|
|
3743
|
+
try:
|
|
3744
|
+
json_obj = json.loads(result)
|
|
3745
|
+
except TypeError as e:
|
|
3746
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3747
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3748
|
+
break
|
|
3749
|
+
cur_time = time.time()
|
|
3750
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3751
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3752
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3753
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3754
|
+
else:
|
|
3755
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3756
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3757
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
def doDescribePersonSamples(args, parsed_globals):
|
|
3761
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3762
|
+
|
|
3763
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3764
|
+
cred = credential.CVMRoleCredential()
|
|
3765
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3766
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3767
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3768
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3769
|
+
)
|
|
3770
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3771
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3772
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3773
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3774
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3775
|
+
else:
|
|
3776
|
+
cred = credential.Credential(
|
|
3777
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3778
|
+
)
|
|
3779
|
+
http_profile = HttpProfile(
|
|
3780
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3781
|
+
reqMethod="POST",
|
|
3782
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3783
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3784
|
+
)
|
|
3785
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3786
|
+
if g_param[OptionsDefine.Language]:
|
|
3787
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3788
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3789
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3790
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3791
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3792
|
+
model = models.DescribePersonSamplesRequest()
|
|
3793
|
+
model.from_json_string(json.dumps(args))
|
|
3794
|
+
start_time = time.time()
|
|
3795
|
+
while True:
|
|
3796
|
+
rsp = client.DescribePersonSamples(model)
|
|
3797
|
+
result = rsp.to_json_string()
|
|
3798
|
+
try:
|
|
3799
|
+
json_obj = json.loads(result)
|
|
3800
|
+
except TypeError as e:
|
|
3801
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3802
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3803
|
+
break
|
|
3804
|
+
cur_time = time.time()
|
|
3805
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3806
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3807
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3808
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3809
|
+
else:
|
|
3810
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3811
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3812
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
def doCreateAigcVideoTask(args, parsed_globals):
|
|
3816
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3817
|
+
|
|
3818
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3819
|
+
cred = credential.CVMRoleCredential()
|
|
3820
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3821
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3822
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3823
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3824
|
+
)
|
|
3825
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3826
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3827
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3828
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3829
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3830
|
+
else:
|
|
3831
|
+
cred = credential.Credential(
|
|
3832
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3833
|
+
)
|
|
3834
|
+
http_profile = HttpProfile(
|
|
3835
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3836
|
+
reqMethod="POST",
|
|
3837
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3838
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3839
|
+
)
|
|
3840
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3841
|
+
if g_param[OptionsDefine.Language]:
|
|
3842
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3843
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3844
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3845
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3846
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3847
|
+
model = models.CreateAigcVideoTaskRequest()
|
|
3848
|
+
model.from_json_string(json.dumps(args))
|
|
3849
|
+
start_time = time.time()
|
|
3850
|
+
while True:
|
|
3851
|
+
rsp = client.CreateAigcVideoTask(model)
|
|
3852
|
+
result = rsp.to_json_string()
|
|
3853
|
+
try:
|
|
3854
|
+
json_obj = json.loads(result)
|
|
3855
|
+
except TypeError as e:
|
|
3856
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3857
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3858
|
+
break
|
|
3859
|
+
cur_time = time.time()
|
|
3860
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3861
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3862
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3863
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3864
|
+
else:
|
|
3865
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3866
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3867
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3868
|
+
|
|
3869
|
+
|
|
3870
|
+
def doDeleteAIRecognitionTemplate(args, parsed_globals):
|
|
3871
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3872
|
+
|
|
3873
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3874
|
+
cred = credential.CVMRoleCredential()
|
|
3875
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3876
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3877
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3878
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3879
|
+
)
|
|
3880
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3881
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3882
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3883
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3884
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3885
|
+
else:
|
|
3886
|
+
cred = credential.Credential(
|
|
3887
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3888
|
+
)
|
|
3889
|
+
http_profile = HttpProfile(
|
|
3890
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3891
|
+
reqMethod="POST",
|
|
3892
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3893
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3894
|
+
)
|
|
3895
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3896
|
+
if g_param[OptionsDefine.Language]:
|
|
3897
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3898
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3899
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3900
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3901
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3902
|
+
model = models.DeleteAIRecognitionTemplateRequest()
|
|
3903
|
+
model.from_json_string(json.dumps(args))
|
|
3904
|
+
start_time = time.time()
|
|
3905
|
+
while True:
|
|
3906
|
+
rsp = client.DeleteAIRecognitionTemplate(model)
|
|
3907
|
+
result = rsp.to_json_string()
|
|
3908
|
+
try:
|
|
3909
|
+
json_obj = json.loads(result)
|
|
3910
|
+
except TypeError as e:
|
|
3911
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3912
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3913
|
+
break
|
|
3914
|
+
cur_time = time.time()
|
|
3915
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3916
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3917
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3918
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3919
|
+
else:
|
|
3920
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3921
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3922
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
def doDescribeAnimatedGraphicsTemplates(args, parsed_globals):
|
|
3926
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3927
|
+
|
|
3928
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3929
|
+
cred = credential.CVMRoleCredential()
|
|
3930
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3931
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3932
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3933
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3934
|
+
)
|
|
3935
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3936
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3937
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3938
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3939
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3940
|
+
else:
|
|
3941
|
+
cred = credential.Credential(
|
|
3942
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3943
|
+
)
|
|
3944
|
+
http_profile = HttpProfile(
|
|
3945
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3946
|
+
reqMethod="POST",
|
|
3947
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3948
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3949
|
+
)
|
|
3950
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3951
|
+
if g_param[OptionsDefine.Language]:
|
|
3952
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3953
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3954
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3955
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3956
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3957
|
+
model = models.DescribeAnimatedGraphicsTemplatesRequest()
|
|
3958
|
+
model.from_json_string(json.dumps(args))
|
|
3959
|
+
start_time = time.time()
|
|
3960
|
+
while True:
|
|
3961
|
+
rsp = client.DescribeAnimatedGraphicsTemplates(model)
|
|
3962
|
+
result = rsp.to_json_string()
|
|
3963
|
+
try:
|
|
3964
|
+
json_obj = json.loads(result)
|
|
3965
|
+
except TypeError as e:
|
|
3966
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3967
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3968
|
+
break
|
|
3969
|
+
cur_time = time.time()
|
|
3970
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3971
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3972
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3973
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3974
|
+
else:
|
|
3975
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3976
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3977
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3978
|
+
|
|
3979
|
+
|
|
3980
|
+
def doDescribeAigcVideoTask(args, parsed_globals):
|
|
3981
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3982
|
+
|
|
3983
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3984
|
+
cred = credential.CVMRoleCredential()
|
|
3985
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3986
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3987
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3988
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3989
|
+
)
|
|
3990
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3991
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3992
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3993
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3994
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3995
|
+
else:
|
|
3996
|
+
cred = credential.Credential(
|
|
3997
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3998
|
+
)
|
|
3999
|
+
http_profile = HttpProfile(
|
|
4000
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4001
|
+
reqMethod="POST",
|
|
4002
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4003
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4004
|
+
)
|
|
4005
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4006
|
+
if g_param[OptionsDefine.Language]:
|
|
4007
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4008
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4009
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4010
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4011
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4012
|
+
model = models.DescribeAigcVideoTaskRequest()
|
|
4013
|
+
model.from_json_string(json.dumps(args))
|
|
4014
|
+
start_time = time.time()
|
|
4015
|
+
while True:
|
|
4016
|
+
rsp = client.DescribeAigcVideoTask(model)
|
|
4017
|
+
result = rsp.to_json_string()
|
|
4018
|
+
try:
|
|
4019
|
+
json_obj = json.loads(result)
|
|
4020
|
+
except TypeError as e:
|
|
4021
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4022
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4023
|
+
break
|
|
4024
|
+
cur_time = time.time()
|
|
4025
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4026
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4027
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4028
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4029
|
+
else:
|
|
4030
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4031
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4032
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
def doManageTask(args, parsed_globals):
|
|
4036
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4037
|
+
|
|
4038
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4039
|
+
cred = credential.CVMRoleCredential()
|
|
4040
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4041
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4042
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4043
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4044
|
+
)
|
|
4045
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4046
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4047
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4048
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4049
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4050
|
+
else:
|
|
4051
|
+
cred = credential.Credential(
|
|
4052
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4053
|
+
)
|
|
4054
|
+
http_profile = HttpProfile(
|
|
4055
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4056
|
+
reqMethod="POST",
|
|
4057
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4058
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4059
|
+
)
|
|
4060
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4061
|
+
if g_param[OptionsDefine.Language]:
|
|
4062
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4063
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4064
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4065
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4066
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4067
|
+
model = models.ManageTaskRequest()
|
|
4068
|
+
model.from_json_string(json.dumps(args))
|
|
4069
|
+
start_time = time.time()
|
|
4070
|
+
while True:
|
|
4071
|
+
rsp = client.ManageTask(model)
|
|
4072
|
+
result = rsp.to_json_string()
|
|
4073
|
+
try:
|
|
4074
|
+
json_obj = json.loads(result)
|
|
4075
|
+
except TypeError as e:
|
|
4076
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4077
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4078
|
+
break
|
|
4079
|
+
cur_time = time.time()
|
|
4080
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4081
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4082
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4083
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4084
|
+
else:
|
|
4085
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4086
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4087
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4088
|
+
|
|
4089
|
+
|
|
4090
|
+
def doModifySnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
4091
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4092
|
+
|
|
4093
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4094
|
+
cred = credential.CVMRoleCredential()
|
|
4095
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4096
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4097
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4098
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4099
|
+
)
|
|
4100
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4101
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4102
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4103
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4104
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4105
|
+
else:
|
|
4106
|
+
cred = credential.Credential(
|
|
4107
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4108
|
+
)
|
|
4109
|
+
http_profile = HttpProfile(
|
|
4110
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4111
|
+
reqMethod="POST",
|
|
4112
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4113
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4114
|
+
)
|
|
4115
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4116
|
+
if g_param[OptionsDefine.Language]:
|
|
4117
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4118
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4119
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4120
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4121
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4122
|
+
model = models.ModifySnapshotByTimeOffsetTemplateRequest()
|
|
4123
|
+
model.from_json_string(json.dumps(args))
|
|
4124
|
+
start_time = time.time()
|
|
4125
|
+
while True:
|
|
4126
|
+
rsp = client.ModifySnapshotByTimeOffsetTemplate(model)
|
|
4127
|
+
result = rsp.to_json_string()
|
|
4128
|
+
try:
|
|
4129
|
+
json_obj = json.loads(result)
|
|
4130
|
+
except TypeError as e:
|
|
4131
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4132
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4133
|
+
break
|
|
4134
|
+
cur_time = time.time()
|
|
4135
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4136
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4137
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4138
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4139
|
+
else:
|
|
4140
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4141
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4142
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4143
|
+
|
|
4144
|
+
|
|
4145
|
+
def doCreateWordSamples(args, parsed_globals):
|
|
3431
4146
|
g_param = parse_global_arg(parsed_globals)
|
|
3432
4147
|
|
|
3433
4148
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3452,18 +4167,18 @@ def doParseNotification(args, parsed_globals):
|
|
|
3452
4167
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3453
4168
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3454
4169
|
)
|
|
3455
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4170
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3456
4171
|
if g_param[OptionsDefine.Language]:
|
|
3457
4172
|
profile.language = g_param[OptionsDefine.Language]
|
|
3458
4173
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3459
4174
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3460
4175
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3461
4176
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3462
|
-
model = models.
|
|
4177
|
+
model = models.CreateWordSamplesRequest()
|
|
3463
4178
|
model.from_json_string(json.dumps(args))
|
|
3464
4179
|
start_time = time.time()
|
|
3465
4180
|
while True:
|
|
3466
|
-
rsp = client.
|
|
4181
|
+
rsp = client.CreateWordSamples(model)
|
|
3467
4182
|
result = rsp.to_json_string()
|
|
3468
4183
|
try:
|
|
3469
4184
|
json_obj = json.loads(result)
|
|
@@ -3482,7 +4197,7 @@ def doParseNotification(args, parsed_globals):
|
|
|
3482
4197
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3483
4198
|
|
|
3484
4199
|
|
|
3485
|
-
def
|
|
4200
|
+
def doCreateWorkflow(args, parsed_globals):
|
|
3486
4201
|
g_param = parse_global_arg(parsed_globals)
|
|
3487
4202
|
|
|
3488
4203
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3507,18 +4222,18 @@ def doDeleteAIRecognitionTemplate(args, parsed_globals):
|
|
|
3507
4222
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3508
4223
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3509
4224
|
)
|
|
3510
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4225
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3511
4226
|
if g_param[OptionsDefine.Language]:
|
|
3512
4227
|
profile.language = g_param[OptionsDefine.Language]
|
|
3513
4228
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3514
4229
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3515
4230
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3516
4231
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3517
|
-
model = models.
|
|
4232
|
+
model = models.CreateWorkflowRequest()
|
|
3518
4233
|
model.from_json_string(json.dumps(args))
|
|
3519
4234
|
start_time = time.time()
|
|
3520
4235
|
while True:
|
|
3521
|
-
rsp = client.
|
|
4236
|
+
rsp = client.CreateWorkflow(model)
|
|
3522
4237
|
result = rsp.to_json_string()
|
|
3523
4238
|
try:
|
|
3524
4239
|
json_obj = json.loads(result)
|
|
@@ -3537,7 +4252,7 @@ def doDeleteAIRecognitionTemplate(args, parsed_globals):
|
|
|
3537
4252
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3538
4253
|
|
|
3539
4254
|
|
|
3540
|
-
def
|
|
4255
|
+
def doCreateProcessImageTemplate(args, parsed_globals):
|
|
3541
4256
|
g_param = parse_global_arg(parsed_globals)
|
|
3542
4257
|
|
|
3543
4258
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3562,18 +4277,18 @@ def doDescribeAnimatedGraphicsTemplates(args, parsed_globals):
|
|
|
3562
4277
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3563
4278
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3564
4279
|
)
|
|
3565
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4280
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3566
4281
|
if g_param[OptionsDefine.Language]:
|
|
3567
4282
|
profile.language = g_param[OptionsDefine.Language]
|
|
3568
4283
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3569
4284
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3570
4285
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3571
4286
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3572
|
-
model = models.
|
|
4287
|
+
model = models.CreateProcessImageTemplateRequest()
|
|
3573
4288
|
model.from_json_string(json.dumps(args))
|
|
3574
4289
|
start_time = time.time()
|
|
3575
4290
|
while True:
|
|
3576
|
-
rsp = client.
|
|
4291
|
+
rsp = client.CreateProcessImageTemplate(model)
|
|
3577
4292
|
result = rsp.to_json_string()
|
|
3578
4293
|
try:
|
|
3579
4294
|
json_obj = json.loads(result)
|
|
@@ -3592,7 +4307,7 @@ def doDescribeAnimatedGraphicsTemplates(args, parsed_globals):
|
|
|
3592
4307
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3593
4308
|
|
|
3594
4309
|
|
|
3595
|
-
def
|
|
4310
|
+
def doDescribeAdaptiveDynamicStreamingTemplates(args, parsed_globals):
|
|
3596
4311
|
g_param = parse_global_arg(parsed_globals)
|
|
3597
4312
|
|
|
3598
4313
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3617,18 +4332,18 @@ def doManageTask(args, parsed_globals):
|
|
|
3617
4332
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3618
4333
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3619
4334
|
)
|
|
3620
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4335
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3621
4336
|
if g_param[OptionsDefine.Language]:
|
|
3622
4337
|
profile.language = g_param[OptionsDefine.Language]
|
|
3623
4338
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3624
4339
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3625
4340
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3626
4341
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3627
|
-
model = models.
|
|
4342
|
+
model = models.DescribeAdaptiveDynamicStreamingTemplatesRequest()
|
|
3628
4343
|
model.from_json_string(json.dumps(args))
|
|
3629
4344
|
start_time = time.time()
|
|
3630
4345
|
while True:
|
|
3631
|
-
rsp = client.
|
|
4346
|
+
rsp = client.DescribeAdaptiveDynamicStreamingTemplates(model)
|
|
3632
4347
|
result = rsp.to_json_string()
|
|
3633
4348
|
try:
|
|
3634
4349
|
json_obj = json.loads(result)
|
|
@@ -3647,7 +4362,7 @@ def doManageTask(args, parsed_globals):
|
|
|
3647
4362
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3648
4363
|
|
|
3649
4364
|
|
|
3650
|
-
def
|
|
4365
|
+
def doCreateSchedule(args, parsed_globals):
|
|
3651
4366
|
g_param = parse_global_arg(parsed_globals)
|
|
3652
4367
|
|
|
3653
4368
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3672,18 +4387,18 @@ def doModifySnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
3672
4387
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3673
4388
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3674
4389
|
)
|
|
3675
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4390
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3676
4391
|
if g_param[OptionsDefine.Language]:
|
|
3677
4392
|
profile.language = g_param[OptionsDefine.Language]
|
|
3678
4393
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3679
4394
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3680
4395
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3681
4396
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3682
|
-
model = models.
|
|
4397
|
+
model = models.CreateScheduleRequest()
|
|
3683
4398
|
model.from_json_string(json.dumps(args))
|
|
3684
4399
|
start_time = time.time()
|
|
3685
4400
|
while True:
|
|
3686
|
-
rsp = client.
|
|
4401
|
+
rsp = client.CreateSchedule(model)
|
|
3687
4402
|
result = rsp.to_json_string()
|
|
3688
4403
|
try:
|
|
3689
4404
|
json_obj = json.loads(result)
|
|
@@ -3702,7 +4417,7 @@ def doModifySnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
|
3702
4417
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3703
4418
|
|
|
3704
4419
|
|
|
3705
|
-
def
|
|
4420
|
+
def doDescribeUsageData(args, parsed_globals):
|
|
3706
4421
|
g_param = parse_global_arg(parsed_globals)
|
|
3707
4422
|
|
|
3708
4423
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3727,18 +4442,18 @@ def doCreateWordSamples(args, parsed_globals):
|
|
|
3727
4442
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3728
4443
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3729
4444
|
)
|
|
3730
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4445
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3731
4446
|
if g_param[OptionsDefine.Language]:
|
|
3732
4447
|
profile.language = g_param[OptionsDefine.Language]
|
|
3733
4448
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3734
4449
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3735
4450
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3736
4451
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3737
|
-
model = models.
|
|
4452
|
+
model = models.DescribeUsageDataRequest()
|
|
3738
4453
|
model.from_json_string(json.dumps(args))
|
|
3739
4454
|
start_time = time.time()
|
|
3740
4455
|
while True:
|
|
3741
|
-
rsp = client.
|
|
4456
|
+
rsp = client.DescribeUsageData(model)
|
|
3742
4457
|
result = rsp.to_json_string()
|
|
3743
4458
|
try:
|
|
3744
4459
|
json_obj = json.loads(result)
|
|
@@ -3757,7 +4472,7 @@ def doCreateWordSamples(args, parsed_globals):
|
|
|
3757
4472
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3758
4473
|
|
|
3759
4474
|
|
|
3760
|
-
def
|
|
4475
|
+
def doDescribeAigcImageTask(args, parsed_globals):
|
|
3761
4476
|
g_param = parse_global_arg(parsed_globals)
|
|
3762
4477
|
|
|
3763
4478
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3782,18 +4497,18 @@ def doCreateWorkflow(args, parsed_globals):
|
|
|
3782
4497
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3783
4498
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3784
4499
|
)
|
|
3785
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4500
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3786
4501
|
if g_param[OptionsDefine.Language]:
|
|
3787
4502
|
profile.language = g_param[OptionsDefine.Language]
|
|
3788
4503
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3789
4504
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3790
4505
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3791
4506
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3792
|
-
model = models.
|
|
4507
|
+
model = models.DescribeAigcImageTaskRequest()
|
|
3793
4508
|
model.from_json_string(json.dumps(args))
|
|
3794
4509
|
start_time = time.time()
|
|
3795
4510
|
while True:
|
|
3796
|
-
rsp = client.
|
|
4511
|
+
rsp = client.DescribeAigcImageTask(model)
|
|
3797
4512
|
result = rsp.to_json_string()
|
|
3798
4513
|
try:
|
|
3799
4514
|
json_obj = json.loads(result)
|
|
@@ -3812,7 +4527,7 @@ def doCreateWorkflow(args, parsed_globals):
|
|
|
3812
4527
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3813
4528
|
|
|
3814
4529
|
|
|
3815
|
-
def
|
|
4530
|
+
def doDescribeImageSpriteTemplates(args, parsed_globals):
|
|
3816
4531
|
g_param = parse_global_arg(parsed_globals)
|
|
3817
4532
|
|
|
3818
4533
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3837,18 +4552,18 @@ def doDescribeAdaptiveDynamicStreamingTemplates(args, parsed_globals):
|
|
|
3837
4552
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3838
4553
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3839
4554
|
)
|
|
3840
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4555
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3841
4556
|
if g_param[OptionsDefine.Language]:
|
|
3842
4557
|
profile.language = g_param[OptionsDefine.Language]
|
|
3843
4558
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3844
4559
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3845
4560
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3846
4561
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3847
|
-
model = models.
|
|
4562
|
+
model = models.DescribeImageSpriteTemplatesRequest()
|
|
3848
4563
|
model.from_json_string(json.dumps(args))
|
|
3849
4564
|
start_time = time.time()
|
|
3850
4565
|
while True:
|
|
3851
|
-
rsp = client.
|
|
4566
|
+
rsp = client.DescribeImageSpriteTemplates(model)
|
|
3852
4567
|
result = rsp.to_json_string()
|
|
3853
4568
|
try:
|
|
3854
4569
|
json_obj = json.loads(result)
|
|
@@ -3867,7 +4582,7 @@ def doDescribeAdaptiveDynamicStreamingTemplates(args, parsed_globals):
|
|
|
3867
4582
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3868
4583
|
|
|
3869
4584
|
|
|
3870
|
-
def
|
|
4585
|
+
def doDescribeWatermarkTemplates(args, parsed_globals):
|
|
3871
4586
|
g_param = parse_global_arg(parsed_globals)
|
|
3872
4587
|
|
|
3873
4588
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3892,18 +4607,18 @@ def doCreateSchedule(args, parsed_globals):
|
|
|
3892
4607
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3893
4608
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3894
4609
|
)
|
|
3895
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4610
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3896
4611
|
if g_param[OptionsDefine.Language]:
|
|
3897
4612
|
profile.language = g_param[OptionsDefine.Language]
|
|
3898
4613
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3899
4614
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3900
4615
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3901
4616
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3902
|
-
model = models.
|
|
4617
|
+
model = models.DescribeWatermarkTemplatesRequest()
|
|
3903
4618
|
model.from_json_string(json.dumps(args))
|
|
3904
4619
|
start_time = time.time()
|
|
3905
4620
|
while True:
|
|
3906
|
-
rsp = client.
|
|
4621
|
+
rsp = client.DescribeWatermarkTemplates(model)
|
|
3907
4622
|
result = rsp.to_json_string()
|
|
3908
4623
|
try:
|
|
3909
4624
|
json_obj = json.loads(result)
|
|
@@ -3922,7 +4637,7 @@ def doCreateSchedule(args, parsed_globals):
|
|
|
3922
4637
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3923
4638
|
|
|
3924
4639
|
|
|
3925
|
-
def
|
|
4640
|
+
def doCreateImageSpriteTemplate(args, parsed_globals):
|
|
3926
4641
|
g_param = parse_global_arg(parsed_globals)
|
|
3927
4642
|
|
|
3928
4643
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3947,18 +4662,18 @@ def doModifyWordSample(args, parsed_globals):
|
|
|
3947
4662
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3948
4663
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3949
4664
|
)
|
|
3950
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4665
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3951
4666
|
if g_param[OptionsDefine.Language]:
|
|
3952
4667
|
profile.language = g_param[OptionsDefine.Language]
|
|
3953
4668
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3954
4669
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3955
4670
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3956
4671
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3957
|
-
model = models.
|
|
4672
|
+
model = models.CreateImageSpriteTemplateRequest()
|
|
3958
4673
|
model.from_json_string(json.dumps(args))
|
|
3959
4674
|
start_time = time.time()
|
|
3960
4675
|
while True:
|
|
3961
|
-
rsp = client.
|
|
4676
|
+
rsp = client.CreateImageSpriteTemplate(model)
|
|
3962
4677
|
result = rsp.to_json_string()
|
|
3963
4678
|
try:
|
|
3964
4679
|
json_obj = json.loads(result)
|
|
@@ -3977,7 +4692,7 @@ def doModifyWordSample(args, parsed_globals):
|
|
|
3977
4692
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3978
4693
|
|
|
3979
4694
|
|
|
3980
|
-
def
|
|
4695
|
+
def doDescribeContentReviewTemplates(args, parsed_globals):
|
|
3981
4696
|
g_param = parse_global_arg(parsed_globals)
|
|
3982
4697
|
|
|
3983
4698
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4002,18 +4717,18 @@ def doDescribeImageSpriteTemplates(args, parsed_globals):
|
|
|
4002
4717
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4003
4718
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4004
4719
|
)
|
|
4005
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4720
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4006
4721
|
if g_param[OptionsDefine.Language]:
|
|
4007
4722
|
profile.language = g_param[OptionsDefine.Language]
|
|
4008
4723
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4009
4724
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4010
4725
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4011
4726
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4012
|
-
model = models.
|
|
4727
|
+
model = models.DescribeContentReviewTemplatesRequest()
|
|
4013
4728
|
model.from_json_string(json.dumps(args))
|
|
4014
4729
|
start_time = time.time()
|
|
4015
4730
|
while True:
|
|
4016
|
-
rsp = client.
|
|
4731
|
+
rsp = client.DescribeContentReviewTemplates(model)
|
|
4017
4732
|
result = rsp.to_json_string()
|
|
4018
4733
|
try:
|
|
4019
4734
|
json_obj = json.loads(result)
|
|
@@ -4032,7 +4747,7 @@ def doDescribeImageSpriteTemplates(args, parsed_globals):
|
|
|
4032
4747
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4033
4748
|
|
|
4034
4749
|
|
|
4035
|
-
def
|
|
4750
|
+
def doParseNotification(args, parsed_globals):
|
|
4036
4751
|
g_param = parse_global_arg(parsed_globals)
|
|
4037
4752
|
|
|
4038
4753
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4057,18 +4772,18 @@ def doDescribeWatermarkTemplates(args, parsed_globals):
|
|
|
4057
4772
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4058
4773
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4059
4774
|
)
|
|
4060
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4775
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4061
4776
|
if g_param[OptionsDefine.Language]:
|
|
4062
4777
|
profile.language = g_param[OptionsDefine.Language]
|
|
4063
4778
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4064
4779
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4065
4780
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4066
4781
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4067
|
-
model = models.
|
|
4782
|
+
model = models.ParseNotificationRequest()
|
|
4068
4783
|
model.from_json_string(json.dumps(args))
|
|
4069
4784
|
start_time = time.time()
|
|
4070
4785
|
while True:
|
|
4071
|
-
rsp = client.
|
|
4786
|
+
rsp = client.ParseNotification(model)
|
|
4072
4787
|
result = rsp.to_json_string()
|
|
4073
4788
|
try:
|
|
4074
4789
|
json_obj = json.loads(result)
|
|
@@ -4087,7 +4802,7 @@ def doDescribeWatermarkTemplates(args, parsed_globals):
|
|
|
4087
4802
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4088
4803
|
|
|
4089
4804
|
|
|
4090
|
-
def
|
|
4805
|
+
def doDescribeBlindWatermarkTemplates(args, parsed_globals):
|
|
4091
4806
|
g_param = parse_global_arg(parsed_globals)
|
|
4092
4807
|
|
|
4093
4808
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4112,18 +4827,18 @@ def doCreateImageSpriteTemplate(args, parsed_globals):
|
|
|
4112
4827
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4113
4828
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4114
4829
|
)
|
|
4115
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4830
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4116
4831
|
if g_param[OptionsDefine.Language]:
|
|
4117
4832
|
profile.language = g_param[OptionsDefine.Language]
|
|
4118
4833
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4119
4834
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4120
4835
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4121
4836
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4122
|
-
model = models.
|
|
4837
|
+
model = models.DescribeBlindWatermarkTemplatesRequest()
|
|
4123
4838
|
model.from_json_string(json.dumps(args))
|
|
4124
4839
|
start_time = time.time()
|
|
4125
4840
|
while True:
|
|
4126
|
-
rsp = client.
|
|
4841
|
+
rsp = client.DescribeBlindWatermarkTemplates(model)
|
|
4127
4842
|
result = rsp.to_json_string()
|
|
4128
4843
|
try:
|
|
4129
4844
|
json_obj = json.loads(result)
|
|
@@ -4142,7 +4857,7 @@ def doCreateImageSpriteTemplate(args, parsed_globals):
|
|
|
4142
4857
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4143
4858
|
|
|
4144
4859
|
|
|
4145
|
-
def
|
|
4860
|
+
def doModifyAIRecognitionTemplate(args, parsed_globals):
|
|
4146
4861
|
g_param = parse_global_arg(parsed_globals)
|
|
4147
4862
|
|
|
4148
4863
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4167,18 +4882,18 @@ def doDescribeContentReviewTemplates(args, parsed_globals):
|
|
|
4167
4882
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4168
4883
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4169
4884
|
)
|
|
4170
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4885
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4171
4886
|
if g_param[OptionsDefine.Language]:
|
|
4172
4887
|
profile.language = g_param[OptionsDefine.Language]
|
|
4173
4888
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4174
4889
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4175
4890
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4176
4891
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4177
|
-
model = models.
|
|
4892
|
+
model = models.ModifyAIRecognitionTemplateRequest()
|
|
4178
4893
|
model.from_json_string(json.dumps(args))
|
|
4179
4894
|
start_time = time.time()
|
|
4180
4895
|
while True:
|
|
4181
|
-
rsp = client.
|
|
4896
|
+
rsp = client.ModifyAIRecognitionTemplate(model)
|
|
4182
4897
|
result = rsp.to_json_string()
|
|
4183
4898
|
try:
|
|
4184
4899
|
json_obj = json.loads(result)
|
|
@@ -4197,7 +4912,7 @@ def doDescribeContentReviewTemplates(args, parsed_globals):
|
|
|
4197
4912
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4198
4913
|
|
|
4199
4914
|
|
|
4200
|
-
def
|
|
4915
|
+
def doDescribeStreamLinkSecurityGroup(args, parsed_globals):
|
|
4201
4916
|
g_param = parse_global_arg(parsed_globals)
|
|
4202
4917
|
|
|
4203
4918
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4222,18 +4937,18 @@ def doDeleteSchedule(args, parsed_globals):
|
|
|
4222
4937
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4223
4938
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4224
4939
|
)
|
|
4225
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4940
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4226
4941
|
if g_param[OptionsDefine.Language]:
|
|
4227
4942
|
profile.language = g_param[OptionsDefine.Language]
|
|
4228
4943
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4229
4944
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4230
4945
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4231
4946
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4232
|
-
model = models.
|
|
4947
|
+
model = models.DescribeStreamLinkSecurityGroupRequest()
|
|
4233
4948
|
model.from_json_string(json.dumps(args))
|
|
4234
4949
|
start_time = time.time()
|
|
4235
4950
|
while True:
|
|
4236
|
-
rsp = client.
|
|
4951
|
+
rsp = client.DescribeStreamLinkSecurityGroup(model)
|
|
4237
4952
|
result = rsp.to_json_string()
|
|
4238
4953
|
try:
|
|
4239
4954
|
json_obj = json.loads(result)
|
|
@@ -4252,7 +4967,7 @@ def doDeleteSchedule(args, parsed_globals):
|
|
|
4252
4967
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4253
4968
|
|
|
4254
4969
|
|
|
4255
|
-
def
|
|
4970
|
+
def doModifySmartSubtitleTemplate(args, parsed_globals):
|
|
4256
4971
|
g_param = parse_global_arg(parsed_globals)
|
|
4257
4972
|
|
|
4258
4973
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4277,18 +4992,18 @@ def doDescribeStreamLinkSecurityGroup(args, parsed_globals):
|
|
|
4277
4992
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4278
4993
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4279
4994
|
)
|
|
4280
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4995
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4281
4996
|
if g_param[OptionsDefine.Language]:
|
|
4282
4997
|
profile.language = g_param[OptionsDefine.Language]
|
|
4283
4998
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4284
4999
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4285
5000
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4286
5001
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4287
|
-
model = models.
|
|
5002
|
+
model = models.ModifySmartSubtitleTemplateRequest()
|
|
4288
5003
|
model.from_json_string(json.dumps(args))
|
|
4289
5004
|
start_time = time.time()
|
|
4290
5005
|
while True:
|
|
4291
|
-
rsp = client.
|
|
5006
|
+
rsp = client.ModifySmartSubtitleTemplate(model)
|
|
4292
5007
|
result = rsp.to_json_string()
|
|
4293
5008
|
try:
|
|
4294
5009
|
json_obj = json.loads(result)
|
|
@@ -4307,7 +5022,7 @@ def doDescribeStreamLinkSecurityGroup(args, parsed_globals):
|
|
|
4307
5022
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4308
5023
|
|
|
4309
5024
|
|
|
4310
|
-
def
|
|
5025
|
+
def doDeletePersonSample(args, parsed_globals):
|
|
4311
5026
|
g_param = parse_global_arg(parsed_globals)
|
|
4312
5027
|
|
|
4313
5028
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4332,18 +5047,18 @@ def doModifySmartSubtitleTemplate(args, parsed_globals):
|
|
|
4332
5047
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4333
5048
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4334
5049
|
)
|
|
4335
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5050
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4336
5051
|
if g_param[OptionsDefine.Language]:
|
|
4337
5052
|
profile.language = g_param[OptionsDefine.Language]
|
|
4338
5053
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4339
5054
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4340
5055
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4341
5056
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4342
|
-
model = models.
|
|
5057
|
+
model = models.DeletePersonSampleRequest()
|
|
4343
5058
|
model.from_json_string(json.dumps(args))
|
|
4344
5059
|
start_time = time.time()
|
|
4345
5060
|
while True:
|
|
4346
|
-
rsp = client.
|
|
5061
|
+
rsp = client.DeletePersonSample(model)
|
|
4347
5062
|
result = rsp.to_json_string()
|
|
4348
5063
|
try:
|
|
4349
5064
|
json_obj = json.loads(result)
|
|
@@ -4362,7 +5077,7 @@ def doModifySmartSubtitleTemplate(args, parsed_globals):
|
|
|
4362
5077
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4363
5078
|
|
|
4364
5079
|
|
|
4365
|
-
def
|
|
5080
|
+
def doParseLiveStreamProcessNotification(args, parsed_globals):
|
|
4366
5081
|
g_param = parse_global_arg(parsed_globals)
|
|
4367
5082
|
|
|
4368
5083
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4387,18 +5102,18 @@ def doDeletePersonSample(args, parsed_globals):
|
|
|
4387
5102
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4388
5103
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4389
5104
|
)
|
|
4390
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5105
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4391
5106
|
if g_param[OptionsDefine.Language]:
|
|
4392
5107
|
profile.language = g_param[OptionsDefine.Language]
|
|
4393
5108
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4394
5109
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4395
5110
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4396
5111
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4397
|
-
model = models.
|
|
5112
|
+
model = models.ParseLiveStreamProcessNotificationRequest()
|
|
4398
5113
|
model.from_json_string(json.dumps(args))
|
|
4399
5114
|
start_time = time.time()
|
|
4400
5115
|
while True:
|
|
4401
|
-
rsp = client.
|
|
5116
|
+
rsp = client.ParseLiveStreamProcessNotification(model)
|
|
4402
5117
|
result = rsp.to_json_string()
|
|
4403
5118
|
try:
|
|
4404
5119
|
json_obj = json.loads(result)
|
|
@@ -4417,7 +5132,7 @@ def doDeletePersonSample(args, parsed_globals):
|
|
|
4417
5132
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4418
5133
|
|
|
4419
5134
|
|
|
4420
|
-
def
|
|
5135
|
+
def doEnableSchedule(args, parsed_globals):
|
|
4421
5136
|
g_param = parse_global_arg(parsed_globals)
|
|
4422
5137
|
|
|
4423
5138
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4442,18 +5157,18 @@ def doDeleteAsrHotwords(args, parsed_globals):
|
|
|
4442
5157
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4443
5158
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4444
5159
|
)
|
|
4445
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5160
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4446
5161
|
if g_param[OptionsDefine.Language]:
|
|
4447
5162
|
profile.language = g_param[OptionsDefine.Language]
|
|
4448
5163
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4449
5164
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4450
5165
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4451
5166
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4452
|
-
model = models.
|
|
5167
|
+
model = models.EnableScheduleRequest()
|
|
4453
5168
|
model.from_json_string(json.dumps(args))
|
|
4454
5169
|
start_time = time.time()
|
|
4455
5170
|
while True:
|
|
4456
|
-
rsp = client.
|
|
5171
|
+
rsp = client.EnableSchedule(model)
|
|
4457
5172
|
result = rsp.to_json_string()
|
|
4458
5173
|
try:
|
|
4459
5174
|
json_obj = json.loads(result)
|
|
@@ -4472,7 +5187,7 @@ def doDeleteAsrHotwords(args, parsed_globals):
|
|
|
4472
5187
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4473
5188
|
|
|
4474
5189
|
|
|
4475
|
-
def
|
|
5190
|
+
def doDeleteSnapshotByTimeOffsetTemplate(args, parsed_globals):
|
|
4476
5191
|
g_param = parse_global_arg(parsed_globals)
|
|
4477
5192
|
|
|
4478
5193
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4497,18 +5212,18 @@ def doEnableSchedule(args, parsed_globals):
|
|
|
4497
5212
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4498
5213
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4499
5214
|
)
|
|
4500
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5215
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4501
5216
|
if g_param[OptionsDefine.Language]:
|
|
4502
5217
|
profile.language = g_param[OptionsDefine.Language]
|
|
4503
5218
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4504
5219
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4505
5220
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4506
5221
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4507
|
-
model = models.
|
|
5222
|
+
model = models.DeleteSnapshotByTimeOffsetTemplateRequest()
|
|
4508
5223
|
model.from_json_string(json.dumps(args))
|
|
4509
5224
|
start_time = time.time()
|
|
4510
5225
|
while True:
|
|
4511
|
-
rsp = client.
|
|
5226
|
+
rsp = client.DeleteSnapshotByTimeOffsetTemplate(model)
|
|
4512
5227
|
result = rsp.to_json_string()
|
|
4513
5228
|
try:
|
|
4514
5229
|
json_obj = json.loads(result)
|
|
@@ -4552,7 +5267,7 @@ def doProcessLiveStream(args, parsed_globals):
|
|
|
4552
5267
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4553
5268
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4554
5269
|
)
|
|
4555
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5270
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4556
5271
|
if g_param[OptionsDefine.Language]:
|
|
4557
5272
|
profile.language = g_param[OptionsDefine.Language]
|
|
4558
5273
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4607,7 +5322,7 @@ def doDeleteLiveRecordTemplate(args, parsed_globals):
|
|
|
4607
5322
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4608
5323
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4609
5324
|
)
|
|
4610
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5325
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4611
5326
|
if g_param[OptionsDefine.Language]:
|
|
4612
5327
|
profile.language = g_param[OptionsDefine.Language]
|
|
4613
5328
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4662,7 +5377,7 @@ def doDescribeImageTaskDetail(args, parsed_globals):
|
|
|
4662
5377
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4663
5378
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4664
5379
|
)
|
|
4665
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5380
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4666
5381
|
if g_param[OptionsDefine.Language]:
|
|
4667
5382
|
profile.language = g_param[OptionsDefine.Language]
|
|
4668
5383
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4692,6 +5407,61 @@ def doDescribeImageTaskDetail(args, parsed_globals):
|
|
|
4692
5407
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4693
5408
|
|
|
4694
5409
|
|
|
5410
|
+
def doTextTranslation(args, parsed_globals):
|
|
5411
|
+
g_param = parse_global_arg(parsed_globals)
|
|
5412
|
+
|
|
5413
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
5414
|
+
cred = credential.CVMRoleCredential()
|
|
5415
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
5416
|
+
cred = credential.STSAssumeRoleCredential(
|
|
5417
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5418
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5419
|
+
)
|
|
5420
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5421
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5422
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5423
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5424
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5425
|
+
else:
|
|
5426
|
+
cred = credential.Credential(
|
|
5427
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
5428
|
+
)
|
|
5429
|
+
http_profile = HttpProfile(
|
|
5430
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
5431
|
+
reqMethod="POST",
|
|
5432
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5433
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5434
|
+
)
|
|
5435
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5436
|
+
if g_param[OptionsDefine.Language]:
|
|
5437
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
5438
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
5439
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5440
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
5441
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5442
|
+
model = models.TextTranslationRequest()
|
|
5443
|
+
model.from_json_string(json.dumps(args))
|
|
5444
|
+
start_time = time.time()
|
|
5445
|
+
while True:
|
|
5446
|
+
rsp = client.TextTranslation(model)
|
|
5447
|
+
result = rsp.to_json_string()
|
|
5448
|
+
try:
|
|
5449
|
+
json_obj = json.loads(result)
|
|
5450
|
+
except TypeError as e:
|
|
5451
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
5452
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
5453
|
+
break
|
|
5454
|
+
cur_time = time.time()
|
|
5455
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
5456
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
5457
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
5458
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
5459
|
+
else:
|
|
5460
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
5461
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
5462
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5463
|
+
|
|
5464
|
+
|
|
4695
5465
|
def doCreateAsrHotwords(args, parsed_globals):
|
|
4696
5466
|
g_param = parse_global_arg(parsed_globals)
|
|
4697
5467
|
|
|
@@ -4717,7 +5487,7 @@ def doCreateAsrHotwords(args, parsed_globals):
|
|
|
4717
5487
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4718
5488
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4719
5489
|
)
|
|
4720
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5490
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4721
5491
|
if g_param[OptionsDefine.Language]:
|
|
4722
5492
|
profile.language = g_param[OptionsDefine.Language]
|
|
4723
5493
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4772,7 +5542,7 @@ def doCreatePersonSample(args, parsed_globals):
|
|
|
4772
5542
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4773
5543
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4774
5544
|
)
|
|
4775
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5545
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4776
5546
|
if g_param[OptionsDefine.Language]:
|
|
4777
5547
|
profile.language = g_param[OptionsDefine.Language]
|
|
4778
5548
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4827,7 +5597,7 @@ def doDescribeQualityControlTemplates(args, parsed_globals):
|
|
|
4827
5597
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4828
5598
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4829
5599
|
)
|
|
4830
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5600
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4831
5601
|
if g_param[OptionsDefine.Language]:
|
|
4832
5602
|
profile.language = g_param[OptionsDefine.Language]
|
|
4833
5603
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4882,7 +5652,7 @@ def doDisableSchedule(args, parsed_globals):
|
|
|
4882
5652
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4883
5653
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4884
5654
|
)
|
|
4885
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5655
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4886
5656
|
if g_param[OptionsDefine.Language]:
|
|
4887
5657
|
profile.language = g_param[OptionsDefine.Language]
|
|
4888
5658
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4912,6 +5682,61 @@ def doDisableSchedule(args, parsed_globals):
|
|
|
4912
5682
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4913
5683
|
|
|
4914
5684
|
|
|
5685
|
+
def doDescribeProcessImageTemplates(args, parsed_globals):
|
|
5686
|
+
g_param = parse_global_arg(parsed_globals)
|
|
5687
|
+
|
|
5688
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
5689
|
+
cred = credential.CVMRoleCredential()
|
|
5690
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
5691
|
+
cred = credential.STSAssumeRoleCredential(
|
|
5692
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5693
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5694
|
+
)
|
|
5695
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
5696
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
5697
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
5698
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
5699
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5700
|
+
else:
|
|
5701
|
+
cred = credential.Credential(
|
|
5702
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
5703
|
+
)
|
|
5704
|
+
http_profile = HttpProfile(
|
|
5705
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
5706
|
+
reqMethod="POST",
|
|
5707
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5708
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5709
|
+
)
|
|
5710
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5711
|
+
if g_param[OptionsDefine.Language]:
|
|
5712
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
5713
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
5714
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5715
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
5716
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5717
|
+
model = models.DescribeProcessImageTemplatesRequest()
|
|
5718
|
+
model.from_json_string(json.dumps(args))
|
|
5719
|
+
start_time = time.time()
|
|
5720
|
+
while True:
|
|
5721
|
+
rsp = client.DescribeProcessImageTemplates(model)
|
|
5722
|
+
result = rsp.to_json_string()
|
|
5723
|
+
try:
|
|
5724
|
+
json_obj = json.loads(result)
|
|
5725
|
+
except TypeError as e:
|
|
5726
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
5727
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
5728
|
+
break
|
|
5729
|
+
cur_time = time.time()
|
|
5730
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
5731
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
5732
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
5733
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
5734
|
+
else:
|
|
5735
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
5736
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
5737
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5738
|
+
|
|
5739
|
+
|
|
4915
5740
|
def doCreateSmartEraseTemplate(args, parsed_globals):
|
|
4916
5741
|
g_param = parse_global_arg(parsed_globals)
|
|
4917
5742
|
|
|
@@ -4937,7 +5762,7 @@ def doCreateSmartEraseTemplate(args, parsed_globals):
|
|
|
4937
5762
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4938
5763
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4939
5764
|
)
|
|
4940
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5765
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4941
5766
|
if g_param[OptionsDefine.Language]:
|
|
4942
5767
|
profile.language = g_param[OptionsDefine.Language]
|
|
4943
5768
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -4992,7 +5817,7 @@ def doModifyContentReviewTemplate(args, parsed_globals):
|
|
|
4992
5817
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4993
5818
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4994
5819
|
)
|
|
4995
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5820
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4996
5821
|
if g_param[OptionsDefine.Language]:
|
|
4997
5822
|
profile.language = g_param[OptionsDefine.Language]
|
|
4998
5823
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5047,7 +5872,7 @@ def doCreateAIRecognitionTemplate(args, parsed_globals):
|
|
|
5047
5872
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5048
5873
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5049
5874
|
)
|
|
5050
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5875
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5051
5876
|
if g_param[OptionsDefine.Language]:
|
|
5052
5877
|
profile.language = g_param[OptionsDefine.Language]
|
|
5053
5878
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5077,7 +5902,7 @@ def doCreateAIRecognitionTemplate(args, parsed_globals):
|
|
|
5077
5902
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5078
5903
|
|
|
5079
5904
|
|
|
5080
|
-
def
|
|
5905
|
+
def doDeleteSchedule(args, parsed_globals):
|
|
5081
5906
|
g_param = parse_global_arg(parsed_globals)
|
|
5082
5907
|
|
|
5083
5908
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -5102,18 +5927,18 @@ def doModifyAIRecognitionTemplate(args, parsed_globals):
|
|
|
5102
5927
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5103
5928
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5104
5929
|
)
|
|
5105
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5930
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5106
5931
|
if g_param[OptionsDefine.Language]:
|
|
5107
5932
|
profile.language = g_param[OptionsDefine.Language]
|
|
5108
5933
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
5109
5934
|
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5110
5935
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
5111
5936
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5112
|
-
model = models.
|
|
5937
|
+
model = models.DeleteScheduleRequest()
|
|
5113
5938
|
model.from_json_string(json.dumps(args))
|
|
5114
5939
|
start_time = time.time()
|
|
5115
5940
|
while True:
|
|
5116
|
-
rsp = client.
|
|
5941
|
+
rsp = client.DeleteSchedule(model)
|
|
5117
5942
|
result = rsp.to_json_string()
|
|
5118
5943
|
try:
|
|
5119
5944
|
json_obj = json.loads(result)
|
|
@@ -5157,7 +5982,7 @@ def doDeleteSmartEraseTemplate(args, parsed_globals):
|
|
|
5157
5982
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5158
5983
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5159
5984
|
)
|
|
5160
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
5985
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5161
5986
|
if g_param[OptionsDefine.Language]:
|
|
5162
5987
|
profile.language = g_param[OptionsDefine.Language]
|
|
5163
5988
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5212,7 +6037,7 @@ def doModifyAdaptiveDynamicStreamingTemplate(args, parsed_globals):
|
|
|
5212
6037
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5213
6038
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5214
6039
|
)
|
|
5215
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6040
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5216
6041
|
if g_param[OptionsDefine.Language]:
|
|
5217
6042
|
profile.language = g_param[OptionsDefine.Language]
|
|
5218
6043
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5267,7 +6092,7 @@ def doDeleteImageSpriteTemplate(args, parsed_globals):
|
|
|
5267
6092
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5268
6093
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5269
6094
|
)
|
|
5270
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
6095
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
5271
6096
|
if g_param[OptionsDefine.Language]:
|
|
5272
6097
|
profile.language = g_param[OptionsDefine.Language]
|
|
5273
6098
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -5315,10 +6140,11 @@ ACTION_MAP = {
|
|
|
5315
6140
|
"DescribeBatchTaskDetail": doDescribeBatchTaskDetail,
|
|
5316
6141
|
"ModifyLiveRecordTemplate": doModifyLiveRecordTemplate,
|
|
5317
6142
|
"EditMedia": doEditMedia,
|
|
6143
|
+
"CreateAigcImageTask": doCreateAigcImageTask,
|
|
5318
6144
|
"DeleteAnimatedGraphicsTemplate": doDeleteAnimatedGraphicsTemplate,
|
|
5319
6145
|
"DescribeAIAnalysisTemplates": doDescribeAIAnalysisTemplates,
|
|
5320
6146
|
"DeleteSmartSubtitleTemplate": doDeleteSmartSubtitleTemplate,
|
|
5321
|
-
"
|
|
6147
|
+
"CreateLiveRecordTemplate": doCreateLiveRecordTemplate,
|
|
5322
6148
|
"DeleteTranscodeTemplate": doDeleteTranscodeTemplate,
|
|
5323
6149
|
"DescribeTaskDetail": doDescribeTaskDetail,
|
|
5324
6150
|
"DescribeWordSamples": doDescribeWordSamples,
|
|
@@ -5329,20 +6155,24 @@ ACTION_MAP = {
|
|
|
5329
6155
|
"DisableWorkflow": doDisableWorkflow,
|
|
5330
6156
|
"DescribeSampleSnapshotTemplates": doDescribeSampleSnapshotTemplates,
|
|
5331
6157
|
"DescribeLiveRecordTemplates": doDescribeLiveRecordTemplates,
|
|
5332
|
-
"
|
|
6158
|
+
"DeleteAsrHotwords": doDeleteAsrHotwords,
|
|
5333
6159
|
"EnableWorkflow": doEnableWorkflow,
|
|
5334
6160
|
"DescribeAsrHotwordsList": doDescribeAsrHotwordsList,
|
|
5335
6161
|
"DescribeTasks": doDescribeTasks,
|
|
5336
6162
|
"CreateTranscodeTemplate": doCreateTranscodeTemplate,
|
|
5337
6163
|
"ExecuteFunction": doExecuteFunction,
|
|
6164
|
+
"DeleteProcessImageTemplate": doDeleteProcessImageTemplate,
|
|
6165
|
+
"ModifyProcessImageTemplate": doModifyProcessImageTemplate,
|
|
5338
6166
|
"BatchProcessMedia": doBatchProcessMedia,
|
|
5339
6167
|
"DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
|
|
5340
6168
|
"DeleteSampleSnapshotTemplate": doDeleteSampleSnapshotTemplate,
|
|
5341
6169
|
"CreateContentReviewTemplate": doCreateContentReviewTemplate,
|
|
6170
|
+
"ModifyBlindWatermarkTemplate": doModifyBlindWatermarkTemplate,
|
|
5342
6171
|
"CreateSampleSnapshotTemplate": doCreateSampleSnapshotTemplate,
|
|
5343
6172
|
"DeleteAIAnalysisTemplate": doDeleteAIAnalysisTemplate,
|
|
5344
6173
|
"ModifySchedule": doModifySchedule,
|
|
5345
6174
|
"DescribeMediaMetaData": doDescribeMediaMetaData,
|
|
6175
|
+
"ModifyWordSample": doModifyWordSample,
|
|
5346
6176
|
"ModifySampleSnapshotTemplate": doModifySampleSnapshotTemplate,
|
|
5347
6177
|
"ResetWorkflow": doResetWorkflow,
|
|
5348
6178
|
"DeleteQualityControlTemplate": doDeleteQualityControlTemplate,
|
|
@@ -5356,11 +6186,13 @@ ACTION_MAP = {
|
|
|
5356
6186
|
"CreateSmartSubtitleTemplate": doCreateSmartSubtitleTemplate,
|
|
5357
6187
|
"DescribeSchedules": doDescribeSchedules,
|
|
5358
6188
|
"ModifyPersonSample": doModifyPersonSample,
|
|
5359
|
-
"
|
|
6189
|
+
"ExtractBlindWatermark": doExtractBlindWatermark,
|
|
6190
|
+
"CreateBlindWatermarkTemplate": doCreateBlindWatermarkTemplate,
|
|
5360
6191
|
"DeleteContentReviewTemplate": doDeleteContentReviewTemplate,
|
|
5361
6192
|
"CreateAIAnalysisTemplate": doCreateAIAnalysisTemplate,
|
|
5362
6193
|
"ModifyQualityControlTemplate": doModifyQualityControlTemplate,
|
|
5363
6194
|
"DescribeSmartSubtitleTemplates": doDescribeSmartSubtitleTemplates,
|
|
6195
|
+
"DeleteBlindWatermarkTemplate": doDeleteBlindWatermarkTemplate,
|
|
5364
6196
|
"ModifyAnimatedGraphicsTemplate": doModifyAnimatedGraphicsTemplate,
|
|
5365
6197
|
"ModifyTranscodeTemplate": doModifyTranscodeTemplate,
|
|
5366
6198
|
"DescribeAIRecognitionTemplates": doDescribeAIRecognitionTemplates,
|
|
@@ -5370,37 +6202,45 @@ ACTION_MAP = {
|
|
|
5370
6202
|
"DeleteWordSamples": doDeleteWordSamples,
|
|
5371
6203
|
"CreateWatermarkTemplate": doCreateWatermarkTemplate,
|
|
5372
6204
|
"DescribePersonSamples": doDescribePersonSamples,
|
|
5373
|
-
"
|
|
6205
|
+
"CreateAigcVideoTask": doCreateAigcVideoTask,
|
|
5374
6206
|
"DeleteAIRecognitionTemplate": doDeleteAIRecognitionTemplate,
|
|
5375
6207
|
"DescribeAnimatedGraphicsTemplates": doDescribeAnimatedGraphicsTemplates,
|
|
6208
|
+
"DescribeAigcVideoTask": doDescribeAigcVideoTask,
|
|
5376
6209
|
"ManageTask": doManageTask,
|
|
5377
6210
|
"ModifySnapshotByTimeOffsetTemplate": doModifySnapshotByTimeOffsetTemplate,
|
|
5378
6211
|
"CreateWordSamples": doCreateWordSamples,
|
|
5379
6212
|
"CreateWorkflow": doCreateWorkflow,
|
|
6213
|
+
"CreateProcessImageTemplate": doCreateProcessImageTemplate,
|
|
5380
6214
|
"DescribeAdaptiveDynamicStreamingTemplates": doDescribeAdaptiveDynamicStreamingTemplates,
|
|
5381
6215
|
"CreateSchedule": doCreateSchedule,
|
|
5382
|
-
"
|
|
6216
|
+
"DescribeUsageData": doDescribeUsageData,
|
|
6217
|
+
"DescribeAigcImageTask": doDescribeAigcImageTask,
|
|
5383
6218
|
"DescribeImageSpriteTemplates": doDescribeImageSpriteTemplates,
|
|
5384
6219
|
"DescribeWatermarkTemplates": doDescribeWatermarkTemplates,
|
|
5385
6220
|
"CreateImageSpriteTemplate": doCreateImageSpriteTemplate,
|
|
5386
6221
|
"DescribeContentReviewTemplates": doDescribeContentReviewTemplates,
|
|
5387
|
-
"
|
|
6222
|
+
"ParseNotification": doParseNotification,
|
|
6223
|
+
"DescribeBlindWatermarkTemplates": doDescribeBlindWatermarkTemplates,
|
|
6224
|
+
"ModifyAIRecognitionTemplate": doModifyAIRecognitionTemplate,
|
|
5388
6225
|
"DescribeStreamLinkSecurityGroup": doDescribeStreamLinkSecurityGroup,
|
|
5389
6226
|
"ModifySmartSubtitleTemplate": doModifySmartSubtitleTemplate,
|
|
5390
6227
|
"DeletePersonSample": doDeletePersonSample,
|
|
5391
|
-
"
|
|
6228
|
+
"ParseLiveStreamProcessNotification": doParseLiveStreamProcessNotification,
|
|
5392
6229
|
"EnableSchedule": doEnableSchedule,
|
|
6230
|
+
"DeleteSnapshotByTimeOffsetTemplate": doDeleteSnapshotByTimeOffsetTemplate,
|
|
5393
6231
|
"ProcessLiveStream": doProcessLiveStream,
|
|
5394
6232
|
"DeleteLiveRecordTemplate": doDeleteLiveRecordTemplate,
|
|
5395
6233
|
"DescribeImageTaskDetail": doDescribeImageTaskDetail,
|
|
6234
|
+
"TextTranslation": doTextTranslation,
|
|
5396
6235
|
"CreateAsrHotwords": doCreateAsrHotwords,
|
|
5397
6236
|
"CreatePersonSample": doCreatePersonSample,
|
|
5398
6237
|
"DescribeQualityControlTemplates": doDescribeQualityControlTemplates,
|
|
5399
6238
|
"DisableSchedule": doDisableSchedule,
|
|
6239
|
+
"DescribeProcessImageTemplates": doDescribeProcessImageTemplates,
|
|
5400
6240
|
"CreateSmartEraseTemplate": doCreateSmartEraseTemplate,
|
|
5401
6241
|
"ModifyContentReviewTemplate": doModifyContentReviewTemplate,
|
|
5402
6242
|
"CreateAIRecognitionTemplate": doCreateAIRecognitionTemplate,
|
|
5403
|
-
"
|
|
6243
|
+
"DeleteSchedule": doDeleteSchedule,
|
|
5404
6244
|
"DeleteSmartEraseTemplate": doDeleteSmartEraseTemplate,
|
|
5405
6245
|
"ModifyAdaptiveDynamicStreamingTemplate": doModifyAdaptiveDynamicStreamingTemplate,
|
|
5406
6246
|
"DeleteImageSpriteTemplate": doDeleteImageSpriteTemplate,
|