tccli 3.0.1199.1__py2.py3-none-any.whl → 3.0.1201.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/aiart/v20221229/api.json +7 -7
- tccli/services/autoscaling/v20180419/api.json +33 -5
- tccli/services/autoscaling/v20180419/examples.json +3 -3
- tccli/services/batch/v20170312/api.json +2 -2
- tccli/services/billing/v20180709/examples.json +2 -2
- tccli/services/ca/__init__.py +4 -0
- tccli/services/ca/ca_client.py +301 -0
- tccli/services/ca/v20230228/api.json +264 -0
- tccli/services/ca/v20230228/examples.json +41 -0
- tccli/services/ccc/ccc_client.py +153 -47
- tccli/services/ccc/v20200210/api.json +185 -1
- tccli/services/ccc/v20200210/examples.json +17 -1
- tccli/services/cdn/v20180606/api.json +30 -1
- tccli/services/cdwdoris/v20211228/api.json +5 -1
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +173 -25
- tccli/services/cvm/v20170312/examples.json +9 -1
- tccli/services/cwp/v20180228/api.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +56 -56
- tccli/services/dasb/v20191018/api.json +32 -3
- tccli/services/dts/v20211206/api.json +19 -19
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/ess/v20201111/api.json +18 -18
- tccli/services/ess/v20201111/examples.json +0 -6
- tccli/services/essbasic/v20210526/api.json +16 -7
- tccli/services/essbasic/v20210526/examples.json +0 -6
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +2 -2
- tccli/services/mqtt/v20240516/api.json +1 -1
- tccli/services/mrs/v20200910/api.json +71 -1
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/omics/v20221128/api.json +181 -34
- tccli/services/ses/v20201002/api.json +50 -0
- tccli/services/ses/v20201002/examples.json +6 -0
- tccli/services/ssl/v20191205/api.json +48 -0
- tccli/services/tcb/v20180608/api.json +21 -1
- tccli/services/teo/teo_client.py +724 -141
- tccli/services/teo/v20220901/api.json +993 -106
- tccli/services/teo/v20220901/examples.json +112 -0
- tccli/services/tke/v20180525/api.json +7 -4
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +1278 -3
- tccli/services/vpc/v20170312/examples.json +176 -0
- tccli/services/vpc/vpc_client.py +1315 -149
- {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/RECORD +51 -47
- {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/teo/teo_client.py
CHANGED
@@ -71,6 +71,58 @@ def doDestroyPlan(args, parsed_globals):
|
|
71
71
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
72
72
|
|
73
73
|
|
74
|
+
def doDeleteFunction(args, parsed_globals):
|
75
|
+
g_param = parse_global_arg(parsed_globals)
|
76
|
+
|
77
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
78
|
+
cred = credential.CVMRoleCredential()
|
79
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
80
|
+
cred = credential.STSAssumeRoleCredential(
|
81
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
82
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
83
|
+
)
|
84
|
+
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):
|
85
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
86
|
+
else:
|
87
|
+
cred = credential.Credential(
|
88
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
89
|
+
)
|
90
|
+
http_profile = HttpProfile(
|
91
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
92
|
+
reqMethod="POST",
|
93
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
94
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
95
|
+
)
|
96
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
97
|
+
if g_param[OptionsDefine.Language]:
|
98
|
+
profile.language = g_param[OptionsDefine.Language]
|
99
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
100
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
101
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
102
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
103
|
+
model = models.DeleteFunctionRequest()
|
104
|
+
model.from_json_string(json.dumps(args))
|
105
|
+
start_time = time.time()
|
106
|
+
while True:
|
107
|
+
rsp = client.DeleteFunction(model)
|
108
|
+
result = rsp.to_json_string()
|
109
|
+
try:
|
110
|
+
json_obj = json.loads(result)
|
111
|
+
except TypeError as e:
|
112
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
113
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
114
|
+
break
|
115
|
+
cur_time = time.time()
|
116
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
117
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
118
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
119
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
120
|
+
else:
|
121
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
122
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
123
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
124
|
+
|
125
|
+
|
74
126
|
def doCreatePurgeTask(args, parsed_globals):
|
75
127
|
g_param = parse_global_arg(parsed_globals)
|
76
128
|
|
@@ -435,6 +487,110 @@ def doVerifyOwnership(args, parsed_globals):
|
|
435
487
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
436
488
|
|
437
489
|
|
490
|
+
def doCreateFunctionRule(args, parsed_globals):
|
491
|
+
g_param = parse_global_arg(parsed_globals)
|
492
|
+
|
493
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
494
|
+
cred = credential.CVMRoleCredential()
|
495
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
496
|
+
cred = credential.STSAssumeRoleCredential(
|
497
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
498
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
499
|
+
)
|
500
|
+
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):
|
501
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
502
|
+
else:
|
503
|
+
cred = credential.Credential(
|
504
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
505
|
+
)
|
506
|
+
http_profile = HttpProfile(
|
507
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
508
|
+
reqMethod="POST",
|
509
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
510
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
511
|
+
)
|
512
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
513
|
+
if g_param[OptionsDefine.Language]:
|
514
|
+
profile.language = g_param[OptionsDefine.Language]
|
515
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
516
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
517
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
518
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
519
|
+
model = models.CreateFunctionRuleRequest()
|
520
|
+
model.from_json_string(json.dumps(args))
|
521
|
+
start_time = time.time()
|
522
|
+
while True:
|
523
|
+
rsp = client.CreateFunctionRule(model)
|
524
|
+
result = rsp.to_json_string()
|
525
|
+
try:
|
526
|
+
json_obj = json.loads(result)
|
527
|
+
except TypeError as e:
|
528
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
529
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
530
|
+
break
|
531
|
+
cur_time = time.time()
|
532
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
533
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
534
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
535
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
536
|
+
else:
|
537
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
538
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
539
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
540
|
+
|
541
|
+
|
542
|
+
def doDeleteFunctionRules(args, parsed_globals):
|
543
|
+
g_param = parse_global_arg(parsed_globals)
|
544
|
+
|
545
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
546
|
+
cred = credential.CVMRoleCredential()
|
547
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
548
|
+
cred = credential.STSAssumeRoleCredential(
|
549
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
550
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
551
|
+
)
|
552
|
+
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):
|
553
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
554
|
+
else:
|
555
|
+
cred = credential.Credential(
|
556
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
557
|
+
)
|
558
|
+
http_profile = HttpProfile(
|
559
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
560
|
+
reqMethod="POST",
|
561
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
562
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
563
|
+
)
|
564
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
565
|
+
if g_param[OptionsDefine.Language]:
|
566
|
+
profile.language = g_param[OptionsDefine.Language]
|
567
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
568
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
569
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
570
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
571
|
+
model = models.DeleteFunctionRulesRequest()
|
572
|
+
model.from_json_string(json.dumps(args))
|
573
|
+
start_time = time.time()
|
574
|
+
while True:
|
575
|
+
rsp = client.DeleteFunctionRules(model)
|
576
|
+
result = rsp.to_json_string()
|
577
|
+
try:
|
578
|
+
json_obj = json.loads(result)
|
579
|
+
except TypeError as e:
|
580
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
581
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
582
|
+
break
|
583
|
+
cur_time = time.time()
|
584
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
585
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
586
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
587
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
588
|
+
else:
|
589
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
590
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
591
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
592
|
+
|
593
|
+
|
438
594
|
def doIdentifyZone(args, parsed_globals):
|
439
595
|
g_param = parse_global_arg(parsed_globals)
|
440
596
|
|
@@ -591,6 +747,58 @@ def doDescribeAccelerationDomains(args, parsed_globals):
|
|
591
747
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
592
748
|
|
593
749
|
|
750
|
+
def doDescribeFunctionRuntimeEnvironment(args, parsed_globals):
|
751
|
+
g_param = parse_global_arg(parsed_globals)
|
752
|
+
|
753
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
754
|
+
cred = credential.CVMRoleCredential()
|
755
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
756
|
+
cred = credential.STSAssumeRoleCredential(
|
757
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
758
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
759
|
+
)
|
760
|
+
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):
|
761
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
762
|
+
else:
|
763
|
+
cred = credential.Credential(
|
764
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
765
|
+
)
|
766
|
+
http_profile = HttpProfile(
|
767
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
768
|
+
reqMethod="POST",
|
769
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
770
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
771
|
+
)
|
772
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
773
|
+
if g_param[OptionsDefine.Language]:
|
774
|
+
profile.language = g_param[OptionsDefine.Language]
|
775
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
776
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
777
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
778
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
779
|
+
model = models.DescribeFunctionRuntimeEnvironmentRequest()
|
780
|
+
model.from_json_string(json.dumps(args))
|
781
|
+
start_time = time.time()
|
782
|
+
while True:
|
783
|
+
rsp = client.DescribeFunctionRuntimeEnvironment(model)
|
784
|
+
result = rsp.to_json_string()
|
785
|
+
try:
|
786
|
+
json_obj = json.loads(result)
|
787
|
+
except TypeError as e:
|
788
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
789
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
790
|
+
break
|
791
|
+
cur_time = time.time()
|
792
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
793
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
794
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
795
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
796
|
+
else:
|
797
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
798
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
799
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
800
|
+
|
801
|
+
|
594
802
|
def doModifyOriginGroup(args, parsed_globals):
|
595
803
|
g_param = parse_global_arg(parsed_globals)
|
596
804
|
|
@@ -1267,7 +1475,7 @@ def doCreateAccelerationDomain(args, parsed_globals):
|
|
1267
1475
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1268
1476
|
|
1269
1477
|
|
1270
|
-
def
|
1478
|
+
def doDescribeConfigGroupVersionDetail(args, parsed_globals):
|
1271
1479
|
g_param = parse_global_arg(parsed_globals)
|
1272
1480
|
|
1273
1481
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1296,11 +1504,11 @@ def doModifyZoneSetting(args, parsed_globals):
|
|
1296
1504
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
1297
1505
|
client._sdkVersion += ("_CLI_" + __version__)
|
1298
1506
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1299
|
-
model = models.
|
1507
|
+
model = models.DescribeConfigGroupVersionDetailRequest()
|
1300
1508
|
model.from_json_string(json.dumps(args))
|
1301
1509
|
start_time = time.time()
|
1302
1510
|
while True:
|
1303
|
-
rsp = client.
|
1511
|
+
rsp = client.DescribeConfigGroupVersionDetail(model)
|
1304
1512
|
result = rsp.to_json_string()
|
1305
1513
|
try:
|
1306
1514
|
json_obj = json.loads(result)
|
@@ -1839,7 +2047,7 @@ def doModifyL4ProxyRules(args, parsed_globals):
|
|
1839
2047
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1840
2048
|
|
1841
2049
|
|
1842
|
-
def
|
2050
|
+
def doDescribeTimingL7CacheData(args, parsed_globals):
|
1843
2051
|
g_param = parse_global_arg(parsed_globals)
|
1844
2052
|
|
1845
2053
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1868,11 +2076,11 @@ def doDeleteRealtimeLogDeliveryTask(args, parsed_globals):
|
|
1868
2076
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
1869
2077
|
client._sdkVersion += ("_CLI_" + __version__)
|
1870
2078
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1871
|
-
model = models.
|
2079
|
+
model = models.DescribeTimingL7CacheDataRequest()
|
1872
2080
|
model.from_json_string(json.dumps(args))
|
1873
2081
|
start_time = time.time()
|
1874
2082
|
while True:
|
1875
|
-
rsp = client.
|
2083
|
+
rsp = client.DescribeTimingL7CacheData(model)
|
1876
2084
|
result = rsp.to_json_string()
|
1877
2085
|
try:
|
1878
2086
|
json_obj = json.loads(result)
|
@@ -1891,7 +2099,7 @@ def doDeleteRealtimeLogDeliveryTask(args, parsed_globals):
|
|
1891
2099
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1892
2100
|
|
1893
2101
|
|
1894
|
-
def
|
2102
|
+
def doDescribeConfigGroupVersions(args, parsed_globals):
|
1895
2103
|
g_param = parse_global_arg(parsed_globals)
|
1896
2104
|
|
1897
2105
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1920,11 +2128,11 @@ def doDescribeTimingL7CacheData(args, parsed_globals):
|
|
1920
2128
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
1921
2129
|
client._sdkVersion += ("_CLI_" + __version__)
|
1922
2130
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1923
|
-
model = models.
|
2131
|
+
model = models.DescribeConfigGroupVersionsRequest()
|
1924
2132
|
model.from_json_string(json.dumps(args))
|
1925
2133
|
start_time = time.time()
|
1926
2134
|
while True:
|
1927
|
-
rsp = client.
|
2135
|
+
rsp = client.DescribeConfigGroupVersions(model)
|
1928
2136
|
result = rsp.to_json_string()
|
1929
2137
|
try:
|
1930
2138
|
json_obj = json.loads(result)
|
@@ -1943,7 +2151,7 @@ def doDescribeTimingL7CacheData(args, parsed_globals):
|
|
1943
2151
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1944
2152
|
|
1945
2153
|
|
1946
|
-
def
|
2154
|
+
def doModifyZoneSetting(args, parsed_globals):
|
1947
2155
|
g_param = parse_global_arg(parsed_globals)
|
1948
2156
|
|
1949
2157
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1972,11 +2180,11 @@ def doDescribeConfigGroupVersions(args, parsed_globals):
|
|
1972
2180
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
1973
2181
|
client._sdkVersion += ("_CLI_" + __version__)
|
1974
2182
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1975
|
-
model = models.
|
2183
|
+
model = models.ModifyZoneSettingRequest()
|
1976
2184
|
model.from_json_string(json.dumps(args))
|
1977
2185
|
start_time = time.time()
|
1978
2186
|
while True:
|
1979
|
-
rsp = client.
|
2187
|
+
rsp = client.ModifyZoneSetting(model)
|
1980
2188
|
result = rsp.to_json_string()
|
1981
2189
|
try:
|
1982
2190
|
json_obj = json.loads(result)
|
@@ -1995,7 +2203,7 @@ def doDescribeConfigGroupVersions(args, parsed_globals):
|
|
1995
2203
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1996
2204
|
|
1997
2205
|
|
1998
|
-
def
|
2206
|
+
def doCreateAliasDomain(args, parsed_globals):
|
1999
2207
|
g_param = parse_global_arg(parsed_globals)
|
2000
2208
|
|
2001
2209
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2024,11 +2232,11 @@ def doDescribeConfigGroupVersionDetail(args, parsed_globals):
|
|
2024
2232
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2025
2233
|
client._sdkVersion += ("_CLI_" + __version__)
|
2026
2234
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2027
|
-
model = models.
|
2235
|
+
model = models.CreateAliasDomainRequest()
|
2028
2236
|
model.from_json_string(json.dumps(args))
|
2029
2237
|
start_time = time.time()
|
2030
2238
|
while True:
|
2031
|
-
rsp = client.
|
2239
|
+
rsp = client.CreateAliasDomain(model)
|
2032
2240
|
result = rsp.to_json_string()
|
2033
2241
|
try:
|
2034
2242
|
json_obj = json.loads(result)
|
@@ -2047,7 +2255,7 @@ def doDescribeConfigGroupVersionDetail(args, parsed_globals):
|
|
2047
2255
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2048
2256
|
|
2049
2257
|
|
2050
|
-
def
|
2258
|
+
def doModifyAliasDomainStatus(args, parsed_globals):
|
2051
2259
|
g_param = parse_global_arg(parsed_globals)
|
2052
2260
|
|
2053
2261
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2076,11 +2284,11 @@ def doCreateAliasDomain(args, parsed_globals):
|
|
2076
2284
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2077
2285
|
client._sdkVersion += ("_CLI_" + __version__)
|
2078
2286
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2079
|
-
model = models.
|
2287
|
+
model = models.ModifyAliasDomainStatusRequest()
|
2080
2288
|
model.from_json_string(json.dumps(args))
|
2081
2289
|
start_time = time.time()
|
2082
2290
|
while True:
|
2083
|
-
rsp = client.
|
2291
|
+
rsp = client.ModifyAliasDomainStatus(model)
|
2084
2292
|
result = rsp.to_json_string()
|
2085
2293
|
try:
|
2086
2294
|
json_obj = json.loads(result)
|
@@ -2099,7 +2307,7 @@ def doCreateAliasDomain(args, parsed_globals):
|
|
2099
2307
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2100
2308
|
|
2101
2309
|
|
2102
|
-
def
|
2310
|
+
def doCreateL4ProxyRules(args, parsed_globals):
|
2103
2311
|
g_param = parse_global_arg(parsed_globals)
|
2104
2312
|
|
2105
2313
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2128,11 +2336,11 @@ def doModifyAliasDomainStatus(args, parsed_globals):
|
|
2128
2336
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2129
2337
|
client._sdkVersion += ("_CLI_" + __version__)
|
2130
2338
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2131
|
-
model = models.
|
2339
|
+
model = models.CreateL4ProxyRulesRequest()
|
2132
2340
|
model.from_json_string(json.dumps(args))
|
2133
2341
|
start_time = time.time()
|
2134
2342
|
while True:
|
2135
|
-
rsp = client.
|
2343
|
+
rsp = client.CreateL4ProxyRules(model)
|
2136
2344
|
result = rsp.to_json_string()
|
2137
2345
|
try:
|
2138
2346
|
json_obj = json.loads(result)
|
@@ -2151,7 +2359,7 @@ def doModifyAliasDomainStatus(args, parsed_globals):
|
|
2151
2359
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2152
2360
|
|
2153
2361
|
|
2154
|
-
def
|
2362
|
+
def doDescribeTimingL4Data(args, parsed_globals):
|
2155
2363
|
g_param = parse_global_arg(parsed_globals)
|
2156
2364
|
|
2157
2365
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2180,11 +2388,11 @@ def doCreateL4ProxyRules(args, parsed_globals):
|
|
2180
2388
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2181
2389
|
client._sdkVersion += ("_CLI_" + __version__)
|
2182
2390
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2183
|
-
model = models.
|
2391
|
+
model = models.DescribeTimingL4DataRequest()
|
2184
2392
|
model.from_json_string(json.dumps(args))
|
2185
2393
|
start_time = time.time()
|
2186
2394
|
while True:
|
2187
|
-
rsp = client.
|
2395
|
+
rsp = client.DescribeTimingL4Data(model)
|
2188
2396
|
result = rsp.to_json_string()
|
2189
2397
|
try:
|
2190
2398
|
json_obj = json.loads(result)
|
@@ -2255,7 +2463,7 @@ def doDescribeTopL7CacheData(args, parsed_globals):
|
|
2255
2463
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2256
2464
|
|
2257
2465
|
|
2258
|
-
def
|
2466
|
+
def doModifyRule(args, parsed_globals):
|
2259
2467
|
g_param = parse_global_arg(parsed_globals)
|
2260
2468
|
|
2261
2469
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2284,11 +2492,11 @@ def doDescribeTimingL4Data(args, parsed_globals):
|
|
2284
2492
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2285
2493
|
client._sdkVersion += ("_CLI_" + __version__)
|
2286
2494
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2287
|
-
model = models.
|
2495
|
+
model = models.ModifyRuleRequest()
|
2288
2496
|
model.from_json_string(json.dumps(args))
|
2289
2497
|
start_time = time.time()
|
2290
2498
|
while True:
|
2291
|
-
rsp = client.
|
2499
|
+
rsp = client.ModifyRule(model)
|
2292
2500
|
result = rsp.to_json_string()
|
2293
2501
|
try:
|
2294
2502
|
json_obj = json.loads(result)
|
@@ -2307,7 +2515,7 @@ def doDescribeTimingL4Data(args, parsed_globals):
|
|
2307
2515
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2308
2516
|
|
2309
2517
|
|
2310
|
-
def
|
2518
|
+
def doDescribeTopL7AnalysisData(args, parsed_globals):
|
2311
2519
|
g_param = parse_global_arg(parsed_globals)
|
2312
2520
|
|
2313
2521
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2336,11 +2544,323 @@ def doModifyRule(args, parsed_globals):
|
|
2336
2544
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2337
2545
|
client._sdkVersion += ("_CLI_" + __version__)
|
2338
2546
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2339
|
-
model = models.
|
2547
|
+
model = models.DescribeTopL7AnalysisDataRequest()
|
2548
|
+
model.from_json_string(json.dumps(args))
|
2549
|
+
start_time = time.time()
|
2550
|
+
while True:
|
2551
|
+
rsp = client.DescribeTopL7AnalysisData(model)
|
2552
|
+
result = rsp.to_json_string()
|
2553
|
+
try:
|
2554
|
+
json_obj = json.loads(result)
|
2555
|
+
except TypeError as e:
|
2556
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2557
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2558
|
+
break
|
2559
|
+
cur_time = time.time()
|
2560
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2561
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2562
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2563
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2564
|
+
else:
|
2565
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2566
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2567
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2568
|
+
|
2569
|
+
|
2570
|
+
def doModifySecurityPolicy(args, parsed_globals):
|
2571
|
+
g_param = parse_global_arg(parsed_globals)
|
2572
|
+
|
2573
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2574
|
+
cred = credential.CVMRoleCredential()
|
2575
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2576
|
+
cred = credential.STSAssumeRoleCredential(
|
2577
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2578
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2579
|
+
)
|
2580
|
+
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):
|
2581
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2582
|
+
else:
|
2583
|
+
cred = credential.Credential(
|
2584
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2585
|
+
)
|
2586
|
+
http_profile = HttpProfile(
|
2587
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2588
|
+
reqMethod="POST",
|
2589
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2590
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2591
|
+
)
|
2592
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2593
|
+
if g_param[OptionsDefine.Language]:
|
2594
|
+
profile.language = g_param[OptionsDefine.Language]
|
2595
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2596
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2597
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2598
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2599
|
+
model = models.ModifySecurityPolicyRequest()
|
2600
|
+
model.from_json_string(json.dumps(args))
|
2601
|
+
start_time = time.time()
|
2602
|
+
while True:
|
2603
|
+
rsp = client.ModifySecurityPolicy(model)
|
2604
|
+
result = rsp.to_json_string()
|
2605
|
+
try:
|
2606
|
+
json_obj = json.loads(result)
|
2607
|
+
except TypeError as e:
|
2608
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2609
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2610
|
+
break
|
2611
|
+
cur_time = time.time()
|
2612
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2613
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2614
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2615
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2616
|
+
else:
|
2617
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2618
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2619
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2620
|
+
|
2621
|
+
|
2622
|
+
def doModifyPlan(args, parsed_globals):
|
2623
|
+
g_param = parse_global_arg(parsed_globals)
|
2624
|
+
|
2625
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2626
|
+
cred = credential.CVMRoleCredential()
|
2627
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2628
|
+
cred = credential.STSAssumeRoleCredential(
|
2629
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2630
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2631
|
+
)
|
2632
|
+
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):
|
2633
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2634
|
+
else:
|
2635
|
+
cred = credential.Credential(
|
2636
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2637
|
+
)
|
2638
|
+
http_profile = HttpProfile(
|
2639
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2640
|
+
reqMethod="POST",
|
2641
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2642
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2643
|
+
)
|
2644
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2645
|
+
if g_param[OptionsDefine.Language]:
|
2646
|
+
profile.language = g_param[OptionsDefine.Language]
|
2647
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2648
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2649
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2650
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2651
|
+
model = models.ModifyPlanRequest()
|
2652
|
+
model.from_json_string(json.dumps(args))
|
2653
|
+
start_time = time.time()
|
2654
|
+
while True:
|
2655
|
+
rsp = client.ModifyPlan(model)
|
2656
|
+
result = rsp.to_json_string()
|
2657
|
+
try:
|
2658
|
+
json_obj = json.loads(result)
|
2659
|
+
except TypeError as e:
|
2660
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2661
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2662
|
+
break
|
2663
|
+
cur_time = time.time()
|
2664
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2665
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2666
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2667
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2668
|
+
else:
|
2669
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2670
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2671
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2672
|
+
|
2673
|
+
|
2674
|
+
def doBindZoneToPlan(args, parsed_globals):
|
2675
|
+
g_param = parse_global_arg(parsed_globals)
|
2676
|
+
|
2677
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2678
|
+
cred = credential.CVMRoleCredential()
|
2679
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2680
|
+
cred = credential.STSAssumeRoleCredential(
|
2681
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2682
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2683
|
+
)
|
2684
|
+
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):
|
2685
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2686
|
+
else:
|
2687
|
+
cred = credential.Credential(
|
2688
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2689
|
+
)
|
2690
|
+
http_profile = HttpProfile(
|
2691
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2692
|
+
reqMethod="POST",
|
2693
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2694
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2695
|
+
)
|
2696
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2697
|
+
if g_param[OptionsDefine.Language]:
|
2698
|
+
profile.language = g_param[OptionsDefine.Language]
|
2699
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2700
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2701
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2702
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2703
|
+
model = models.BindZoneToPlanRequest()
|
2704
|
+
model.from_json_string(json.dumps(args))
|
2705
|
+
start_time = time.time()
|
2706
|
+
while True:
|
2707
|
+
rsp = client.BindZoneToPlan(model)
|
2708
|
+
result = rsp.to_json_string()
|
2709
|
+
try:
|
2710
|
+
json_obj = json.loads(result)
|
2711
|
+
except TypeError as e:
|
2712
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2713
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2714
|
+
break
|
2715
|
+
cur_time = time.time()
|
2716
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2717
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2718
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2719
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2720
|
+
else:
|
2721
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2722
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2723
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2724
|
+
|
2725
|
+
|
2726
|
+
def doDescribeDDoSAttackEvent(args, parsed_globals):
|
2727
|
+
g_param = parse_global_arg(parsed_globals)
|
2728
|
+
|
2729
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2730
|
+
cred = credential.CVMRoleCredential()
|
2731
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2732
|
+
cred = credential.STSAssumeRoleCredential(
|
2733
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2734
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2735
|
+
)
|
2736
|
+
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):
|
2737
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2738
|
+
else:
|
2739
|
+
cred = credential.Credential(
|
2740
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2741
|
+
)
|
2742
|
+
http_profile = HttpProfile(
|
2743
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2744
|
+
reqMethod="POST",
|
2745
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2746
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2747
|
+
)
|
2748
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2749
|
+
if g_param[OptionsDefine.Language]:
|
2750
|
+
profile.language = g_param[OptionsDefine.Language]
|
2751
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2752
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2753
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2754
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2755
|
+
model = models.DescribeDDoSAttackEventRequest()
|
2756
|
+
model.from_json_string(json.dumps(args))
|
2757
|
+
start_time = time.time()
|
2758
|
+
while True:
|
2759
|
+
rsp = client.DescribeDDoSAttackEvent(model)
|
2760
|
+
result = rsp.to_json_string()
|
2761
|
+
try:
|
2762
|
+
json_obj = json.loads(result)
|
2763
|
+
except TypeError as e:
|
2764
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2765
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2766
|
+
break
|
2767
|
+
cur_time = time.time()
|
2768
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2769
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2770
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2771
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2772
|
+
else:
|
2773
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2774
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2775
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2776
|
+
|
2777
|
+
|
2778
|
+
def doDeleteL4ProxyRules(args, parsed_globals):
|
2779
|
+
g_param = parse_global_arg(parsed_globals)
|
2780
|
+
|
2781
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2782
|
+
cred = credential.CVMRoleCredential()
|
2783
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2784
|
+
cred = credential.STSAssumeRoleCredential(
|
2785
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2786
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2787
|
+
)
|
2788
|
+
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):
|
2789
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2790
|
+
else:
|
2791
|
+
cred = credential.Credential(
|
2792
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2793
|
+
)
|
2794
|
+
http_profile = HttpProfile(
|
2795
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2796
|
+
reqMethod="POST",
|
2797
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2798
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2799
|
+
)
|
2800
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2801
|
+
if g_param[OptionsDefine.Language]:
|
2802
|
+
profile.language = g_param[OptionsDefine.Language]
|
2803
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2804
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2805
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2806
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2807
|
+
model = models.DeleteL4ProxyRulesRequest()
|
2808
|
+
model.from_json_string(json.dumps(args))
|
2809
|
+
start_time = time.time()
|
2810
|
+
while True:
|
2811
|
+
rsp = client.DeleteL4ProxyRules(model)
|
2812
|
+
result = rsp.to_json_string()
|
2813
|
+
try:
|
2814
|
+
json_obj = json.loads(result)
|
2815
|
+
except TypeError as e:
|
2816
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2817
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2818
|
+
break
|
2819
|
+
cur_time = time.time()
|
2820
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2821
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2822
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2823
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2824
|
+
else:
|
2825
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2826
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2827
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2828
|
+
|
2829
|
+
|
2830
|
+
def doCreateCustomizeErrorPage(args, parsed_globals):
|
2831
|
+
g_param = parse_global_arg(parsed_globals)
|
2832
|
+
|
2833
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2834
|
+
cred = credential.CVMRoleCredential()
|
2835
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2836
|
+
cred = credential.STSAssumeRoleCredential(
|
2837
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2838
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2839
|
+
)
|
2840
|
+
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):
|
2841
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2842
|
+
else:
|
2843
|
+
cred = credential.Credential(
|
2844
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2845
|
+
)
|
2846
|
+
http_profile = HttpProfile(
|
2847
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2848
|
+
reqMethod="POST",
|
2849
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2850
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2851
|
+
)
|
2852
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2853
|
+
if g_param[OptionsDefine.Language]:
|
2854
|
+
profile.language = g_param[OptionsDefine.Language]
|
2855
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2856
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2857
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2858
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2859
|
+
model = models.CreateCustomizeErrorPageRequest()
|
2340
2860
|
model.from_json_string(json.dumps(args))
|
2341
2861
|
start_time = time.time()
|
2342
2862
|
while True:
|
2343
|
-
rsp = client.
|
2863
|
+
rsp = client.CreateCustomizeErrorPage(model)
|
2344
2864
|
result = rsp.to_json_string()
|
2345
2865
|
try:
|
2346
2866
|
json_obj = json.loads(result)
|
@@ -2359,7 +2879,7 @@ def doModifyRule(args, parsed_globals):
|
|
2359
2879
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2360
2880
|
|
2361
2881
|
|
2362
|
-
def
|
2882
|
+
def doModifyAccelerationDomain(args, parsed_globals):
|
2363
2883
|
g_param = parse_global_arg(parsed_globals)
|
2364
2884
|
|
2365
2885
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2388,11 +2908,11 @@ def doDescribeTopL7AnalysisData(args, parsed_globals):
|
|
2388
2908
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2389
2909
|
client._sdkVersion += ("_CLI_" + __version__)
|
2390
2910
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2391
|
-
model = models.
|
2911
|
+
model = models.ModifyAccelerationDomainRequest()
|
2392
2912
|
model.from_json_string(json.dumps(args))
|
2393
2913
|
start_time = time.time()
|
2394
2914
|
while True:
|
2395
|
-
rsp = client.
|
2915
|
+
rsp = client.ModifyAccelerationDomain(model)
|
2396
2916
|
result = rsp.to_json_string()
|
2397
2917
|
try:
|
2398
2918
|
json_obj = json.loads(result)
|
@@ -2411,7 +2931,7 @@ def doDescribeTopL7AnalysisData(args, parsed_globals):
|
|
2411
2931
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2412
2932
|
|
2413
2933
|
|
2414
|
-
def
|
2934
|
+
def doCreateL4Proxy(args, parsed_globals):
|
2415
2935
|
g_param = parse_global_arg(parsed_globals)
|
2416
2936
|
|
2417
2937
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2440,11 +2960,11 @@ def doModifySecurityPolicy(args, parsed_globals):
|
|
2440
2960
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2441
2961
|
client._sdkVersion += ("_CLI_" + __version__)
|
2442
2962
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2443
|
-
model = models.
|
2963
|
+
model = models.CreateL4ProxyRequest()
|
2444
2964
|
model.from_json_string(json.dumps(args))
|
2445
2965
|
start_time = time.time()
|
2446
2966
|
while True:
|
2447
|
-
rsp = client.
|
2967
|
+
rsp = client.CreateL4Proxy(model)
|
2448
2968
|
result = rsp.to_json_string()
|
2449
2969
|
try:
|
2450
2970
|
json_obj = json.loads(result)
|
@@ -2463,7 +2983,7 @@ def doModifySecurityPolicy(args, parsed_globals):
|
|
2463
2983
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2464
2984
|
|
2465
2985
|
|
2466
|
-
def
|
2986
|
+
def doModifyApplicationProxyStatus(args, parsed_globals):
|
2467
2987
|
g_param = parse_global_arg(parsed_globals)
|
2468
2988
|
|
2469
2989
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2492,11 +3012,11 @@ def doModifyPlan(args, parsed_globals):
|
|
2492
3012
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2493
3013
|
client._sdkVersion += ("_CLI_" + __version__)
|
2494
3014
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2495
|
-
model = models.
|
3015
|
+
model = models.ModifyApplicationProxyStatusRequest()
|
2496
3016
|
model.from_json_string(json.dumps(args))
|
2497
3017
|
start_time = time.time()
|
2498
3018
|
while True:
|
2499
|
-
rsp = client.
|
3019
|
+
rsp = client.ModifyApplicationProxyStatus(model)
|
2500
3020
|
result = rsp.to_json_string()
|
2501
3021
|
try:
|
2502
3022
|
json_obj = json.loads(result)
|
@@ -2515,7 +3035,7 @@ def doModifyPlan(args, parsed_globals):
|
|
2515
3035
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2516
3036
|
|
2517
3037
|
|
2518
|
-
def
|
3038
|
+
def doCreatePlan(args, parsed_globals):
|
2519
3039
|
g_param = parse_global_arg(parsed_globals)
|
2520
3040
|
|
2521
3041
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2544,11 +3064,11 @@ def doBindZoneToPlan(args, parsed_globals):
|
|
2544
3064
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2545
3065
|
client._sdkVersion += ("_CLI_" + __version__)
|
2546
3066
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2547
|
-
model = models.
|
3067
|
+
model = models.CreatePlanRequest()
|
2548
3068
|
model.from_json_string(json.dumps(args))
|
2549
3069
|
start_time = time.time()
|
2550
3070
|
while True:
|
2551
|
-
rsp = client.
|
3071
|
+
rsp = client.CreatePlan(model)
|
2552
3072
|
result = rsp.to_json_string()
|
2553
3073
|
try:
|
2554
3074
|
json_obj = json.loads(result)
|
@@ -2567,7 +3087,7 @@ def doBindZoneToPlan(args, parsed_globals):
|
|
2567
3087
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2568
3088
|
|
2569
3089
|
|
2570
|
-
def
|
3090
|
+
def doDescribeTimingL7AnalysisData(args, parsed_globals):
|
2571
3091
|
g_param = parse_global_arg(parsed_globals)
|
2572
3092
|
|
2573
3093
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2596,11 +3116,11 @@ def doDescribeDDoSAttackEvent(args, parsed_globals):
|
|
2596
3116
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2597
3117
|
client._sdkVersion += ("_CLI_" + __version__)
|
2598
3118
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2599
|
-
model = models.
|
3119
|
+
model = models.DescribeTimingL7AnalysisDataRequest()
|
2600
3120
|
model.from_json_string(json.dumps(args))
|
2601
3121
|
start_time = time.time()
|
2602
3122
|
while True:
|
2603
|
-
rsp = client.
|
3123
|
+
rsp = client.DescribeTimingL7AnalysisData(model)
|
2604
3124
|
result = rsp.to_json_string()
|
2605
3125
|
try:
|
2606
3126
|
json_obj = json.loads(result)
|
@@ -2619,7 +3139,7 @@ def doDescribeDDoSAttackEvent(args, parsed_globals):
|
|
2619
3139
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2620
3140
|
|
2621
3141
|
|
2622
|
-
def
|
3142
|
+
def doCreateFunction(args, parsed_globals):
|
2623
3143
|
g_param = parse_global_arg(parsed_globals)
|
2624
3144
|
|
2625
3145
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2648,11 +3168,11 @@ def doDeleteL4ProxyRules(args, parsed_globals):
|
|
2648
3168
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2649
3169
|
client._sdkVersion += ("_CLI_" + __version__)
|
2650
3170
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2651
|
-
model = models.
|
3171
|
+
model = models.CreateFunctionRequest()
|
2652
3172
|
model.from_json_string(json.dumps(args))
|
2653
3173
|
start_time = time.time()
|
2654
3174
|
while True:
|
2655
|
-
rsp = client.
|
3175
|
+
rsp = client.CreateFunction(model)
|
2656
3176
|
result = rsp.to_json_string()
|
2657
3177
|
try:
|
2658
3178
|
json_obj = json.loads(result)
|
@@ -2671,7 +3191,7 @@ def doDeleteL4ProxyRules(args, parsed_globals):
|
|
2671
3191
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2672
3192
|
|
2673
3193
|
|
2674
|
-
def
|
3194
|
+
def doDescribeApplicationProxies(args, parsed_globals):
|
2675
3195
|
g_param = parse_global_arg(parsed_globals)
|
2676
3196
|
|
2677
3197
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2700,11 +3220,11 @@ def doCreateCustomizeErrorPage(args, parsed_globals):
|
|
2700
3220
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2701
3221
|
client._sdkVersion += ("_CLI_" + __version__)
|
2702
3222
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2703
|
-
model = models.
|
3223
|
+
model = models.DescribeApplicationProxiesRequest()
|
2704
3224
|
model.from_json_string(json.dumps(args))
|
2705
3225
|
start_time = time.time()
|
2706
3226
|
while True:
|
2707
|
-
rsp = client.
|
3227
|
+
rsp = client.DescribeApplicationProxies(model)
|
2708
3228
|
result = rsp.to_json_string()
|
2709
3229
|
try:
|
2710
3230
|
json_obj = json.loads(result)
|
@@ -2723,7 +3243,7 @@ def doCreateCustomizeErrorPage(args, parsed_globals):
|
|
2723
3243
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2724
3244
|
|
2725
3245
|
|
2726
|
-
def
|
3246
|
+
def doCreateSharedCNAME(args, parsed_globals):
|
2727
3247
|
g_param = parse_global_arg(parsed_globals)
|
2728
3248
|
|
2729
3249
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2752,11 +3272,11 @@ def doModifyAccelerationDomain(args, parsed_globals):
|
|
2752
3272
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2753
3273
|
client._sdkVersion += ("_CLI_" + __version__)
|
2754
3274
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2755
|
-
model = models.
|
3275
|
+
model = models.CreateSharedCNAMERequest()
|
2756
3276
|
model.from_json_string(json.dumps(args))
|
2757
3277
|
start_time = time.time()
|
2758
3278
|
while True:
|
2759
|
-
rsp = client.
|
3279
|
+
rsp = client.CreateSharedCNAME(model)
|
2760
3280
|
result = rsp.to_json_string()
|
2761
3281
|
try:
|
2762
3282
|
json_obj = json.loads(result)
|
@@ -2775,7 +3295,7 @@ def doModifyAccelerationDomain(args, parsed_globals):
|
|
2775
3295
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2776
3296
|
|
2777
3297
|
|
2778
|
-
def
|
3298
|
+
def doCreateRule(args, parsed_globals):
|
2779
3299
|
g_param = parse_global_arg(parsed_globals)
|
2780
3300
|
|
2781
3301
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2804,11 +3324,11 @@ def doCreateL4Proxy(args, parsed_globals):
|
|
2804
3324
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2805
3325
|
client._sdkVersion += ("_CLI_" + __version__)
|
2806
3326
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2807
|
-
model = models.
|
3327
|
+
model = models.CreateRuleRequest()
|
2808
3328
|
model.from_json_string(json.dumps(args))
|
2809
3329
|
start_time = time.time()
|
2810
3330
|
while True:
|
2811
|
-
rsp = client.
|
3331
|
+
rsp = client.CreateRule(model)
|
2812
3332
|
result = rsp.to_json_string()
|
2813
3333
|
try:
|
2814
3334
|
json_obj = json.loads(result)
|
@@ -2827,7 +3347,7 @@ def doCreateL4Proxy(args, parsed_globals):
|
|
2827
3347
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2828
3348
|
|
2829
3349
|
|
2830
|
-
def
|
3350
|
+
def doCreateConfigGroupVersion(args, parsed_globals):
|
2831
3351
|
g_param = parse_global_arg(parsed_globals)
|
2832
3352
|
|
2833
3353
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2856,11 +3376,11 @@ def doModifyApplicationProxyStatus(args, parsed_globals):
|
|
2856
3376
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2857
3377
|
client._sdkVersion += ("_CLI_" + __version__)
|
2858
3378
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2859
|
-
model = models.
|
3379
|
+
model = models.CreateConfigGroupVersionRequest()
|
2860
3380
|
model.from_json_string(json.dumps(args))
|
2861
3381
|
start_time = time.time()
|
2862
3382
|
while True:
|
2863
|
-
rsp = client.
|
3383
|
+
rsp = client.CreateConfigGroupVersion(model)
|
2864
3384
|
result = rsp.to_json_string()
|
2865
3385
|
try:
|
2866
3386
|
json_obj = json.loads(result)
|
@@ -2879,7 +3399,7 @@ def doModifyApplicationProxyStatus(args, parsed_globals):
|
|
2879
3399
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2880
3400
|
|
2881
3401
|
|
2882
|
-
def
|
3402
|
+
def doModifyFunction(args, parsed_globals):
|
2883
3403
|
g_param = parse_global_arg(parsed_globals)
|
2884
3404
|
|
2885
3405
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2908,11 +3428,11 @@ def doCreatePlan(args, parsed_globals):
|
|
2908
3428
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2909
3429
|
client._sdkVersion += ("_CLI_" + __version__)
|
2910
3430
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2911
|
-
model = models.
|
3431
|
+
model = models.ModifyFunctionRequest()
|
2912
3432
|
model.from_json_string(json.dumps(args))
|
2913
3433
|
start_time = time.time()
|
2914
3434
|
while True:
|
2915
|
-
rsp = client.
|
3435
|
+
rsp = client.ModifyFunction(model)
|
2916
3436
|
result = rsp.to_json_string()
|
2917
3437
|
try:
|
2918
3438
|
json_obj = json.loads(result)
|
@@ -2931,7 +3451,7 @@ def doCreatePlan(args, parsed_globals):
|
|
2931
3451
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2932
3452
|
|
2933
3453
|
|
2934
|
-
def
|
3454
|
+
def doModifyApplicationProxy(args, parsed_globals):
|
2935
3455
|
g_param = parse_global_arg(parsed_globals)
|
2936
3456
|
|
2937
3457
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2960,11 +3480,11 @@ def doDescribeTimingL7AnalysisData(args, parsed_globals):
|
|
2960
3480
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
2961
3481
|
client._sdkVersion += ("_CLI_" + __version__)
|
2962
3482
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2963
|
-
model = models.
|
3483
|
+
model = models.ModifyApplicationProxyRequest()
|
2964
3484
|
model.from_json_string(json.dumps(args))
|
2965
3485
|
start_time = time.time()
|
2966
3486
|
while True:
|
2967
|
-
rsp = client.
|
3487
|
+
rsp = client.ModifyApplicationProxy(model)
|
2968
3488
|
result = rsp.to_json_string()
|
2969
3489
|
try:
|
2970
3490
|
json_obj = json.loads(result)
|
@@ -2983,7 +3503,7 @@ def doDescribeTimingL7AnalysisData(args, parsed_globals):
|
|
2983
3503
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2984
3504
|
|
2985
3505
|
|
2986
|
-
def
|
3506
|
+
def doCreateZone(args, parsed_globals):
|
2987
3507
|
g_param = parse_global_arg(parsed_globals)
|
2988
3508
|
|
2989
3509
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3012,11 +3532,11 @@ def doDescribeApplicationProxies(args, parsed_globals):
|
|
3012
3532
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3013
3533
|
client._sdkVersion += ("_CLI_" + __version__)
|
3014
3534
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3015
|
-
model = models.
|
3535
|
+
model = models.CreateZoneRequest()
|
3016
3536
|
model.from_json_string(json.dumps(args))
|
3017
3537
|
start_time = time.time()
|
3018
3538
|
while True:
|
3019
|
-
rsp = client.
|
3539
|
+
rsp = client.CreateZone(model)
|
3020
3540
|
result = rsp.to_json_string()
|
3021
3541
|
try:
|
3022
3542
|
json_obj = json.loads(result)
|
@@ -3035,7 +3555,7 @@ def doDescribeApplicationProxies(args, parsed_globals):
|
|
3035
3555
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3036
3556
|
|
3037
3557
|
|
3038
|
-
def
|
3558
|
+
def doModifyFunctionRule(args, parsed_globals):
|
3039
3559
|
g_param = parse_global_arg(parsed_globals)
|
3040
3560
|
|
3041
3561
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3064,11 +3584,11 @@ def doCreateSharedCNAME(args, parsed_globals):
|
|
3064
3584
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3065
3585
|
client._sdkVersion += ("_CLI_" + __version__)
|
3066
3586
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3067
|
-
model = models.
|
3587
|
+
model = models.ModifyFunctionRuleRequest()
|
3068
3588
|
model.from_json_string(json.dumps(args))
|
3069
3589
|
start_time = time.time()
|
3070
3590
|
while True:
|
3071
|
-
rsp = client.
|
3591
|
+
rsp = client.ModifyFunctionRule(model)
|
3072
3592
|
result = rsp.to_json_string()
|
3073
3593
|
try:
|
3074
3594
|
json_obj = json.loads(result)
|
@@ -3087,7 +3607,7 @@ def doCreateSharedCNAME(args, parsed_globals):
|
|
3087
3607
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3088
3608
|
|
3089
3609
|
|
3090
|
-
def
|
3610
|
+
def doDescribeAvailablePlans(args, parsed_globals):
|
3091
3611
|
g_param = parse_global_arg(parsed_globals)
|
3092
3612
|
|
3093
3613
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3116,11 +3636,11 @@ def doCreateRule(args, parsed_globals):
|
|
3116
3636
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3117
3637
|
client._sdkVersion += ("_CLI_" + __version__)
|
3118
3638
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3119
|
-
model = models.
|
3639
|
+
model = models.DescribeAvailablePlansRequest()
|
3120
3640
|
model.from_json_string(json.dumps(args))
|
3121
3641
|
start_time = time.time()
|
3122
3642
|
while True:
|
3123
|
-
rsp = client.
|
3643
|
+
rsp = client.DescribeAvailablePlans(model)
|
3124
3644
|
result = rsp.to_json_string()
|
3125
3645
|
try:
|
3126
3646
|
json_obj = json.loads(result)
|
@@ -3139,7 +3659,7 @@ def doCreateRule(args, parsed_globals):
|
|
3139
3659
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3140
3660
|
|
3141
3661
|
|
3142
|
-
def
|
3662
|
+
def doDescribeCustomErrorPages(args, parsed_globals):
|
3143
3663
|
g_param = parse_global_arg(parsed_globals)
|
3144
3664
|
|
3145
3665
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3168,11 +3688,11 @@ def doCreateConfigGroupVersion(args, parsed_globals):
|
|
3168
3688
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3169
3689
|
client._sdkVersion += ("_CLI_" + __version__)
|
3170
3690
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3171
|
-
model = models.
|
3691
|
+
model = models.DescribeCustomErrorPagesRequest()
|
3172
3692
|
model.from_json_string(json.dumps(args))
|
3173
3693
|
start_time = time.time()
|
3174
3694
|
while True:
|
3175
|
-
rsp = client.
|
3695
|
+
rsp = client.DescribeCustomErrorPages(model)
|
3176
3696
|
result = rsp.to_json_string()
|
3177
3697
|
try:
|
3178
3698
|
json_obj = json.loads(result)
|
@@ -3191,7 +3711,7 @@ def doCreateConfigGroupVersion(args, parsed_globals):
|
|
3191
3711
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3192
3712
|
|
3193
3713
|
|
3194
|
-
def
|
3714
|
+
def doDescribeRulesSetting(args, parsed_globals):
|
3195
3715
|
g_param = parse_global_arg(parsed_globals)
|
3196
3716
|
|
3197
3717
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3220,11 +3740,11 @@ def doModifyApplicationProxy(args, parsed_globals):
|
|
3220
3740
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3221
3741
|
client._sdkVersion += ("_CLI_" + __version__)
|
3222
3742
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3223
|
-
model = models.
|
3743
|
+
model = models.DescribeRulesSettingRequest()
|
3224
3744
|
model.from_json_string(json.dumps(args))
|
3225
3745
|
start_time = time.time()
|
3226
3746
|
while True:
|
3227
|
-
rsp = client.
|
3747
|
+
rsp = client.DescribeRulesSetting(model)
|
3228
3748
|
result = rsp.to_json_string()
|
3229
3749
|
try:
|
3230
3750
|
json_obj = json.loads(result)
|
@@ -3243,7 +3763,7 @@ def doModifyApplicationProxy(args, parsed_globals):
|
|
3243
3763
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3244
3764
|
|
3245
3765
|
|
3246
|
-
def
|
3766
|
+
def doModifyAccelerationDomainStatuses(args, parsed_globals):
|
3247
3767
|
g_param = parse_global_arg(parsed_globals)
|
3248
3768
|
|
3249
3769
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3272,11 +3792,11 @@ def doCreateZone(args, parsed_globals):
|
|
3272
3792
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3273
3793
|
client._sdkVersion += ("_CLI_" + __version__)
|
3274
3794
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3275
|
-
model = models.
|
3795
|
+
model = models.ModifyAccelerationDomainStatusesRequest()
|
3276
3796
|
model.from_json_string(json.dumps(args))
|
3277
3797
|
start_time = time.time()
|
3278
3798
|
while True:
|
3279
|
-
rsp = client.
|
3799
|
+
rsp = client.ModifyAccelerationDomainStatuses(model)
|
3280
3800
|
result = rsp.to_json_string()
|
3281
3801
|
try:
|
3282
3802
|
json_obj = json.loads(result)
|
@@ -3295,7 +3815,7 @@ def doCreateZone(args, parsed_globals):
|
|
3295
3815
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3296
3816
|
|
3297
3817
|
|
3298
|
-
def
|
3818
|
+
def doModifySecurityIPGroup(args, parsed_globals):
|
3299
3819
|
g_param = parse_global_arg(parsed_globals)
|
3300
3820
|
|
3301
3821
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3324,11 +3844,11 @@ def doDescribeAvailablePlans(args, parsed_globals):
|
|
3324
3844
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3325
3845
|
client._sdkVersion += ("_CLI_" + __version__)
|
3326
3846
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3327
|
-
model = models.
|
3847
|
+
model = models.ModifySecurityIPGroupRequest()
|
3328
3848
|
model.from_json_string(json.dumps(args))
|
3329
3849
|
start_time = time.time()
|
3330
3850
|
while True:
|
3331
|
-
rsp = client.
|
3851
|
+
rsp = client.ModifySecurityIPGroup(model)
|
3332
3852
|
result = rsp.to_json_string()
|
3333
3853
|
try:
|
3334
3854
|
json_obj = json.loads(result)
|
@@ -3347,7 +3867,7 @@ def doDescribeAvailablePlans(args, parsed_globals):
|
|
3347
3867
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3348
3868
|
|
3349
3869
|
|
3350
|
-
def
|
3870
|
+
def doDeleteRealtimeLogDeliveryTask(args, parsed_globals):
|
3351
3871
|
g_param = parse_global_arg(parsed_globals)
|
3352
3872
|
|
3353
3873
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3376,11 +3896,11 @@ def doDescribeCustomErrorPages(args, parsed_globals):
|
|
3376
3896
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3377
3897
|
client._sdkVersion += ("_CLI_" + __version__)
|
3378
3898
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3379
|
-
model = models.
|
3899
|
+
model = models.DeleteRealtimeLogDeliveryTaskRequest()
|
3380
3900
|
model.from_json_string(json.dumps(args))
|
3381
3901
|
start_time = time.time()
|
3382
3902
|
while True:
|
3383
|
-
rsp = client.
|
3903
|
+
rsp = client.DeleteRealtimeLogDeliveryTask(model)
|
3384
3904
|
result = rsp.to_json_string()
|
3385
3905
|
try:
|
3386
3906
|
json_obj = json.loads(result)
|
@@ -3399,7 +3919,7 @@ def doDescribeCustomErrorPages(args, parsed_globals):
|
|
3399
3919
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3400
3920
|
|
3401
3921
|
|
3402
|
-
def
|
3922
|
+
def doDescribeDDoSAttackTopData(args, parsed_globals):
|
3403
3923
|
g_param = parse_global_arg(parsed_globals)
|
3404
3924
|
|
3405
3925
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3428,11 +3948,11 @@ def doDescribeRulesSetting(args, parsed_globals):
|
|
3428
3948
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3429
3949
|
client._sdkVersion += ("_CLI_" + __version__)
|
3430
3950
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3431
|
-
model = models.
|
3951
|
+
model = models.DescribeDDoSAttackTopDataRequest()
|
3432
3952
|
model.from_json_string(json.dumps(args))
|
3433
3953
|
start_time = time.time()
|
3434
3954
|
while True:
|
3435
|
-
rsp = client.
|
3955
|
+
rsp = client.DescribeDDoSAttackTopData(model)
|
3436
3956
|
result = rsp.to_json_string()
|
3437
3957
|
try:
|
3438
3958
|
json_obj = json.loads(result)
|
@@ -3451,7 +3971,7 @@ def doDescribeRulesSetting(args, parsed_globals):
|
|
3451
3971
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3452
3972
|
|
3453
3973
|
|
3454
|
-
def
|
3974
|
+
def doModifyZoneStatus(args, parsed_globals):
|
3455
3975
|
g_param = parse_global_arg(parsed_globals)
|
3456
3976
|
|
3457
3977
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3480,11 +4000,11 @@ def doModifyAccelerationDomainStatuses(args, parsed_globals):
|
|
3480
4000
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3481
4001
|
client._sdkVersion += ("_CLI_" + __version__)
|
3482
4002
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3483
|
-
model = models.
|
4003
|
+
model = models.ModifyZoneStatusRequest()
|
3484
4004
|
model.from_json_string(json.dumps(args))
|
3485
4005
|
start_time = time.time()
|
3486
4006
|
while True:
|
3487
|
-
rsp = client.
|
4007
|
+
rsp = client.ModifyZoneStatus(model)
|
3488
4008
|
result = rsp.to_json_string()
|
3489
4009
|
try:
|
3490
4010
|
json_obj = json.loads(result)
|
@@ -3503,7 +4023,7 @@ def doModifyAccelerationDomainStatuses(args, parsed_globals):
|
|
3503
4023
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3504
4024
|
|
3505
4025
|
|
3506
|
-
def
|
4026
|
+
def doDescribePurgeTasks(args, parsed_globals):
|
3507
4027
|
g_param = parse_global_arg(parsed_globals)
|
3508
4028
|
|
3509
4029
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3532,11 +4052,11 @@ def doModifySecurityIPGroup(args, parsed_globals):
|
|
3532
4052
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3533
4053
|
client._sdkVersion += ("_CLI_" + __version__)
|
3534
4054
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3535
|
-
model = models.
|
4055
|
+
model = models.DescribePurgeTasksRequest()
|
3536
4056
|
model.from_json_string(json.dumps(args))
|
3537
4057
|
start_time = time.time()
|
3538
4058
|
while True:
|
3539
|
-
rsp = client.
|
4059
|
+
rsp = client.DescribePurgeTasks(model)
|
3540
4060
|
result = rsp.to_json_string()
|
3541
4061
|
try:
|
3542
4062
|
json_obj = json.loads(result)
|
@@ -3555,7 +4075,7 @@ def doModifySecurityIPGroup(args, parsed_globals):
|
|
3555
4075
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3556
4076
|
|
3557
4077
|
|
3558
|
-
def
|
4078
|
+
def doDeleteRules(args, parsed_globals):
|
3559
4079
|
g_param = parse_global_arg(parsed_globals)
|
3560
4080
|
|
3561
4081
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3584,11 +4104,11 @@ def doUpgradePlan(args, parsed_globals):
|
|
3584
4104
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3585
4105
|
client._sdkVersion += ("_CLI_" + __version__)
|
3586
4106
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3587
|
-
model = models.
|
4107
|
+
model = models.DeleteRulesRequest()
|
3588
4108
|
model.from_json_string(json.dumps(args))
|
3589
4109
|
start_time = time.time()
|
3590
4110
|
while True:
|
3591
|
-
rsp = client.
|
4111
|
+
rsp = client.DeleteRules(model)
|
3592
4112
|
result = rsp.to_json_string()
|
3593
4113
|
try:
|
3594
4114
|
json_obj = json.loads(result)
|
@@ -3607,7 +4127,7 @@ def doUpgradePlan(args, parsed_globals):
|
|
3607
4127
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3608
4128
|
|
3609
4129
|
|
3610
|
-
def
|
4130
|
+
def doDescribeL4ProxyRules(args, parsed_globals):
|
3611
4131
|
g_param = parse_global_arg(parsed_globals)
|
3612
4132
|
|
3613
4133
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3636,11 +4156,11 @@ def doDescribeDDoSAttackTopData(args, parsed_globals):
|
|
3636
4156
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3637
4157
|
client._sdkVersion += ("_CLI_" + __version__)
|
3638
4158
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3639
|
-
model = models.
|
4159
|
+
model = models.DescribeL4ProxyRulesRequest()
|
3640
4160
|
model.from_json_string(json.dumps(args))
|
3641
4161
|
start_time = time.time()
|
3642
4162
|
while True:
|
3643
|
-
rsp = client.
|
4163
|
+
rsp = client.DescribeL4ProxyRules(model)
|
3644
4164
|
result = rsp.to_json_string()
|
3645
4165
|
try:
|
3646
4166
|
json_obj = json.loads(result)
|
@@ -3659,7 +4179,7 @@ def doDescribeDDoSAttackTopData(args, parsed_globals):
|
|
3659
4179
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3660
4180
|
|
3661
4181
|
|
3662
|
-
def
|
4182
|
+
def doDeleteCustomErrorPage(args, parsed_globals):
|
3663
4183
|
g_param = parse_global_arg(parsed_globals)
|
3664
4184
|
|
3665
4185
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3688,11 +4208,11 @@ def doModifyZoneStatus(args, parsed_globals):
|
|
3688
4208
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3689
4209
|
client._sdkVersion += ("_CLI_" + __version__)
|
3690
4210
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3691
|
-
model = models.
|
4211
|
+
model = models.DeleteCustomErrorPageRequest()
|
3692
4212
|
model.from_json_string(json.dumps(args))
|
3693
4213
|
start_time = time.time()
|
3694
4214
|
while True:
|
3695
|
-
rsp = client.
|
4215
|
+
rsp = client.DeleteCustomErrorPage(model)
|
3696
4216
|
result = rsp.to_json_string()
|
3697
4217
|
try:
|
3698
4218
|
json_obj = json.loads(result)
|
@@ -3711,7 +4231,7 @@ def doModifyZoneStatus(args, parsed_globals):
|
|
3711
4231
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3712
4232
|
|
3713
4233
|
|
3714
|
-
def
|
4234
|
+
def doHandleFunctionRuntimeEnvironment(args, parsed_globals):
|
3715
4235
|
g_param = parse_global_arg(parsed_globals)
|
3716
4236
|
|
3717
4237
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3740,11 +4260,11 @@ def doDescribePurgeTasks(args, parsed_globals):
|
|
3740
4260
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3741
4261
|
client._sdkVersion += ("_CLI_" + __version__)
|
3742
4262
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3743
|
-
model = models.
|
4263
|
+
model = models.HandleFunctionRuntimeEnvironmentRequest()
|
3744
4264
|
model.from_json_string(json.dumps(args))
|
3745
4265
|
start_time = time.time()
|
3746
4266
|
while True:
|
3747
|
-
rsp = client.
|
4267
|
+
rsp = client.HandleFunctionRuntimeEnvironment(model)
|
3748
4268
|
result = rsp.to_json_string()
|
3749
4269
|
try:
|
3750
4270
|
json_obj = json.loads(result)
|
@@ -3763,7 +4283,7 @@ def doDescribePurgeTasks(args, parsed_globals):
|
|
3763
4283
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3764
4284
|
|
3765
4285
|
|
3766
|
-
def
|
4286
|
+
def doModifyFunctionRulePriority(args, parsed_globals):
|
3767
4287
|
g_param = parse_global_arg(parsed_globals)
|
3768
4288
|
|
3769
4289
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3792,11 +4312,11 @@ def doDeleteRules(args, parsed_globals):
|
|
3792
4312
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3793
4313
|
client._sdkVersion += ("_CLI_" + __version__)
|
3794
4314
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3795
|
-
model = models.
|
4315
|
+
model = models.ModifyFunctionRulePriorityRequest()
|
3796
4316
|
model.from_json_string(json.dumps(args))
|
3797
4317
|
start_time = time.time()
|
3798
4318
|
while True:
|
3799
|
-
rsp = client.
|
4319
|
+
rsp = client.ModifyFunctionRulePriority(model)
|
3800
4320
|
result = rsp.to_json_string()
|
3801
4321
|
try:
|
3802
4322
|
json_obj = json.loads(result)
|
@@ -3815,7 +4335,7 @@ def doDeleteRules(args, parsed_globals):
|
|
3815
4335
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3816
4336
|
|
3817
4337
|
|
3818
|
-
def
|
4338
|
+
def doDescribeFunctionRules(args, parsed_globals):
|
3819
4339
|
g_param = parse_global_arg(parsed_globals)
|
3820
4340
|
|
3821
4341
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3844,11 +4364,11 @@ def doDescribeL4ProxyRules(args, parsed_globals):
|
|
3844
4364
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3845
4365
|
client._sdkVersion += ("_CLI_" + __version__)
|
3846
4366
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3847
|
-
model = models.
|
4367
|
+
model = models.DescribeFunctionRulesRequest()
|
3848
4368
|
model.from_json_string(json.dumps(args))
|
3849
4369
|
start_time = time.time()
|
3850
4370
|
while True:
|
3851
|
-
rsp = client.
|
4371
|
+
rsp = client.DescribeFunctionRules(model)
|
3852
4372
|
result = rsp.to_json_string()
|
3853
4373
|
try:
|
3854
4374
|
json_obj = json.loads(result)
|
@@ -3867,7 +4387,7 @@ def doDescribeL4ProxyRules(args, parsed_globals):
|
|
3867
4387
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3868
4388
|
|
3869
4389
|
|
3870
|
-
def
|
4390
|
+
def doDescribeRules(args, parsed_globals):
|
3871
4391
|
g_param = parse_global_arg(parsed_globals)
|
3872
4392
|
|
3873
4393
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3896,11 +4416,11 @@ def doDeleteCustomErrorPage(args, parsed_globals):
|
|
3896
4416
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3897
4417
|
client._sdkVersion += ("_CLI_" + __version__)
|
3898
4418
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3899
|
-
model = models.
|
4419
|
+
model = models.DescribeRulesRequest()
|
3900
4420
|
model.from_json_string(json.dumps(args))
|
3901
4421
|
start_time = time.time()
|
3902
4422
|
while True:
|
3903
|
-
rsp = client.
|
4423
|
+
rsp = client.DescribeRules(model)
|
3904
4424
|
result = rsp.to_json_string()
|
3905
4425
|
try:
|
3906
4426
|
json_obj = json.loads(result)
|
@@ -3919,7 +4439,7 @@ def doDeleteCustomErrorPage(args, parsed_globals):
|
|
3919
4439
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3920
4440
|
|
3921
4441
|
|
3922
|
-
def
|
4442
|
+
def doCreateCLSIndex(args, parsed_globals):
|
3923
4443
|
g_param = parse_global_arg(parsed_globals)
|
3924
4444
|
|
3925
4445
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3948,11 +4468,11 @@ def doDescribeRules(args, parsed_globals):
|
|
3948
4468
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
3949
4469
|
client._sdkVersion += ("_CLI_" + __version__)
|
3950
4470
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3951
|
-
model = models.
|
4471
|
+
model = models.CreateCLSIndexRequest()
|
3952
4472
|
model.from_json_string(json.dumps(args))
|
3953
4473
|
start_time = time.time()
|
3954
4474
|
while True:
|
3955
|
-
rsp = client.
|
4475
|
+
rsp = client.CreateCLSIndex(model)
|
3956
4476
|
result = rsp.to_json_string()
|
3957
4477
|
try:
|
3958
4478
|
json_obj = json.loads(result)
|
@@ -3971,7 +4491,7 @@ def doDescribeRules(args, parsed_globals):
|
|
3971
4491
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3972
4492
|
|
3973
4493
|
|
3974
|
-
def
|
4494
|
+
def doCreateApplicationProxy(args, parsed_globals):
|
3975
4495
|
g_param = parse_global_arg(parsed_globals)
|
3976
4496
|
|
3977
4497
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4000,11 +4520,11 @@ def doCreateCLSIndex(args, parsed_globals):
|
|
4000
4520
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
4001
4521
|
client._sdkVersion += ("_CLI_" + __version__)
|
4002
4522
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4003
|
-
model = models.
|
4523
|
+
model = models.CreateApplicationProxyRequest()
|
4004
4524
|
model.from_json_string(json.dumps(args))
|
4005
4525
|
start_time = time.time()
|
4006
4526
|
while True:
|
4007
|
-
rsp = client.
|
4527
|
+
rsp = client.CreateApplicationProxy(model)
|
4008
4528
|
result = rsp.to_json_string()
|
4009
4529
|
try:
|
4010
4530
|
json_obj = json.loads(result)
|
@@ -4023,7 +4543,7 @@ def doCreateCLSIndex(args, parsed_globals):
|
|
4023
4543
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4024
4544
|
|
4025
4545
|
|
4026
|
-
def
|
4546
|
+
def doUpgradePlan(args, parsed_globals):
|
4027
4547
|
g_param = parse_global_arg(parsed_globals)
|
4028
4548
|
|
4029
4549
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4052,11 +4572,11 @@ def doCreateApplicationProxy(args, parsed_globals):
|
|
4052
4572
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
4053
4573
|
client._sdkVersion += ("_CLI_" + __version__)
|
4054
4574
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4055
|
-
model = models.
|
4575
|
+
model = models.UpgradePlanRequest()
|
4056
4576
|
model.from_json_string(json.dumps(args))
|
4057
4577
|
start_time = time.time()
|
4058
4578
|
while True:
|
4059
|
-
rsp = client.
|
4579
|
+
rsp = client.UpgradePlan(model)
|
4060
4580
|
result = rsp.to_json_string()
|
4061
4581
|
try:
|
4062
4582
|
json_obj = json.loads(result)
|
@@ -4075,7 +4595,7 @@ def doCreateApplicationProxy(args, parsed_globals):
|
|
4075
4595
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4076
4596
|
|
4077
4597
|
|
4078
|
-
def
|
4598
|
+
def doModifyAliasDomain(args, parsed_globals):
|
4079
4599
|
g_param = parse_global_arg(parsed_globals)
|
4080
4600
|
|
4081
4601
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4104,11 +4624,11 @@ def doDescribeOriginGroup(args, parsed_globals):
|
|
4104
4624
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
4105
4625
|
client._sdkVersion += ("_CLI_" + __version__)
|
4106
4626
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4107
|
-
model = models.
|
4627
|
+
model = models.ModifyAliasDomainRequest()
|
4108
4628
|
model.from_json_string(json.dumps(args))
|
4109
4629
|
start_time = time.time()
|
4110
4630
|
while True:
|
4111
|
-
rsp = client.
|
4631
|
+
rsp = client.ModifyAliasDomain(model)
|
4112
4632
|
result = rsp.to_json_string()
|
4113
4633
|
try:
|
4114
4634
|
json_obj = json.loads(result)
|
@@ -4127,7 +4647,7 @@ def doDescribeOriginGroup(args, parsed_globals):
|
|
4127
4647
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4128
4648
|
|
4129
4649
|
|
4130
|
-
def
|
4650
|
+
def doDescribeOriginGroup(args, parsed_globals):
|
4131
4651
|
g_param = parse_global_arg(parsed_globals)
|
4132
4652
|
|
4133
4653
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4156,11 +4676,11 @@ def doModifyAliasDomain(args, parsed_globals):
|
|
4156
4676
|
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
4157
4677
|
client._sdkVersion += ("_CLI_" + __version__)
|
4158
4678
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4159
|
-
model = models.
|
4679
|
+
model = models.DescribeOriginGroupRequest()
|
4160
4680
|
model.from_json_string(json.dumps(args))
|
4161
4681
|
start_time = time.time()
|
4162
4682
|
while True:
|
4163
|
-
rsp = client.
|
4683
|
+
rsp = client.DescribeOriginGroup(model)
|
4164
4684
|
result = rsp.to_json_string()
|
4165
4685
|
try:
|
4166
4686
|
json_obj = json.loads(result)
|
@@ -5063,6 +5583,58 @@ def doDescribeZones(args, parsed_globals):
|
|
5063
5583
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5064
5584
|
|
5065
5585
|
|
5586
|
+
def doDescribeFunctions(args, parsed_globals):
|
5587
|
+
g_param = parse_global_arg(parsed_globals)
|
5588
|
+
|
5589
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5590
|
+
cred = credential.CVMRoleCredential()
|
5591
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5592
|
+
cred = credential.STSAssumeRoleCredential(
|
5593
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5594
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5595
|
+
)
|
5596
|
+
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):
|
5597
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5598
|
+
else:
|
5599
|
+
cred = credential.Credential(
|
5600
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5601
|
+
)
|
5602
|
+
http_profile = HttpProfile(
|
5603
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5604
|
+
reqMethod="POST",
|
5605
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5606
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5607
|
+
)
|
5608
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5609
|
+
if g_param[OptionsDefine.Language]:
|
5610
|
+
profile.language = g_param[OptionsDefine.Language]
|
5611
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5612
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
5613
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5614
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5615
|
+
model = models.DescribeFunctionsRequest()
|
5616
|
+
model.from_json_string(json.dumps(args))
|
5617
|
+
start_time = time.time()
|
5618
|
+
while True:
|
5619
|
+
rsp = client.DescribeFunctions(model)
|
5620
|
+
result = rsp.to_json_string()
|
5621
|
+
try:
|
5622
|
+
json_obj = json.loads(result)
|
5623
|
+
except TypeError as e:
|
5624
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5625
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5626
|
+
break
|
5627
|
+
cur_time = time.time()
|
5628
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5629
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5630
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5631
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5632
|
+
else:
|
5633
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5634
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5635
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5636
|
+
|
5637
|
+
|
5066
5638
|
def doDeleteZone(args, parsed_globals):
|
5067
5639
|
g_param = parse_global_arg(parsed_globals)
|
5068
5640
|
|
@@ -5545,6 +6117,7 @@ MODELS_MAP = {
|
|
5545
6117
|
|
5546
6118
|
ACTION_MAP = {
|
5547
6119
|
"DestroyPlan": doDestroyPlan,
|
6120
|
+
"DeleteFunction": doDeleteFunction,
|
5548
6121
|
"CreatePurgeTask": doCreatePurgeTask,
|
5549
6122
|
"DownloadL4Logs": doDownloadL4Logs,
|
5550
6123
|
"DescribePrefetchTasks": doDescribePrefetchTasks,
|
@@ -5552,9 +6125,12 @@ ACTION_MAP = {
|
|
5552
6125
|
"DescribeIdentifications": doDescribeIdentifications,
|
5553
6126
|
"DescribeRealtimeLogDeliveryTasks": doDescribeRealtimeLogDeliveryTasks,
|
5554
6127
|
"VerifyOwnership": doVerifyOwnership,
|
6128
|
+
"CreateFunctionRule": doCreateFunctionRule,
|
6129
|
+
"DeleteFunctionRules": doDeleteFunctionRules,
|
5555
6130
|
"IdentifyZone": doIdentifyZone,
|
5556
6131
|
"DescribeDefaultCertificates": doDescribeDefaultCertificates,
|
5557
6132
|
"DescribeAccelerationDomains": doDescribeAccelerationDomains,
|
6133
|
+
"DescribeFunctionRuntimeEnvironment": doDescribeFunctionRuntimeEnvironment,
|
5558
6134
|
"ModifyOriginGroup": doModifyOriginGroup,
|
5559
6135
|
"DeleteApplicationProxy": doDeleteApplicationProxy,
|
5560
6136
|
"ModifyL4ProxyStatus": doModifyL4ProxyStatus,
|
@@ -5568,7 +6144,7 @@ ACTION_MAP = {
|
|
5568
6144
|
"DeleteAliasDomain": doDeleteAliasDomain,
|
5569
6145
|
"DescribeOverviewL7Data": doDescribeOverviewL7Data,
|
5570
6146
|
"CreateAccelerationDomain": doCreateAccelerationDomain,
|
5571
|
-
"
|
6147
|
+
"DescribeConfigGroupVersionDetail": doDescribeConfigGroupVersionDetail,
|
5572
6148
|
"BindSecurityTemplateToEntity": doBindSecurityTemplateToEntity,
|
5573
6149
|
"ModifyApplicationProxyRuleStatus": doModifyApplicationProxyRuleStatus,
|
5574
6150
|
"CreatePlanForZone": doCreatePlanForZone,
|
@@ -5579,15 +6155,14 @@ ACTION_MAP = {
|
|
5579
6155
|
"CreateRealtimeLogDeliveryTask": doCreateRealtimeLogDeliveryTask,
|
5580
6156
|
"ModifyL4Proxy": doModifyL4Proxy,
|
5581
6157
|
"ModifyL4ProxyRules": doModifyL4ProxyRules,
|
5582
|
-
"DeleteRealtimeLogDeliveryTask": doDeleteRealtimeLogDeliveryTask,
|
5583
6158
|
"DescribeTimingL7CacheData": doDescribeTimingL7CacheData,
|
5584
6159
|
"DescribeConfigGroupVersions": doDescribeConfigGroupVersions,
|
5585
|
-
"
|
6160
|
+
"ModifyZoneSetting": doModifyZoneSetting,
|
5586
6161
|
"CreateAliasDomain": doCreateAliasDomain,
|
5587
6162
|
"ModifyAliasDomainStatus": doModifyAliasDomainStatus,
|
5588
6163
|
"CreateL4ProxyRules": doCreateL4ProxyRules,
|
5589
|
-
"DescribeTopL7CacheData": doDescribeTopL7CacheData,
|
5590
6164
|
"DescribeTimingL4Data": doDescribeTimingL4Data,
|
6165
|
+
"DescribeTopL7CacheData": doDescribeTopL7CacheData,
|
5591
6166
|
"ModifyRule": doModifyRule,
|
5592
6167
|
"DescribeTopL7AnalysisData": doDescribeTopL7AnalysisData,
|
5593
6168
|
"ModifySecurityPolicy": doModifySecurityPolicy,
|
@@ -5601,29 +6176,36 @@ ACTION_MAP = {
|
|
5601
6176
|
"ModifyApplicationProxyStatus": doModifyApplicationProxyStatus,
|
5602
6177
|
"CreatePlan": doCreatePlan,
|
5603
6178
|
"DescribeTimingL7AnalysisData": doDescribeTimingL7AnalysisData,
|
6179
|
+
"CreateFunction": doCreateFunction,
|
5604
6180
|
"DescribeApplicationProxies": doDescribeApplicationProxies,
|
5605
6181
|
"CreateSharedCNAME": doCreateSharedCNAME,
|
5606
6182
|
"CreateRule": doCreateRule,
|
5607
6183
|
"CreateConfigGroupVersion": doCreateConfigGroupVersion,
|
6184
|
+
"ModifyFunction": doModifyFunction,
|
5608
6185
|
"ModifyApplicationProxy": doModifyApplicationProxy,
|
5609
6186
|
"CreateZone": doCreateZone,
|
6187
|
+
"ModifyFunctionRule": doModifyFunctionRule,
|
5610
6188
|
"DescribeAvailablePlans": doDescribeAvailablePlans,
|
5611
6189
|
"DescribeCustomErrorPages": doDescribeCustomErrorPages,
|
5612
6190
|
"DescribeRulesSetting": doDescribeRulesSetting,
|
5613
6191
|
"ModifyAccelerationDomainStatuses": doModifyAccelerationDomainStatuses,
|
5614
6192
|
"ModifySecurityIPGroup": doModifySecurityIPGroup,
|
5615
|
-
"
|
6193
|
+
"DeleteRealtimeLogDeliveryTask": doDeleteRealtimeLogDeliveryTask,
|
5616
6194
|
"DescribeDDoSAttackTopData": doDescribeDDoSAttackTopData,
|
5617
6195
|
"ModifyZoneStatus": doModifyZoneStatus,
|
5618
6196
|
"DescribePurgeTasks": doDescribePurgeTasks,
|
5619
6197
|
"DeleteRules": doDeleteRules,
|
5620
6198
|
"DescribeL4ProxyRules": doDescribeL4ProxyRules,
|
5621
6199
|
"DeleteCustomErrorPage": doDeleteCustomErrorPage,
|
6200
|
+
"HandleFunctionRuntimeEnvironment": doHandleFunctionRuntimeEnvironment,
|
6201
|
+
"ModifyFunctionRulePriority": doModifyFunctionRulePriority,
|
6202
|
+
"DescribeFunctionRules": doDescribeFunctionRules,
|
5622
6203
|
"DescribeRules": doDescribeRules,
|
5623
6204
|
"CreateCLSIndex": doCreateCLSIndex,
|
5624
6205
|
"CreateApplicationProxy": doCreateApplicationProxy,
|
5625
|
-
"
|
6206
|
+
"UpgradePlan": doUpgradePlan,
|
5626
6207
|
"ModifyAliasDomain": doModifyAliasDomain,
|
6208
|
+
"DescribeOriginGroup": doDescribeOriginGroup,
|
5627
6209
|
"ModifyApplicationProxyRule": doModifyApplicationProxyRule,
|
5628
6210
|
"CreateOriginGroup": doCreateOriginGroup,
|
5629
6211
|
"ModifyHostsCertificate": doModifyHostsCertificate,
|
@@ -5641,6 +6223,7 @@ ACTION_MAP = {
|
|
5641
6223
|
"DeleteSecurityIPGroup": doDeleteSecurityIPGroup,
|
5642
6224
|
"CreateApplicationProxyRule": doCreateApplicationProxyRule,
|
5643
6225
|
"DescribeZones": doDescribeZones,
|
6226
|
+
"DescribeFunctions": doDescribeFunctions,
|
5644
6227
|
"DeleteZone": doDeleteZone,
|
5645
6228
|
"DescribeSecurityIPGroupInfo": doDescribeSecurityIPGroupInfo,
|
5646
6229
|
"DescribeSecurityIPGroup": doDescribeSecurityIPGroup,
|