tccli 3.0.1300.3__py2.py3-none-any.whl → 3.0.1302.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/services/__init__.py +2 -1
- tccli/services/asr/v20190614/api.json +18 -18
- tccli/services/batch/v20170312/api.json +14 -14
- tccli/services/bh/bh_client.py +623 -93
- tccli/services/bh/v20230418/api.json +1054 -32
- tccli/services/bh/v20230418/examples.json +93 -1
- tccli/services/billing/billing_client.py +4 -57
- tccli/services/billing/v20180709/api.json +3 -305
- tccli/services/billing/v20180709/examples.json +2 -10
- tccli/services/bpaas/v20181217/api.json +56 -56
- tccli/services/cat/cat_client.py +61 -8
- tccli/services/cat/v20180409/api.json +115 -0
- tccli/services/cat/v20180409/examples.json +20 -0
- tccli/services/cbs/v20170312/api.json +9 -7
- tccli/services/cbs/v20170312/examples.json +2 -2
- tccli/services/ccc/ccc_client.py +216 -4
- tccli/services/ccc/v20200210/api.json +364 -6
- tccli/services/ccc/v20200210/examples.json +32 -0
- tccli/services/cdb/v20170320/api.json +23 -14
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdc/cdc_client.py +173 -67
- tccli/services/cdc/v20201214/api.json +96 -0
- tccli/services/cdc/v20201214/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +365 -279
- tccli/services/cdwch/v20200915/api.json +21 -21
- tccli/services/cdwdoris/v20211228/api.json +21 -1
- tccli/services/cdwdoris/v20211228/examples.json +4 -4
- tccli/services/cdwpg/v20201230/api.json +375 -360
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +201 -5
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/chc/chc_client.py +57 -4
- tccli/services/chc/v20230418/api.json +108 -1
- tccli/services/chc/v20230418/examples.json +8 -0
- tccli/services/ckafka/ckafka_client.py +408 -302
- tccli/services/ckafka/v20190819/api.json +197 -2
- tccli/services/ckafka/v20190819/examples.json +16 -0
- tccli/services/clb/v20180317/api.json +439 -379
- tccli/services/clb/v20180317/examples.json +7 -7
- tccli/services/cls/cls_client.py +53 -0
- tccli/services/cls/v20201016/api.json +86 -3
- tccli/services/cls/v20201016/examples.json +11 -3
- tccli/services/cvm/v20170312/api.json +165 -147
- tccli/services/cvm/v20170312/examples.json +6 -6
- tccli/services/cwp/v20180228/api.json +93 -14
- tccli/services/cwp/v20180228/examples.json +7 -7
- tccli/services/cynosdb/cynosdb_client.py +171 -12
- tccli/services/cynosdb/v20190107/api.json +252 -3
- tccli/services/cynosdb/v20190107/examples.json +24 -0
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +62 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dc/v20180410/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +816 -655
- tccli/services/dlc/v20210125/examples.json +73 -59
- tccli/services/dsgc/v20190723/api.json +18 -0
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/dts/v20211206/examples.json +6 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +127 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +686 -151
- tccli/services/es/v20180416/api.json +509 -436
- tccli/services/es/v20180416/examples.json +43 -49
- tccli/services/es/v20250101/api.json +1391 -0
- tccli/services/es/v20250101/examples.json +85 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +142 -21
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +112 -9
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/gaap/v20180529/api.json +321 -312
- tccli/services/gaap/v20180529/examples.json +2 -2
- tccli/services/gs/gs_client.py +538 -8
- tccli/services/gs/v20191118/api.json +947 -44
- tccli/services/gs/v20191118/examples.json +87 -1
- tccli/services/gwlb/v20240906/api.json +56 -37
- tccli/services/gwlb/v20240906/examples.json +11 -5
- tccli/services/hunyuan/hunyuan_client.py +175 -69
- tccli/services/hunyuan/v20230901/api.json +191 -1
- tccli/services/hunyuan/v20230901/examples.json +17 -1
- tccli/services/ioa/ioa_client.py +227 -15
- tccli/services/ioa/v20220601/api.json +479 -0
- tccli/services/ioa/v20220601/examples.json +44 -0
- tccli/services/iotexplorer/iotexplorer_client.py +322 -4
- tccli/services/iotexplorer/v20190423/api.json +865 -52
- tccli/services/iotexplorer/v20190423/examples.json +64 -16
- tccli/services/iotvideo/iotvideo_client.py +57 -4
- tccli/services/iotvideo/v20211125/api.json +146 -0
- tccli/services/iotvideo/v20211125/examples.json +8 -0
- tccli/services/iotvideoindustry/v20201201/api.json +1 -1
- tccli/services/kms/v20190118/api.json +38 -2
- tccli/services/lcic/v20220817/api.json +66 -1
- tccli/services/lcic/v20220817/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +0 -106
- tccli/services/lighthouse/v20200324/api.json +11 -98
- tccli/services/lighthouse/v20200324/examples.json +0 -16
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +208 -10
- tccli/services/lke/v20231130/examples.json +10 -10
- tccli/services/lkeap/lkeap_client.py +53 -0
- tccli/services/lkeap/v20240522/api.json +48 -4
- tccli/services/lkeap/v20240522/examples.json +8 -0
- tccli/services/mna/mna_client.py +4 -163
- tccli/services/mna/v20210119/api.json +0 -524
- tccli/services/mna/v20210119/examples.json +0 -24
- tccli/services/monitor/monitor_client.py +114 -8
- tccli/services/monitor/v20180724/api.json +129 -18
- tccli/services/monitor/v20180724/examples.json +17 -1
- tccli/services/mps/v20190612/api.json +1223 -1031
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/nlp/v20190408/examples.json +1 -1
- tccli/services/oceanus/v20190422/api.json +12 -12
- tccli/services/oceanus/v20190422/examples.json +15 -3
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/postgres/v20170312/api.json +2 -2
- tccli/services/privatedns/v20201028/api.json +30 -11
- tccli/services/privatedns/v20201028/examples.json +10 -10
- tccli/services/rce/v20201103/api.json +3 -3
- tccli/services/ses/v20201002/api.json +10 -1
- tccli/services/smop/v20201203/api.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +1 -1
- tccli/services/ssm/v20190923/api.json +27 -0
- tccli/services/sts/sts_client.py +53 -0
- tccli/services/sts/v20180813/api.json +101 -1
- tccli/services/sts/v20180813/examples.json +8 -0
- tccli/services/taf/taf_client.py +0 -53
- tccli/services/taf/v20200210/api.json +0 -138
- tccli/services/taf/v20200210/examples.json +0 -8
- tccli/services/tan/v20220420/api.json +2 -2
- tccli/services/tat/v20201028/api.json +2 -2
- tccli/services/tcb/v20180608/api.json +29 -1
- tccli/services/tcbr/v20220217/api.json +32 -0
- tccli/services/tccatalog/v20241024/api.json +1 -1
- tccli/services/tccatalog/v20241024/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +5 -5
- tccli/services/tcr/v20190924/examples.json +2 -2
- tccli/services/tcss/v20201101/api.json +84 -34
- tccli/services/tcss/v20201101/examples.json +2809 -0
- tccli/services/tdmq/v20200217/api.json +40 -0
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/tds/tds_client.py +53 -0
- tccli/services/tds/v20220801/api.json +265 -0
- tccli/services/tds/v20220801/examples.json +8 -0
- tccli/services/tem/v20210701/api.json +664 -575
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +236 -208
- tccli/services/teo/v20220901/examples.json +13 -13
- tccli/services/tione/tione_client.py +53 -0
- tccli/services/tione/v20211111/api.json +256 -0
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/trocket/trocket_client.py +489 -12
- tccli/services/trocket/v20230308/api.json +925 -146
- tccli/services/trocket/v20230308/examples.json +72 -0
- tccli/services/trtc/v20190722/api.json +13 -19
- tccli/services/trtc/v20190722/examples.json +8 -8
- tccli/services/tse/v20201207/api.json +1016 -995
- tccli/services/tse/v20201207/examples.json +2 -2
- tccli/services/tsf/v20180326/api.json +510 -465
- tccli/services/tsf/v20180326/examples.json +4 -4
- tccli/services/tts/v20190823/api.json +10 -10
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vcube/v20220410/api.json +10 -0
- tccli/services/vdb/v20230616/api.json +10 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +824 -254
- tccli/services/vpc/v20170312/examples.json +66 -10
- tccli/services/vpc/vpc_client.py +383 -12
- tccli/services/vrs/v20200824/api.json +9 -0
- tccli/services/waf/v20180125/api.json +8113 -5814
- tccli/services/waf/v20180125/examples.json +90 -0
- tccli/services/waf/waf_client.py +559 -82
- tccli/services/wedata/v20210820/api.json +1379 -24
- tccli/services/wedata/v20210820/examples.json +25 -1
- tccli/services/wedata/wedata_client.py +171 -12
- tccli/services/weilingwith/v20230427/api.json +1 -1
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/RECORD +187 -184
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/vpc/vpc_client.py
CHANGED
@@ -277,6 +277,58 @@ def doRemoveBandwidthPackageResources(args, parsed_globals):
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
278
|
|
279
279
|
|
280
|
+
def doDescribeInstanceJumbo(args, parsed_globals):
|
281
|
+
g_param = parse_global_arg(parsed_globals)
|
282
|
+
|
283
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
284
|
+
cred = credential.CVMRoleCredential()
|
285
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
|
+
cred = credential.STSAssumeRoleCredential(
|
287
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
|
+
)
|
290
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
291
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
292
|
+
else:
|
293
|
+
cred = credential.Credential(
|
294
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
295
|
+
)
|
296
|
+
http_profile = HttpProfile(
|
297
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
298
|
+
reqMethod="POST",
|
299
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
300
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
301
|
+
)
|
302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
303
|
+
if g_param[OptionsDefine.Language]:
|
304
|
+
profile.language = g_param[OptionsDefine.Language]
|
305
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
306
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.DescribeInstanceJumboRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.DescribeInstanceJumbo(model)
|
314
|
+
result = rsp.to_json_string()
|
315
|
+
try:
|
316
|
+
json_obj = json.loads(result)
|
317
|
+
except TypeError as e:
|
318
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
319
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
320
|
+
break
|
321
|
+
cur_time = time.time()
|
322
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
323
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
324
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
325
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
326
|
+
else:
|
327
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
328
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
329
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
|
+
|
331
|
+
|
280
332
|
def doModifyServiceTemplateGroupAttribute(args, parsed_globals):
|
281
333
|
g_param = parse_global_arg(parsed_globals)
|
282
334
|
|
@@ -3241,6 +3293,58 @@ def doDeleteAddressTemplate(args, parsed_globals):
|
|
3241
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3294
|
|
3243
3295
|
|
3296
|
+
def doMigrateBandwidthPackageResources(args, parsed_globals):
|
3297
|
+
g_param = parse_global_arg(parsed_globals)
|
3298
|
+
|
3299
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3300
|
+
cred = credential.CVMRoleCredential()
|
3301
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3302
|
+
cred = credential.STSAssumeRoleCredential(
|
3303
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3304
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3305
|
+
)
|
3306
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3307
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3308
|
+
else:
|
3309
|
+
cred = credential.Credential(
|
3310
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3311
|
+
)
|
3312
|
+
http_profile = HttpProfile(
|
3313
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3314
|
+
reqMethod="POST",
|
3315
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3316
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3317
|
+
)
|
3318
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3319
|
+
if g_param[OptionsDefine.Language]:
|
3320
|
+
profile.language = g_param[OptionsDefine.Language]
|
3321
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3322
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3324
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
+
model = models.MigrateBandwidthPackageResourcesRequest()
|
3326
|
+
model.from_json_string(json.dumps(args))
|
3327
|
+
start_time = time.time()
|
3328
|
+
while True:
|
3329
|
+
rsp = client.MigrateBandwidthPackageResources(model)
|
3330
|
+
result = rsp.to_json_string()
|
3331
|
+
try:
|
3332
|
+
json_obj = json.loads(result)
|
3333
|
+
except TypeError as e:
|
3334
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3335
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3336
|
+
break
|
3337
|
+
cur_time = time.time()
|
3338
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3339
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3340
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3341
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3342
|
+
else:
|
3343
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3344
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3345
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3346
|
+
|
3347
|
+
|
3244
3348
|
def doWithdrawNotifyRoutes(args, parsed_globals):
|
3245
3349
|
g_param = parse_global_arg(parsed_globals)
|
3246
3350
|
|
@@ -4229,6 +4333,58 @@ def doDescribeSubnets(args, parsed_globals):
|
|
4229
4333
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4230
4334
|
|
4231
4335
|
|
4336
|
+
def doDescribeGlobalRoutes(args, parsed_globals):
|
4337
|
+
g_param = parse_global_arg(parsed_globals)
|
4338
|
+
|
4339
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4340
|
+
cred = credential.CVMRoleCredential()
|
4341
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4342
|
+
cred = credential.STSAssumeRoleCredential(
|
4343
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4344
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4345
|
+
)
|
4346
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
4347
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4348
|
+
else:
|
4349
|
+
cred = credential.Credential(
|
4350
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4351
|
+
)
|
4352
|
+
http_profile = HttpProfile(
|
4353
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4354
|
+
reqMethod="POST",
|
4355
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4356
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4357
|
+
)
|
4358
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4359
|
+
if g_param[OptionsDefine.Language]:
|
4360
|
+
profile.language = g_param[OptionsDefine.Language]
|
4361
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4362
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
4363
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4364
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4365
|
+
model = models.DescribeGlobalRoutesRequest()
|
4366
|
+
model.from_json_string(json.dumps(args))
|
4367
|
+
start_time = time.time()
|
4368
|
+
while True:
|
4369
|
+
rsp = client.DescribeGlobalRoutes(model)
|
4370
|
+
result = rsp.to_json_string()
|
4371
|
+
try:
|
4372
|
+
json_obj = json.loads(result)
|
4373
|
+
except TypeError as e:
|
4374
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4375
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4376
|
+
break
|
4377
|
+
cur_time = time.time()
|
4378
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4379
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4380
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4381
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4382
|
+
else:
|
4383
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4384
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4385
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4386
|
+
|
4387
|
+
|
4232
4388
|
def doModifyPrivateNatGatewayTranslationAclRule(args, parsed_globals):
|
4233
4389
|
g_param = parse_global_arg(parsed_globals)
|
4234
4390
|
|
@@ -7401,6 +7557,58 @@ def doModifyVpnGatewayCcnRoutes(args, parsed_globals):
|
|
7401
7557
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7402
7558
|
|
7403
7559
|
|
7560
|
+
def doDeleteGlobalRoutes(args, parsed_globals):
|
7561
|
+
g_param = parse_global_arg(parsed_globals)
|
7562
|
+
|
7563
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7564
|
+
cred = credential.CVMRoleCredential()
|
7565
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7566
|
+
cred = credential.STSAssumeRoleCredential(
|
7567
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7568
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7569
|
+
)
|
7570
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
7571
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7572
|
+
else:
|
7573
|
+
cred = credential.Credential(
|
7574
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7575
|
+
)
|
7576
|
+
http_profile = HttpProfile(
|
7577
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7578
|
+
reqMethod="POST",
|
7579
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7580
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7581
|
+
)
|
7582
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7583
|
+
if g_param[OptionsDefine.Language]:
|
7584
|
+
profile.language = g_param[OptionsDefine.Language]
|
7585
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7586
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
7587
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7588
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7589
|
+
model = models.DeleteGlobalRoutesRequest()
|
7590
|
+
model.from_json_string(json.dumps(args))
|
7591
|
+
start_time = time.time()
|
7592
|
+
while True:
|
7593
|
+
rsp = client.DeleteGlobalRoutes(model)
|
7594
|
+
result = rsp.to_json_string()
|
7595
|
+
try:
|
7596
|
+
json_obj = json.loads(result)
|
7597
|
+
except TypeError as e:
|
7598
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7599
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7600
|
+
break
|
7601
|
+
cur_time = time.time()
|
7602
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7603
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7604
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7605
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7606
|
+
else:
|
7607
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7608
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7609
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7610
|
+
|
7611
|
+
|
7404
7612
|
def doDeletePrivateNatGatewayDestinationIpPortTranslationNatRule(args, parsed_globals):
|
7405
7613
|
g_param = parse_global_arg(parsed_globals)
|
7406
7614
|
|
@@ -8857,7 +9065,7 @@ def doDescribeVpnGatewaySslServers(args, parsed_globals):
|
|
8857
9065
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8858
9066
|
|
8859
9067
|
|
8860
|
-
def
|
9068
|
+
def doDeleteRouteTable(args, parsed_globals):
|
8861
9069
|
g_param = parse_global_arg(parsed_globals)
|
8862
9070
|
|
8863
9071
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8886,11 +9094,11 @@ def doCreateDirectConnectGatewayCcnRoutes(args, parsed_globals):
|
|
8886
9094
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
8887
9095
|
client._sdkVersion += ("_CLI_" + __version__)
|
8888
9096
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8889
|
-
model = models.
|
9097
|
+
model = models.DeleteRouteTableRequest()
|
8890
9098
|
model.from_json_string(json.dumps(args))
|
8891
9099
|
start_time = time.time()
|
8892
9100
|
while True:
|
8893
|
-
rsp = client.
|
9101
|
+
rsp = client.DeleteRouteTable(model)
|
8894
9102
|
result = rsp.to_json_string()
|
8895
9103
|
try:
|
8896
9104
|
json_obj = json.loads(result)
|
@@ -11613,7 +11821,7 @@ def doDescribeTrafficMirrors(args, parsed_globals):
|
|
11613
11821
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11614
11822
|
|
11615
11823
|
|
11616
|
-
def
|
11824
|
+
def doCreateDirectConnectGatewayCcnRoutes(args, parsed_globals):
|
11617
11825
|
g_param = parse_global_arg(parsed_globals)
|
11618
11826
|
|
11619
11827
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -11642,11 +11850,11 @@ def doDeleteRouteTable(args, parsed_globals):
|
|
11642
11850
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
11643
11851
|
client._sdkVersion += ("_CLI_" + __version__)
|
11644
11852
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11645
|
-
model = models.
|
11853
|
+
model = models.CreateDirectConnectGatewayCcnRoutesRequest()
|
11646
11854
|
model.from_json_string(json.dumps(args))
|
11647
11855
|
start_time = time.time()
|
11648
11856
|
while True:
|
11649
|
-
rsp = client.
|
11857
|
+
rsp = client.CreateDirectConnectGatewayCcnRoutes(model)
|
11650
11858
|
result = rsp.to_json_string()
|
11651
11859
|
try:
|
11652
11860
|
json_obj = json.loads(result)
|
@@ -16449,6 +16657,58 @@ def doModifyTrafficMirrorAttribute(args, parsed_globals):
|
|
16449
16657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
16450
16658
|
|
16451
16659
|
|
16660
|
+
def doCreateGlobalRoutes(args, parsed_globals):
|
16661
|
+
g_param = parse_global_arg(parsed_globals)
|
16662
|
+
|
16663
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
16664
|
+
cred = credential.CVMRoleCredential()
|
16665
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
16666
|
+
cred = credential.STSAssumeRoleCredential(
|
16667
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
16668
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
16669
|
+
)
|
16670
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
16671
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
16672
|
+
else:
|
16673
|
+
cred = credential.Credential(
|
16674
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
16675
|
+
)
|
16676
|
+
http_profile = HttpProfile(
|
16677
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
16678
|
+
reqMethod="POST",
|
16679
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
16680
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
16681
|
+
)
|
16682
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
16683
|
+
if g_param[OptionsDefine.Language]:
|
16684
|
+
profile.language = g_param[OptionsDefine.Language]
|
16685
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
16686
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
16687
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
16688
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
16689
|
+
model = models.CreateGlobalRoutesRequest()
|
16690
|
+
model.from_json_string(json.dumps(args))
|
16691
|
+
start_time = time.time()
|
16692
|
+
while True:
|
16693
|
+
rsp = client.CreateGlobalRoutes(model)
|
16694
|
+
result = rsp.to_json_string()
|
16695
|
+
try:
|
16696
|
+
json_obj = json.loads(result)
|
16697
|
+
except TypeError as e:
|
16698
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
16699
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
16700
|
+
break
|
16701
|
+
cur_time = time.time()
|
16702
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
16703
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
16704
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
16705
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
16706
|
+
else:
|
16707
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
16708
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
16709
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
16710
|
+
|
16711
|
+
|
16452
16712
|
def doResetHighPriorityRoutes(args, parsed_globals):
|
16453
16713
|
g_param = parse_global_arg(parsed_globals)
|
16454
16714
|
|
@@ -17281,6 +17541,58 @@ def doAssociateAddress(args, parsed_globals):
|
|
17281
17541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
17282
17542
|
|
17283
17543
|
|
17544
|
+
def doModifyGlobalRouteECMPAlgorithm(args, parsed_globals):
|
17545
|
+
g_param = parse_global_arg(parsed_globals)
|
17546
|
+
|
17547
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
17548
|
+
cred = credential.CVMRoleCredential()
|
17549
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
17550
|
+
cred = credential.STSAssumeRoleCredential(
|
17551
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
17552
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
17553
|
+
)
|
17554
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
17555
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
17556
|
+
else:
|
17557
|
+
cred = credential.Credential(
|
17558
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
17559
|
+
)
|
17560
|
+
http_profile = HttpProfile(
|
17561
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
17562
|
+
reqMethod="POST",
|
17563
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
17564
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
17565
|
+
)
|
17566
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
17567
|
+
if g_param[OptionsDefine.Language]:
|
17568
|
+
profile.language = g_param[OptionsDefine.Language]
|
17569
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
17570
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
17571
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
17572
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
17573
|
+
model = models.ModifyGlobalRouteECMPAlgorithmRequest()
|
17574
|
+
model.from_json_string(json.dumps(args))
|
17575
|
+
start_time = time.time()
|
17576
|
+
while True:
|
17577
|
+
rsp = client.ModifyGlobalRouteECMPAlgorithm(model)
|
17578
|
+
result = rsp.to_json_string()
|
17579
|
+
try:
|
17580
|
+
json_obj = json.loads(result)
|
17581
|
+
except TypeError as e:
|
17582
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
17583
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
17584
|
+
break
|
17585
|
+
cur_time = time.time()
|
17586
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
17587
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
17588
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
17589
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
17590
|
+
else:
|
17591
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
17592
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
17593
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
17594
|
+
|
17595
|
+
|
17284
17596
|
def doDeleteVpcPeeringConnection(args, parsed_globals):
|
17285
17597
|
g_param = parse_global_arg(parsed_globals)
|
17286
17598
|
|
@@ -18061,7 +18373,7 @@ def doModifyIpv6AddressesAttribute(args, parsed_globals):
|
|
18061
18373
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
18062
18374
|
|
18063
18375
|
|
18064
|
-
def
|
18376
|
+
def doModifyGlobalRoutes(args, parsed_globals):
|
18065
18377
|
g_param = parse_global_arg(parsed_globals)
|
18066
18378
|
|
18067
18379
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -18090,11 +18402,11 @@ def doCreateNetDetect(args, parsed_globals):
|
|
18090
18402
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
18091
18403
|
client._sdkVersion += ("_CLI_" + __version__)
|
18092
18404
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
18093
|
-
model = models.
|
18405
|
+
model = models.ModifyGlobalRoutesRequest()
|
18094
18406
|
model.from_json_string(json.dumps(args))
|
18095
18407
|
start_time = time.time()
|
18096
18408
|
while True:
|
18097
|
-
rsp = client.
|
18409
|
+
rsp = client.ModifyGlobalRoutes(model)
|
18098
18410
|
result = rsp.to_json_string()
|
18099
18411
|
try:
|
18100
18412
|
json_obj = json.loads(result)
|
@@ -20297,6 +20609,58 @@ def doCreateTrafficPackages(args, parsed_globals):
|
|
20297
20609
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
20298
20610
|
|
20299
20611
|
|
20612
|
+
def doCreateNetDetect(args, parsed_globals):
|
20613
|
+
g_param = parse_global_arg(parsed_globals)
|
20614
|
+
|
20615
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
20616
|
+
cred = credential.CVMRoleCredential()
|
20617
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
20618
|
+
cred = credential.STSAssumeRoleCredential(
|
20619
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
20620
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
20621
|
+
)
|
20622
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
20623
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
20624
|
+
else:
|
20625
|
+
cred = credential.Credential(
|
20626
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
20627
|
+
)
|
20628
|
+
http_profile = HttpProfile(
|
20629
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
20630
|
+
reqMethod="POST",
|
20631
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
20632
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
20633
|
+
)
|
20634
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
20635
|
+
if g_param[OptionsDefine.Language]:
|
20636
|
+
profile.language = g_param[OptionsDefine.Language]
|
20637
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
20638
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
20639
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
20640
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
20641
|
+
model = models.CreateNetDetectRequest()
|
20642
|
+
model.from_json_string(json.dumps(args))
|
20643
|
+
start_time = time.time()
|
20644
|
+
while True:
|
20645
|
+
rsp = client.CreateNetDetect(model)
|
20646
|
+
result = rsp.to_json_string()
|
20647
|
+
try:
|
20648
|
+
json_obj = json.loads(result)
|
20649
|
+
except TypeError as e:
|
20650
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
20651
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
20652
|
+
break
|
20653
|
+
cur_time = time.time()
|
20654
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
20655
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
20656
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
20657
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
20658
|
+
else:
|
20659
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
20660
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
20661
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
20662
|
+
|
20663
|
+
|
20300
20664
|
def doDescribeSnapshotFiles(args, parsed_globals):
|
20301
20665
|
g_param = parse_global_arg(parsed_globals)
|
20302
20666
|
|
@@ -21041,6 +21405,7 @@ ACTION_MAP = {
|
|
21041
21405
|
"DescribeTaskResult": doDescribeTaskResult,
|
21042
21406
|
"DescribeRouteTables": doDescribeRouteTables,
|
21043
21407
|
"RemoveBandwidthPackageResources": doRemoveBandwidthPackageResources,
|
21408
|
+
"DescribeInstanceJumbo": doDescribeInstanceJumbo,
|
21044
21409
|
"ModifyServiceTemplateGroupAttribute": doModifyServiceTemplateGroupAttribute,
|
21045
21410
|
"ModifyAddressInternetChargeType": doModifyAddressInternetChargeType,
|
21046
21411
|
"ModifyIPv6AddressesAttributes": doModifyIPv6AddressesAttributes,
|
@@ -21098,6 +21463,7 @@ ACTION_MAP = {
|
|
21098
21463
|
"DescribeSnapshotAttachedInstances": doDescribeSnapshotAttachedInstances,
|
21099
21464
|
"DescribeAddressBandwidthRange": doDescribeAddressBandwidthRange,
|
21100
21465
|
"DeleteAddressTemplate": doDeleteAddressTemplate,
|
21466
|
+
"MigrateBandwidthPackageResources": doMigrateBandwidthPackageResources,
|
21101
21467
|
"WithdrawNotifyRoutes": doWithdrawNotifyRoutes,
|
21102
21468
|
"CreateCdcNetPlanes": doCreateCdcNetPlanes,
|
21103
21469
|
"DeleteRoutes": doDeleteRoutes,
|
@@ -21117,6 +21483,7 @@ ACTION_MAP = {
|
|
21117
21483
|
"ModifyVpnGatewayAttribute": doModifyVpnGatewayAttribute,
|
21118
21484
|
"DeleteVpc": doDeleteVpc,
|
21119
21485
|
"DescribeSubnets": doDescribeSubnets,
|
21486
|
+
"DescribeGlobalRoutes": doDescribeGlobalRoutes,
|
21120
21487
|
"ModifyPrivateNatGatewayTranslationAclRule": doModifyPrivateNatGatewayTranslationAclRule,
|
21121
21488
|
"ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
|
21122
21489
|
"ReplaceCcnRouteTableInputPolicys": doReplaceCcnRouteTableInputPolicys,
|
@@ -21178,6 +21545,7 @@ ACTION_MAP = {
|
|
21178
21545
|
"CreateVpcEndPointService": doCreateVpcEndPointService,
|
21179
21546
|
"ResetVpnConnection": doResetVpnConnection,
|
21180
21547
|
"ModifyVpnGatewayCcnRoutes": doModifyVpnGatewayCcnRoutes,
|
21548
|
+
"DeleteGlobalRoutes": doDeleteGlobalRoutes,
|
21181
21549
|
"DeletePrivateNatGatewayDestinationIpPortTranslationNatRule": doDeletePrivateNatGatewayDestinationIpPortTranslationNatRule,
|
21182
21550
|
"ModifyDhcpIpAttribute": doModifyDhcpIpAttribute,
|
21183
21551
|
"DescribeBandwidthPackageResources": doDescribeBandwidthPackageResources,
|
@@ -21206,7 +21574,7 @@ ACTION_MAP = {
|
|
21206
21574
|
"AuditCrossBorderCompliance": doAuditCrossBorderCompliance,
|
21207
21575
|
"DescribeVpcInstances": doDescribeVpcInstances,
|
21208
21576
|
"DescribeVpnGatewaySslServers": doDescribeVpnGatewaySslServers,
|
21209
|
-
"
|
21577
|
+
"DeleteRouteTable": doDeleteRouteTable,
|
21210
21578
|
"DescribeAccountAttributes": doDescribeAccountAttributes,
|
21211
21579
|
"AssignIpv6Addresses": doAssignIpv6Addresses,
|
21212
21580
|
"DescribeRouteTableSelectionPolicies": doDescribeRouteTableSelectionPolicies,
|
@@ -21259,7 +21627,7 @@ ACTION_MAP = {
|
|
21259
21627
|
"DescribeVpnGatewayRoutes": doDescribeVpnGatewayRoutes,
|
21260
21628
|
"ReplaceSecurityGroupPolicies": doReplaceSecurityGroupPolicies,
|
21261
21629
|
"DescribeTrafficMirrors": doDescribeTrafficMirrors,
|
21262
|
-
"
|
21630
|
+
"CreateDirectConnectGatewayCcnRoutes": doCreateDirectConnectGatewayCcnRoutes,
|
21263
21631
|
"AssignPrivateIpAddresses": doAssignPrivateIpAddresses,
|
21264
21632
|
"DescribeCrossBorderFlowMonitor": doDescribeCrossBorderFlowMonitor,
|
21265
21633
|
"CreateSubnets": doCreateSubnets,
|
@@ -21352,6 +21720,7 @@ ACTION_MAP = {
|
|
21352
21720
|
"ModifyVpcEndPointServiceWhiteList": doModifyVpcEndPointServiceWhiteList,
|
21353
21721
|
"DescribeNatGateways": doDescribeNatGateways,
|
21354
21722
|
"ModifyTrafficMirrorAttribute": doModifyTrafficMirrorAttribute,
|
21723
|
+
"CreateGlobalRoutes": doCreateGlobalRoutes,
|
21355
21724
|
"ResetHighPriorityRoutes": doResetHighPriorityRoutes,
|
21356
21725
|
"DescribeVpcs": doDescribeVpcs,
|
21357
21726
|
"InquiryPriceModifyAddressesBandwidth": doInquiryPriceModifyAddressesBandwidth,
|
@@ -21368,6 +21737,7 @@ ACTION_MAP = {
|
|
21368
21737
|
"DeletePrivateNatGatewayTranslationNatRule": doDeletePrivateNatGatewayTranslationNatRule,
|
21369
21738
|
"DescribeDhcpIps": doDescribeDhcpIps,
|
21370
21739
|
"AssociateAddress": doAssociateAddress,
|
21740
|
+
"ModifyGlobalRouteECMPAlgorithm": doModifyGlobalRouteECMPAlgorithm,
|
21371
21741
|
"DeleteVpcPeeringConnection": doDeleteVpcPeeringConnection,
|
21372
21742
|
"DescribeFlowLogs": doDescribeFlowLogs,
|
21373
21743
|
"DescribeDirectConnectGatewayCcnRoutes": doDescribeDirectConnectGatewayCcnRoutes,
|
@@ -21383,7 +21753,7 @@ ACTION_MAP = {
|
|
21383
21753
|
"DeleteNatGateway": doDeleteNatGateway,
|
21384
21754
|
"DescribeRouteList": doDescribeRouteList,
|
21385
21755
|
"ModifyIpv6AddressesAttribute": doModifyIpv6AddressesAttribute,
|
21386
|
-
"
|
21756
|
+
"ModifyGlobalRoutes": doModifyGlobalRoutes,
|
21387
21757
|
"ModifyHighPriorityRouteTableAttribute": doModifyHighPriorityRouteTableAttribute,
|
21388
21758
|
"ReleaseIPv6Addresses": doReleaseIPv6Addresses,
|
21389
21759
|
"DeleteReserveIpAddresses": doDeleteReserveIpAddresses,
|
@@ -21426,6 +21796,7 @@ ACTION_MAP = {
|
|
21426
21796
|
"ModifyAssistantCidr": doModifyAssistantCidr,
|
21427
21797
|
"DeleteNatGatewayDestinationIpPortTranslationNatRule": doDeleteNatGatewayDestinationIpPortTranslationNatRule,
|
21428
21798
|
"CreateTrafficPackages": doCreateTrafficPackages,
|
21799
|
+
"CreateNetDetect": doCreateNetDetect,
|
21429
21800
|
"DescribeSnapshotFiles": doDescribeSnapshotFiles,
|
21430
21801
|
"CreateDhcpIp": doCreateDhcpIp,
|
21431
21802
|
"DescribeCdcNetPlanes": doDescribeCdcNetPlanes,
|
@@ -218,6 +218,15 @@
|
|
218
218
|
"name": "VPRAudioId",
|
219
219
|
"required": false,
|
220
220
|
"type": "string"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"disabled": false,
|
224
|
+
"document": "是否开启语音增强,0 - 关闭,1 - 开启 。默认关闭\n语音增强仅适用于一句话复刻场景",
|
225
|
+
"example": "0",
|
226
|
+
"member": "uint64",
|
227
|
+
"name": "EnableVoiceEnhance",
|
228
|
+
"required": false,
|
229
|
+
"type": "int"
|
221
230
|
}
|
222
231
|
],
|
223
232
|
"type": "object"
|