tccli-intl-en 3.1.3.1__py2.py3-none-any.whl → 3.1.5.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/autoscaling/v20180419/api.json +36 -14
- tccli/services/clb/clb_client.py +636 -300
- tccli/services/clb/v20180317/api.json +1245 -367
- tccli/services/clb/v20180317/examples.json +172 -112
- tccli/services/faceid/v20180301/api.json +9 -0
- tccli/services/mongodb/mongodb_client.py +448 -0
- tccli/services/mongodb/v20190725/api.json +928 -103
- tccli/services/mongodb/v20190725/examples.json +64 -0
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/tdmq/tdmq_client.py +2406 -278
- tccli/services/tdmq/v20200217/api.json +11607 -3958
- tccli/services/tdmq/v20200217/examples.json +562 -264
- tccli/services/teo/v20220901/api.json +68 -4
- tccli/services/teo/v20220901/examples.json +28 -22
- tccli/services/trocket/__init__.py +4 -0
- tccli/services/trocket/trocket_client.py +2450 -0
- tccli/services/trocket/v20230308/api.json +6062 -0
- tccli/services/trocket/v20230308/examples.json +339 -0
- {tccli_intl_en-3.1.3.1.dist-info → tccli_intl_en-3.1.5.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.1.3.1.dist-info → tccli_intl_en-3.1.5.1.dist-info}/RECORD +26 -22
- {tccli_intl_en-3.1.3.1.dist-info → tccli_intl_en-3.1.5.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.1.3.1.dist-info → tccli_intl_en-3.1.5.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.1.3.1.dist-info → tccli_intl_en-3.1.5.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.1.3.1.dist-info → tccli_intl_en-3.1.5.1.dist-info}/top_level.txt +0 -0
tccli/services/clb/clb_client.py
CHANGED
|
@@ -17,7 +17,7 @@ from tencentcloud.clb.v20180317 import models as models_v20180317
|
|
|
17
17
|
from jmespath import search
|
|
18
18
|
import time
|
|
19
19
|
|
|
20
|
-
def
|
|
20
|
+
def doDescribeCustomizedConfigAssociateList(args, parsed_globals):
|
|
21
21
|
g_param = parse_global_arg(parsed_globals)
|
|
22
22
|
|
|
23
23
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -49,11 +49,11 @@ def doRegisterTargets(args, parsed_globals):
|
|
|
49
49
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
50
50
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
51
51
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
52
|
-
model = models.
|
|
52
|
+
model = models.DescribeCustomizedConfigAssociateListRequest()
|
|
53
53
|
model.from_json_string(json.dumps(args))
|
|
54
54
|
start_time = time.time()
|
|
55
55
|
while True:
|
|
56
|
-
rsp = client.
|
|
56
|
+
rsp = client.DescribeCustomizedConfigAssociateList(model)
|
|
57
57
|
result = rsp.to_json_string()
|
|
58
58
|
try:
|
|
59
59
|
json_obj = json.loads(result)
|
|
@@ -72,7 +72,7 @@ def doRegisterTargets(args, parsed_globals):
|
|
|
72
72
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
def
|
|
75
|
+
def doInquiryPriceModifyLoadBalancer(args, parsed_globals):
|
|
76
76
|
g_param = parse_global_arg(parsed_globals)
|
|
77
77
|
|
|
78
78
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -104,11 +104,11 @@ def doDescribeResources(args, parsed_globals):
|
|
|
104
104
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
105
105
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
106
106
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
107
|
-
model = models.
|
|
107
|
+
model = models.InquiryPriceModifyLoadBalancerRequest()
|
|
108
108
|
model.from_json_string(json.dumps(args))
|
|
109
109
|
start_time = time.time()
|
|
110
110
|
while True:
|
|
111
|
-
rsp = client.
|
|
111
|
+
rsp = client.InquiryPriceModifyLoadBalancer(model)
|
|
112
112
|
result = rsp.to_json_string()
|
|
113
113
|
try:
|
|
114
114
|
json_obj = json.loads(result)
|
|
@@ -127,7 +127,7 @@ def doDescribeResources(args, parsed_globals):
|
|
|
127
127
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
def
|
|
130
|
+
def doBatchDeregisterTargets(args, parsed_globals):
|
|
131
131
|
g_param = parse_global_arg(parsed_globals)
|
|
132
132
|
|
|
133
133
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -159,11 +159,11 @@ def doModifyFunctionTargets(args, parsed_globals):
|
|
|
159
159
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
160
160
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
161
161
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
162
|
-
model = models.
|
|
162
|
+
model = models.BatchDeregisterTargetsRequest()
|
|
163
163
|
model.from_json_string(json.dumps(args))
|
|
164
164
|
start_time = time.time()
|
|
165
165
|
while True:
|
|
166
|
-
rsp = client.
|
|
166
|
+
rsp = client.BatchDeregisterTargets(model)
|
|
167
167
|
result = rsp.to_json_string()
|
|
168
168
|
try:
|
|
169
169
|
json_obj = json.loads(result)
|
|
@@ -182,7 +182,7 @@ def doModifyFunctionTargets(args, parsed_globals):
|
|
|
182
182
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
183
183
|
|
|
184
184
|
|
|
185
|
-
def
|
|
185
|
+
def doAutoRewrite(args, parsed_globals):
|
|
186
186
|
g_param = parse_global_arg(parsed_globals)
|
|
187
187
|
|
|
188
188
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -214,11 +214,11 @@ def doDescribeClassicalLBListeners(args, parsed_globals):
|
|
|
214
214
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
215
215
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
216
216
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
217
|
-
model = models.
|
|
217
|
+
model = models.AutoRewriteRequest()
|
|
218
218
|
model.from_json_string(json.dumps(args))
|
|
219
219
|
start_time = time.time()
|
|
220
220
|
while True:
|
|
221
|
-
rsp = client.
|
|
221
|
+
rsp = client.AutoRewrite(model)
|
|
222
222
|
result = rsp.to_json_string()
|
|
223
223
|
try:
|
|
224
224
|
json_obj = json.loads(result)
|
|
@@ -237,7 +237,7 @@ def doDescribeClassicalLBListeners(args, parsed_globals):
|
|
|
237
237
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
238
238
|
|
|
239
239
|
|
|
240
|
-
def
|
|
240
|
+
def doModifyTargetGroupInstancesWeight(args, parsed_globals):
|
|
241
241
|
g_param = parse_global_arg(parsed_globals)
|
|
242
242
|
|
|
243
243
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -269,11 +269,11 @@ def doInquiryPriceRefundLoadBalancer(args, parsed_globals):
|
|
|
269
269
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
270
270
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
271
271
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
272
|
-
model = models.
|
|
272
|
+
model = models.ModifyTargetGroupInstancesWeightRequest()
|
|
273
273
|
model.from_json_string(json.dumps(args))
|
|
274
274
|
start_time = time.time()
|
|
275
275
|
while True:
|
|
276
|
-
rsp = client.
|
|
276
|
+
rsp = client.ModifyTargetGroupInstancesWeight(model)
|
|
277
277
|
result = rsp.to_json_string()
|
|
278
278
|
try:
|
|
279
279
|
json_obj = json.loads(result)
|
|
@@ -292,7 +292,7 @@ def doInquiryPriceRefundLoadBalancer(args, parsed_globals):
|
|
|
292
292
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
def
|
|
295
|
+
def doAssociateCustomizedConfig(args, parsed_globals):
|
|
296
296
|
g_param = parse_global_arg(parsed_globals)
|
|
297
297
|
|
|
298
298
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -324,11 +324,11 @@ def doDescribeCustomizedConfigAssociateList(args, parsed_globals):
|
|
|
324
324
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
325
325
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
326
326
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
327
|
-
model = models.
|
|
327
|
+
model = models.AssociateCustomizedConfigRequest()
|
|
328
328
|
model.from_json_string(json.dumps(args))
|
|
329
329
|
start_time = time.time()
|
|
330
330
|
while True:
|
|
331
|
-
rsp = client.
|
|
331
|
+
rsp = client.AssociateCustomizedConfig(model)
|
|
332
332
|
result = rsp.to_json_string()
|
|
333
333
|
try:
|
|
334
334
|
json_obj = json.loads(result)
|
|
@@ -347,7 +347,7 @@ def doDescribeCustomizedConfigAssociateList(args, parsed_globals):
|
|
|
347
347
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
348
348
|
|
|
349
349
|
|
|
350
|
-
def
|
|
350
|
+
def doDeregisterTargetsFromClassicalLB(args, parsed_globals):
|
|
351
351
|
g_param = parse_global_arg(parsed_globals)
|
|
352
352
|
|
|
353
353
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -379,11 +379,11 @@ def doDescribeBlockIPTask(args, parsed_globals):
|
|
|
379
379
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
380
380
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
381
381
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
382
|
-
model = models.
|
|
382
|
+
model = models.DeregisterTargetsFromClassicalLBRequest()
|
|
383
383
|
model.from_json_string(json.dumps(args))
|
|
384
384
|
start_time = time.time()
|
|
385
385
|
while True:
|
|
386
|
-
rsp = client.
|
|
386
|
+
rsp = client.DeregisterTargetsFromClassicalLB(model)
|
|
387
387
|
result = rsp.to_json_string()
|
|
388
388
|
try:
|
|
389
389
|
json_obj = json.loads(result)
|
|
@@ -402,7 +402,7 @@ def doDescribeBlockIPTask(args, parsed_globals):
|
|
|
402
402
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
403
403
|
|
|
404
404
|
|
|
405
|
-
def
|
|
405
|
+
def doDescribeLoadBalancersDetail(args, parsed_globals):
|
|
406
406
|
g_param = parse_global_arg(parsed_globals)
|
|
407
407
|
|
|
408
408
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -434,11 +434,11 @@ def doCreateListener(args, parsed_globals):
|
|
|
434
434
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
435
435
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
436
436
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
437
|
-
model = models.
|
|
437
|
+
model = models.DescribeLoadBalancersDetailRequest()
|
|
438
438
|
model.from_json_string(json.dumps(args))
|
|
439
439
|
start_time = time.time()
|
|
440
440
|
while True:
|
|
441
|
-
rsp = client.
|
|
441
|
+
rsp = client.DescribeLoadBalancersDetail(model)
|
|
442
442
|
result = rsp.to_json_string()
|
|
443
443
|
try:
|
|
444
444
|
json_obj = json.loads(result)
|
|
@@ -457,7 +457,7 @@ def doCreateListener(args, parsed_globals):
|
|
|
457
457
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
458
458
|
|
|
459
459
|
|
|
460
|
-
def
|
|
460
|
+
def doAssociateTargetGroups(args, parsed_globals):
|
|
461
461
|
g_param = parse_global_arg(parsed_globals)
|
|
462
462
|
|
|
463
463
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -489,11 +489,11 @@ def doDeleteLoadBalancerSnatIps(args, parsed_globals):
|
|
|
489
489
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
490
490
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
491
491
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
492
|
-
model = models.
|
|
492
|
+
model = models.AssociateTargetGroupsRequest()
|
|
493
493
|
model.from_json_string(json.dumps(args))
|
|
494
494
|
start_time = time.time()
|
|
495
495
|
while True:
|
|
496
|
-
rsp = client.
|
|
496
|
+
rsp = client.AssociateTargetGroups(model)
|
|
497
497
|
result = rsp.to_json_string()
|
|
498
498
|
try:
|
|
499
499
|
json_obj = json.loads(result)
|
|
@@ -512,7 +512,7 @@ def doDeleteLoadBalancerSnatIps(args, parsed_globals):
|
|
|
512
512
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
513
513
|
|
|
514
514
|
|
|
515
|
-
def
|
|
515
|
+
def doDeregisterTargetGroupInstances(args, parsed_globals):
|
|
516
516
|
g_param = parse_global_arg(parsed_globals)
|
|
517
517
|
|
|
518
518
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -544,11 +544,11 @@ def doDeleteListener(args, parsed_globals):
|
|
|
544
544
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
545
545
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
546
546
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
547
|
-
model = models.
|
|
547
|
+
model = models.DeregisterTargetGroupInstancesRequest()
|
|
548
548
|
model.from_json_string(json.dumps(args))
|
|
549
549
|
start_time = time.time()
|
|
550
550
|
while True:
|
|
551
|
-
rsp = client.
|
|
551
|
+
rsp = client.DeregisterTargetGroupInstances(model)
|
|
552
552
|
result = rsp.to_json_string()
|
|
553
553
|
try:
|
|
554
554
|
json_obj = json.loads(result)
|
|
@@ -567,7 +567,7 @@ def doDeleteListener(args, parsed_globals):
|
|
|
567
567
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
568
568
|
|
|
569
569
|
|
|
570
|
-
def
|
|
570
|
+
def doDescribeListeners(args, parsed_globals):
|
|
571
571
|
g_param = parse_global_arg(parsed_globals)
|
|
572
572
|
|
|
573
573
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -599,11 +599,11 @@ def doInquiryPriceModifyLoadBalancer(args, parsed_globals):
|
|
|
599
599
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
600
600
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
601
601
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
602
|
-
model = models.
|
|
602
|
+
model = models.DescribeListenersRequest()
|
|
603
603
|
model.from_json_string(json.dumps(args))
|
|
604
604
|
start_time = time.time()
|
|
605
605
|
while True:
|
|
606
|
-
rsp = client.
|
|
606
|
+
rsp = client.DescribeListeners(model)
|
|
607
607
|
result = rsp.to_json_string()
|
|
608
608
|
try:
|
|
609
609
|
json_obj = json.loads(result)
|
|
@@ -622,7 +622,7 @@ def doInquiryPriceModifyLoadBalancer(args, parsed_globals):
|
|
|
622
622
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
623
623
|
|
|
624
624
|
|
|
625
|
-
def
|
|
625
|
+
def doCreateTopic(args, parsed_globals):
|
|
626
626
|
g_param = parse_global_arg(parsed_globals)
|
|
627
627
|
|
|
628
628
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -654,11 +654,11 @@ def doSetSecurityGroupForLoadbalancers(args, parsed_globals):
|
|
|
654
654
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
655
655
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
656
656
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
657
|
-
model = models.
|
|
657
|
+
model = models.CreateTopicRequest()
|
|
658
658
|
model.from_json_string(json.dumps(args))
|
|
659
659
|
start_time = time.time()
|
|
660
660
|
while True:
|
|
661
|
-
rsp = client.
|
|
661
|
+
rsp = client.CreateTopic(model)
|
|
662
662
|
result = rsp.to_json_string()
|
|
663
663
|
try:
|
|
664
664
|
json_obj = json.loads(result)
|
|
@@ -677,7 +677,7 @@ def doSetSecurityGroupForLoadbalancers(args, parsed_globals):
|
|
|
677
677
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
678
678
|
|
|
679
679
|
|
|
680
|
-
def
|
|
680
|
+
def doModifyLoadBalancersProject(args, parsed_globals):
|
|
681
681
|
g_param = parse_global_arg(parsed_globals)
|
|
682
682
|
|
|
683
683
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -709,11 +709,11 @@ def doBatchDeregisterTargets(args, parsed_globals):
|
|
|
709
709
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
710
710
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
711
711
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
712
|
-
model = models.
|
|
712
|
+
model = models.ModifyLoadBalancersProjectRequest()
|
|
713
713
|
model.from_json_string(json.dumps(args))
|
|
714
714
|
start_time = time.time()
|
|
715
715
|
while True:
|
|
716
|
-
rsp = client.
|
|
716
|
+
rsp = client.ModifyLoadBalancersProject(model)
|
|
717
717
|
result = rsp.to_json_string()
|
|
718
718
|
try:
|
|
719
719
|
json_obj = json.loads(result)
|
|
@@ -732,7 +732,7 @@ def doBatchDeregisterTargets(args, parsed_globals):
|
|
|
732
732
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
733
733
|
|
|
734
734
|
|
|
735
|
-
def
|
|
735
|
+
def doSetCustomizedConfigForLoadBalancer(args, parsed_globals):
|
|
736
736
|
g_param = parse_global_arg(parsed_globals)
|
|
737
737
|
|
|
738
738
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -764,11 +764,11 @@ def doRegisterTargetGroupInstances(args, parsed_globals):
|
|
|
764
764
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
765
765
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
766
766
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
767
|
-
model = models.
|
|
767
|
+
model = models.SetCustomizedConfigForLoadBalancerRequest()
|
|
768
768
|
model.from_json_string(json.dumps(args))
|
|
769
769
|
start_time = time.time()
|
|
770
770
|
while True:
|
|
771
|
-
rsp = client.
|
|
771
|
+
rsp = client.SetCustomizedConfigForLoadBalancer(model)
|
|
772
772
|
result = rsp.to_json_string()
|
|
773
773
|
try:
|
|
774
774
|
json_obj = json.loads(result)
|
|
@@ -787,7 +787,7 @@ def doRegisterTargetGroupInstances(args, parsed_globals):
|
|
|
787
787
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
788
788
|
|
|
789
789
|
|
|
790
|
-
def
|
|
790
|
+
def doRegisterTargetsWithClassicalLB(args, parsed_globals):
|
|
791
791
|
g_param = parse_global_arg(parsed_globals)
|
|
792
792
|
|
|
793
793
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -819,11 +819,11 @@ def doCreateRule(args, parsed_globals):
|
|
|
819
819
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
820
820
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
821
821
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
822
|
-
model = models.
|
|
822
|
+
model = models.RegisterTargetsWithClassicalLBRequest()
|
|
823
823
|
model.from_json_string(json.dumps(args))
|
|
824
824
|
start_time = time.time()
|
|
825
825
|
while True:
|
|
826
|
-
rsp = client.
|
|
826
|
+
rsp = client.RegisterTargetsWithClassicalLB(model)
|
|
827
827
|
result = rsp.to_json_string()
|
|
828
828
|
try:
|
|
829
829
|
json_obj = json.loads(result)
|
|
@@ -842,7 +842,7 @@ def doCreateRule(args, parsed_globals):
|
|
|
842
842
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
843
843
|
|
|
844
844
|
|
|
845
|
-
def
|
|
845
|
+
def doDeregisterTargets(args, parsed_globals):
|
|
846
846
|
g_param = parse_global_arg(parsed_globals)
|
|
847
847
|
|
|
848
848
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -874,11 +874,11 @@ def doDescribeClassicalLBHealthStatus(args, parsed_globals):
|
|
|
874
874
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
875
875
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
876
876
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
877
|
-
model = models.
|
|
877
|
+
model = models.DeregisterTargetsRequest()
|
|
878
878
|
model.from_json_string(json.dumps(args))
|
|
879
879
|
start_time = time.time()
|
|
880
880
|
while True:
|
|
881
|
-
rsp = client.
|
|
881
|
+
rsp = client.DeregisterTargets(model)
|
|
882
882
|
result = rsp.to_json_string()
|
|
883
883
|
try:
|
|
884
884
|
json_obj = json.loads(result)
|
|
@@ -897,7 +897,7 @@ def doDescribeClassicalLBHealthStatus(args, parsed_globals):
|
|
|
897
897
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
898
898
|
|
|
899
899
|
|
|
900
|
-
def
|
|
900
|
+
def doModifyLoadBalancerAttributes(args, parsed_globals):
|
|
901
901
|
g_param = parse_global_arg(parsed_globals)
|
|
902
902
|
|
|
903
903
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -929,11 +929,11 @@ def doAutoRewrite(args, parsed_globals):
|
|
|
929
929
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
930
930
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
931
931
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
932
|
-
model = models.
|
|
932
|
+
model = models.ModifyLoadBalancerAttributesRequest()
|
|
933
933
|
model.from_json_string(json.dumps(args))
|
|
934
934
|
start_time = time.time()
|
|
935
935
|
while True:
|
|
936
|
-
rsp = client.
|
|
936
|
+
rsp = client.ModifyLoadBalancerAttributes(model)
|
|
937
937
|
result = rsp.to_json_string()
|
|
938
938
|
try:
|
|
939
939
|
json_obj = json.loads(result)
|
|
@@ -952,7 +952,7 @@ def doAutoRewrite(args, parsed_globals):
|
|
|
952
952
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
953
953
|
|
|
954
954
|
|
|
955
|
-
def
|
|
955
|
+
def doModifyTargetGroupInstancesPort(args, parsed_globals):
|
|
956
956
|
g_param = parse_global_arg(parsed_globals)
|
|
957
957
|
|
|
958
958
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -984,11 +984,11 @@ def doDescribeLoadBalancerTraffic(args, parsed_globals):
|
|
|
984
984
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
985
985
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
986
986
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
987
|
-
model = models.
|
|
987
|
+
model = models.ModifyTargetGroupInstancesPortRequest()
|
|
988
988
|
model.from_json_string(json.dumps(args))
|
|
989
989
|
start_time = time.time()
|
|
990
990
|
while True:
|
|
991
|
-
rsp = client.
|
|
991
|
+
rsp = client.ModifyTargetGroupInstancesPort(model)
|
|
992
992
|
result = rsp.to_json_string()
|
|
993
993
|
try:
|
|
994
994
|
json_obj = json.loads(result)
|
|
@@ -1007,7 +1007,7 @@ def doDescribeLoadBalancerTraffic(args, parsed_globals):
|
|
|
1007
1007
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1008
1008
|
|
|
1009
1009
|
|
|
1010
|
-
def
|
|
1010
|
+
def doBatchModifyTargetWeight(args, parsed_globals):
|
|
1011
1011
|
g_param = parse_global_arg(parsed_globals)
|
|
1012
1012
|
|
|
1013
1013
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1039,11 +1039,11 @@ def doModifyDomain(args, parsed_globals):
|
|
|
1039
1039
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1040
1040
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1041
1041
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1042
|
-
model = models.
|
|
1042
|
+
model = models.BatchModifyTargetWeightRequest()
|
|
1043
1043
|
model.from_json_string(json.dumps(args))
|
|
1044
1044
|
start_time = time.time()
|
|
1045
1045
|
while True:
|
|
1046
|
-
rsp = client.
|
|
1046
|
+
rsp = client.BatchModifyTargetWeight(model)
|
|
1047
1047
|
result = rsp.to_json_string()
|
|
1048
1048
|
try:
|
|
1049
1049
|
json_obj = json.loads(result)
|
|
@@ -1062,7 +1062,7 @@ def doModifyDomain(args, parsed_globals):
|
|
|
1062
1062
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1063
1063
|
|
|
1064
1064
|
|
|
1065
|
-
def
|
|
1065
|
+
def doDeleteRewrite(args, parsed_globals):
|
|
1066
1066
|
g_param = parse_global_arg(parsed_globals)
|
|
1067
1067
|
|
|
1068
1068
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1094,11 +1094,11 @@ def doDeleteLoadBalancerListeners(args, parsed_globals):
|
|
|
1094
1094
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1095
1095
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1096
1096
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1097
|
-
model = models.
|
|
1097
|
+
model = models.DeleteRewriteRequest()
|
|
1098
1098
|
model.from_json_string(json.dumps(args))
|
|
1099
1099
|
start_time = time.time()
|
|
1100
1100
|
while True:
|
|
1101
|
-
rsp = client.
|
|
1101
|
+
rsp = client.DeleteRewrite(model)
|
|
1102
1102
|
result = rsp.to_json_string()
|
|
1103
1103
|
try:
|
|
1104
1104
|
json_obj = json.loads(result)
|
|
@@ -1117,7 +1117,7 @@ def doDeleteLoadBalancerListeners(args, parsed_globals):
|
|
|
1117
1117
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1118
1118
|
|
|
1119
1119
|
|
|
1120
|
-
def
|
|
1120
|
+
def doDisassociateCustomizedConfig(args, parsed_globals):
|
|
1121
1121
|
g_param = parse_global_arg(parsed_globals)
|
|
1122
1122
|
|
|
1123
1123
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1149,11 +1149,11 @@ def doInquiryPriceRenewLoadBalancer(args, parsed_globals):
|
|
|
1149
1149
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1150
1150
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1151
1151
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1152
|
-
model = models.
|
|
1152
|
+
model = models.DisassociateCustomizedConfigRequest()
|
|
1153
1153
|
model.from_json_string(json.dumps(args))
|
|
1154
1154
|
start_time = time.time()
|
|
1155
1155
|
while True:
|
|
1156
|
-
rsp = client.
|
|
1156
|
+
rsp = client.DisassociateCustomizedConfig(model)
|
|
1157
1157
|
result = rsp.to_json_string()
|
|
1158
1158
|
try:
|
|
1159
1159
|
json_obj = json.loads(result)
|
|
@@ -1227,7 +1227,7 @@ def doSetLoadBalancerSecurityGroups(args, parsed_globals):
|
|
|
1227
1227
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1228
1228
|
|
|
1229
1229
|
|
|
1230
|
-
def
|
|
1230
|
+
def doInquiryPriceRefundLoadBalancer(args, parsed_globals):
|
|
1231
1231
|
g_param = parse_global_arg(parsed_globals)
|
|
1232
1232
|
|
|
1233
1233
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1259,11 +1259,11 @@ def doDeleteTargetGroups(args, parsed_globals):
|
|
|
1259
1259
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1260
1260
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1261
1261
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1262
|
-
model = models.
|
|
1262
|
+
model = models.InquiryPriceRefundLoadBalancerRequest()
|
|
1263
1263
|
model.from_json_string(json.dumps(args))
|
|
1264
1264
|
start_time = time.time()
|
|
1265
1265
|
while True:
|
|
1266
|
-
rsp = client.
|
|
1266
|
+
rsp = client.InquiryPriceRefundLoadBalancer(model)
|
|
1267
1267
|
result = rsp.to_json_string()
|
|
1268
1268
|
try:
|
|
1269
1269
|
json_obj = json.loads(result)
|
|
@@ -1282,7 +1282,7 @@ def doDeleteTargetGroups(args, parsed_globals):
|
|
|
1282
1282
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1283
1283
|
|
|
1284
1284
|
|
|
1285
|
-
def
|
|
1285
|
+
def doDeleteListener(args, parsed_globals):
|
|
1286
1286
|
g_param = parse_global_arg(parsed_globals)
|
|
1287
1287
|
|
|
1288
1288
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1314,11 +1314,11 @@ def doSetLoadBalancerStartStatus(args, parsed_globals):
|
|
|
1314
1314
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1315
1315
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1316
1316
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1317
|
-
model = models.
|
|
1317
|
+
model = models.DeleteListenerRequest()
|
|
1318
1318
|
model.from_json_string(json.dumps(args))
|
|
1319
1319
|
start_time = time.time()
|
|
1320
1320
|
while True:
|
|
1321
|
-
rsp = client.
|
|
1321
|
+
rsp = client.DeleteListener(model)
|
|
1322
1322
|
result = rsp.to_json_string()
|
|
1323
1323
|
try:
|
|
1324
1324
|
json_obj = json.loads(result)
|
|
@@ -1337,7 +1337,7 @@ def doSetLoadBalancerStartStatus(args, parsed_globals):
|
|
|
1337
1337
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1338
1338
|
|
|
1339
1339
|
|
|
1340
|
-
def
|
|
1340
|
+
def doSetSecurityGroupForLoadbalancers(args, parsed_globals):
|
|
1341
1341
|
g_param = parse_global_arg(parsed_globals)
|
|
1342
1342
|
|
|
1343
1343
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1369,11 +1369,11 @@ def doDeregisterTargetsFromClassicalLB(args, parsed_globals):
|
|
|
1369
1369
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1370
1370
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1371
1371
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1372
|
-
model = models.
|
|
1372
|
+
model = models.SetSecurityGroupForLoadbalancersRequest()
|
|
1373
1373
|
model.from_json_string(json.dumps(args))
|
|
1374
1374
|
start_time = time.time()
|
|
1375
1375
|
while True:
|
|
1376
|
-
rsp = client.
|
|
1376
|
+
rsp = client.SetSecurityGroupForLoadbalancers(model)
|
|
1377
1377
|
result = rsp.to_json_string()
|
|
1378
1378
|
try:
|
|
1379
1379
|
json_obj = json.loads(result)
|
|
@@ -1392,7 +1392,7 @@ def doDeregisterTargetsFromClassicalLB(args, parsed_globals):
|
|
|
1392
1392
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1393
1393
|
|
|
1394
1394
|
|
|
1395
|
-
def
|
|
1395
|
+
def doRegisterTargetGroupInstances(args, parsed_globals):
|
|
1396
1396
|
g_param = parse_global_arg(parsed_globals)
|
|
1397
1397
|
|
|
1398
1398
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1424,11 +1424,11 @@ def doCreateLoadBalancer(args, parsed_globals):
|
|
|
1424
1424
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1425
1425
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1426
1426
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1427
|
-
model = models.
|
|
1427
|
+
model = models.RegisterTargetGroupInstancesRequest()
|
|
1428
1428
|
model.from_json_string(json.dumps(args))
|
|
1429
1429
|
start_time = time.time()
|
|
1430
1430
|
while True:
|
|
1431
|
-
rsp = client.
|
|
1431
|
+
rsp = client.RegisterTargetGroupInstances(model)
|
|
1432
1432
|
result = rsp.to_json_string()
|
|
1433
1433
|
try:
|
|
1434
1434
|
json_obj = json.loads(result)
|
|
@@ -1447,7 +1447,7 @@ def doCreateLoadBalancer(args, parsed_globals):
|
|
|
1447
1447
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1448
1448
|
|
|
1449
1449
|
|
|
1450
|
-
def
|
|
1450
|
+
def doSetLoadBalancerStartStatus(args, parsed_globals):
|
|
1451
1451
|
g_param = parse_global_arg(parsed_globals)
|
|
1452
1452
|
|
|
1453
1453
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1479,11 +1479,11 @@ def doDescribeLoadBalancerListByCertId(args, parsed_globals):
|
|
|
1479
1479
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1480
1480
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1481
1481
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1482
|
-
model = models.
|
|
1482
|
+
model = models.SetLoadBalancerStartStatusRequest()
|
|
1483
1483
|
model.from_json_string(json.dumps(args))
|
|
1484
1484
|
start_time = time.time()
|
|
1485
1485
|
while True:
|
|
1486
|
-
rsp = client.
|
|
1486
|
+
rsp = client.SetLoadBalancerStartStatus(model)
|
|
1487
1487
|
result = rsp.to_json_string()
|
|
1488
1488
|
try:
|
|
1489
1489
|
json_obj = json.loads(result)
|
|
@@ -1557,7 +1557,7 @@ def doModifyListener(args, parsed_globals):
|
|
|
1557
1557
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1558
1558
|
|
|
1559
1559
|
|
|
1560
|
-
def
|
|
1560
|
+
def doDeleteCustomizedConfig(args, parsed_globals):
|
|
1561
1561
|
g_param = parse_global_arg(parsed_globals)
|
|
1562
1562
|
|
|
1563
1563
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1589,11 +1589,11 @@ def doDeleteLoadBalancer(args, parsed_globals):
|
|
|
1589
1589
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1590
1590
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1591
1591
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1592
|
-
model = models.
|
|
1592
|
+
model = models.DeleteCustomizedConfigRequest()
|
|
1593
1593
|
model.from_json_string(json.dumps(args))
|
|
1594
1594
|
start_time = time.time()
|
|
1595
1595
|
while True:
|
|
1596
|
-
rsp = client.
|
|
1596
|
+
rsp = client.DeleteCustomizedConfig(model)
|
|
1597
1597
|
result = rsp.to_json_string()
|
|
1598
1598
|
try:
|
|
1599
1599
|
json_obj = json.loads(result)
|
|
@@ -1612,7 +1612,7 @@ def doDeleteLoadBalancer(args, parsed_globals):
|
|
|
1612
1612
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1613
1613
|
|
|
1614
1614
|
|
|
1615
|
-
def
|
|
1615
|
+
def doDescribeResources(args, parsed_globals):
|
|
1616
1616
|
g_param = parse_global_arg(parsed_globals)
|
|
1617
1617
|
|
|
1618
1618
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1644,11 +1644,11 @@ def doInquiryPriceCreateLoadBalancer(args, parsed_globals):
|
|
|
1644
1644
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1645
1645
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1646
1646
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1647
|
-
model = models.
|
|
1647
|
+
model = models.DescribeResourcesRequest()
|
|
1648
1648
|
model.from_json_string(json.dumps(args))
|
|
1649
1649
|
start_time = time.time()
|
|
1650
1650
|
while True:
|
|
1651
|
-
rsp = client.
|
|
1651
|
+
rsp = client.DescribeResources(model)
|
|
1652
1652
|
result = rsp.to_json_string()
|
|
1653
1653
|
try:
|
|
1654
1654
|
json_obj = json.loads(result)
|
|
@@ -1667,7 +1667,7 @@ def doInquiryPriceCreateLoadBalancer(args, parsed_globals):
|
|
|
1667
1667
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1668
1668
|
|
|
1669
1669
|
|
|
1670
|
-
def
|
|
1670
|
+
def doDescribeLBListeners(args, parsed_globals):
|
|
1671
1671
|
g_param = parse_global_arg(parsed_globals)
|
|
1672
1672
|
|
|
1673
1673
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1699,11 +1699,11 @@ def doModifyDomainAttributes(args, parsed_globals):
|
|
|
1699
1699
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1700
1700
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1701
1701
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1702
|
-
model = models.
|
|
1702
|
+
model = models.DescribeLBListenersRequest()
|
|
1703
1703
|
model.from_json_string(json.dumps(args))
|
|
1704
1704
|
start_time = time.time()
|
|
1705
1705
|
while True:
|
|
1706
|
-
rsp = client.
|
|
1706
|
+
rsp = client.DescribeLBListeners(model)
|
|
1707
1707
|
result = rsp.to_json_string()
|
|
1708
1708
|
try:
|
|
1709
1709
|
json_obj = json.loads(result)
|
|
@@ -1722,7 +1722,7 @@ def doModifyDomainAttributes(args, parsed_globals):
|
|
|
1722
1722
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1723
1723
|
|
|
1724
1724
|
|
|
1725
|
-
def
|
|
1725
|
+
def doBatchRegisterTargets(args, parsed_globals):
|
|
1726
1726
|
g_param = parse_global_arg(parsed_globals)
|
|
1727
1727
|
|
|
1728
1728
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1754,11 +1754,11 @@ def doDisassociateTargetGroups(args, parsed_globals):
|
|
|
1754
1754
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1755
1755
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1756
1756
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1757
|
-
model = models.
|
|
1757
|
+
model = models.BatchRegisterTargetsRequest()
|
|
1758
1758
|
model.from_json_string(json.dumps(args))
|
|
1759
1759
|
start_time = time.time()
|
|
1760
1760
|
while True:
|
|
1761
|
-
rsp = client.
|
|
1761
|
+
rsp = client.BatchRegisterTargets(model)
|
|
1762
1762
|
result = rsp.to_json_string()
|
|
1763
1763
|
try:
|
|
1764
1764
|
json_obj = json.loads(result)
|
|
@@ -1777,7 +1777,7 @@ def doDisassociateTargetGroups(args, parsed_globals):
|
|
|
1777
1777
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1778
1778
|
|
|
1779
1779
|
|
|
1780
|
-
def
|
|
1780
|
+
def doRegisterFunctionTargets(args, parsed_globals):
|
|
1781
1781
|
g_param = parse_global_arg(parsed_globals)
|
|
1782
1782
|
|
|
1783
1783
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1809,11 +1809,11 @@ def doCreateTargetGroup(args, parsed_globals):
|
|
|
1809
1809
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1810
1810
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1811
1811
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1812
|
-
model = models.
|
|
1812
|
+
model = models.RegisterFunctionTargetsRequest()
|
|
1813
1813
|
model.from_json_string(json.dumps(args))
|
|
1814
1814
|
start_time = time.time()
|
|
1815
1815
|
while True:
|
|
1816
|
-
rsp = client.
|
|
1816
|
+
rsp = client.RegisterFunctionTargets(model)
|
|
1817
1817
|
result = rsp.to_json_string()
|
|
1818
1818
|
try:
|
|
1819
1819
|
json_obj = json.loads(result)
|
|
@@ -1832,7 +1832,7 @@ def doCreateTargetGroup(args, parsed_globals):
|
|
|
1832
1832
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1833
1833
|
|
|
1834
1834
|
|
|
1835
|
-
def
|
|
1835
|
+
def doDescribeCustomizedConfigList(args, parsed_globals):
|
|
1836
1836
|
g_param = parse_global_arg(parsed_globals)
|
|
1837
1837
|
|
|
1838
1838
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1864,11 +1864,11 @@ def doDeleteRewrite(args, parsed_globals):
|
|
|
1864
1864
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1865
1865
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1866
1866
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1867
|
-
model = models.
|
|
1867
|
+
model = models.DescribeCustomizedConfigListRequest()
|
|
1868
1868
|
model.from_json_string(json.dumps(args))
|
|
1869
1869
|
start_time = time.time()
|
|
1870
1870
|
while True:
|
|
1871
|
-
rsp = client.
|
|
1871
|
+
rsp = client.DescribeCustomizedConfigList(model)
|
|
1872
1872
|
result = rsp.to_json_string()
|
|
1873
1873
|
try:
|
|
1874
1874
|
json_obj = json.loads(result)
|
|
@@ -1887,7 +1887,7 @@ def doDeleteRewrite(args, parsed_globals):
|
|
|
1887
1887
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1888
1888
|
|
|
1889
1889
|
|
|
1890
|
-
def
|
|
1890
|
+
def doModifyRule(args, parsed_globals):
|
|
1891
1891
|
g_param = parse_global_arg(parsed_globals)
|
|
1892
1892
|
|
|
1893
1893
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1919,11 +1919,11 @@ def doDescribeTargetGroupInstances(args, parsed_globals):
|
|
|
1919
1919
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1920
1920
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1921
1921
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1922
|
-
model = models.
|
|
1922
|
+
model = models.ModifyRuleRequest()
|
|
1923
1923
|
model.from_json_string(json.dumps(args))
|
|
1924
1924
|
start_time = time.time()
|
|
1925
1925
|
while True:
|
|
1926
|
-
rsp = client.
|
|
1926
|
+
rsp = client.ModifyRule(model)
|
|
1927
1927
|
result = rsp.to_json_string()
|
|
1928
1928
|
try:
|
|
1929
1929
|
json_obj = json.loads(result)
|
|
@@ -1942,7 +1942,7 @@ def doDescribeTargetGroupInstances(args, parsed_globals):
|
|
|
1942
1942
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1943
1943
|
|
|
1944
1944
|
|
|
1945
|
-
def
|
|
1945
|
+
def doSetLoadBalancerClsLog(args, parsed_globals):
|
|
1946
1946
|
g_param = parse_global_arg(parsed_globals)
|
|
1947
1947
|
|
|
1948
1948
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1974,11 +1974,11 @@ def doAssociateTargetGroups(args, parsed_globals):
|
|
|
1974
1974
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1975
1975
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1976
1976
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1977
|
-
model = models.
|
|
1977
|
+
model = models.SetLoadBalancerClsLogRequest()
|
|
1978
1978
|
model.from_json_string(json.dumps(args))
|
|
1979
1979
|
start_time = time.time()
|
|
1980
1980
|
while True:
|
|
1981
|
-
rsp = client.
|
|
1981
|
+
rsp = client.SetLoadBalancerClsLog(model)
|
|
1982
1982
|
result = rsp.to_json_string()
|
|
1983
1983
|
try:
|
|
1984
1984
|
json_obj = json.loads(result)
|
|
@@ -1997,7 +1997,7 @@ def doAssociateTargetGroups(args, parsed_globals):
|
|
|
1997
1997
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1998
1998
|
|
|
1999
1999
|
|
|
2000
|
-
def
|
|
2000
|
+
def doModifyBlockIPList(args, parsed_globals):
|
|
2001
2001
|
g_param = parse_global_arg(parsed_globals)
|
|
2002
2002
|
|
|
2003
2003
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2029,11 +2029,11 @@ def doCreateLoadBalancerSnatIps(args, parsed_globals):
|
|
|
2029
2029
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2030
2030
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2031
2031
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2032
|
-
model = models.
|
|
2032
|
+
model = models.ModifyBlockIPListRequest()
|
|
2033
2033
|
model.from_json_string(json.dumps(args))
|
|
2034
2034
|
start_time = time.time()
|
|
2035
2035
|
while True:
|
|
2036
|
-
rsp = client.
|
|
2036
|
+
rsp = client.ModifyBlockIPList(model)
|
|
2037
2037
|
result = rsp.to_json_string()
|
|
2038
2038
|
try:
|
|
2039
2039
|
json_obj = json.loads(result)
|
|
@@ -2052,7 +2052,7 @@ def doCreateLoadBalancerSnatIps(args, parsed_globals):
|
|
|
2052
2052
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2053
2053
|
|
|
2054
2054
|
|
|
2055
|
-
def
|
|
2055
|
+
def doDescribeRewrite(args, parsed_globals):
|
|
2056
2056
|
g_param = parse_global_arg(parsed_globals)
|
|
2057
2057
|
|
|
2058
2058
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2084,11 +2084,11 @@ def doDescribeLoadBalancersDetail(args, parsed_globals):
|
|
|
2084
2084
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2085
2085
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2086
2086
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2087
|
-
model = models.
|
|
2087
|
+
model = models.DescribeRewriteRequest()
|
|
2088
2088
|
model.from_json_string(json.dumps(args))
|
|
2089
2089
|
start_time = time.time()
|
|
2090
2090
|
while True:
|
|
2091
|
-
rsp = client.
|
|
2091
|
+
rsp = client.DescribeRewrite(model)
|
|
2092
2092
|
result = rsp.to_json_string()
|
|
2093
2093
|
try:
|
|
2094
2094
|
json_obj = json.loads(result)
|
|
@@ -2107,7 +2107,7 @@ def doDescribeLoadBalancersDetail(args, parsed_globals):
|
|
|
2107
2107
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2108
2108
|
|
|
2109
2109
|
|
|
2110
|
-
def
|
|
2110
|
+
def doModifyTargetPort(args, parsed_globals):
|
|
2111
2111
|
g_param = parse_global_arg(parsed_globals)
|
|
2112
2112
|
|
|
2113
2113
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2139,11 +2139,11 @@ def doDeregisterTargetGroupInstances(args, parsed_globals):
|
|
|
2139
2139
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2140
2140
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2141
2141
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2142
|
-
model = models.
|
|
2142
|
+
model = models.ModifyTargetPortRequest()
|
|
2143
2143
|
model.from_json_string(json.dumps(args))
|
|
2144
2144
|
start_time = time.time()
|
|
2145
2145
|
while True:
|
|
2146
|
-
rsp = client.
|
|
2146
|
+
rsp = client.ModifyTargetPort(model)
|
|
2147
2147
|
result = rsp.to_json_string()
|
|
2148
2148
|
try:
|
|
2149
2149
|
json_obj = json.loads(result)
|
|
@@ -2162,7 +2162,7 @@ def doDeregisterTargetGroupInstances(args, parsed_globals):
|
|
|
2162
2162
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2163
2163
|
|
|
2164
2164
|
|
|
2165
|
-
def
|
|
2165
|
+
def doDeregisterFunctionTargets(args, parsed_globals):
|
|
2166
2166
|
g_param = parse_global_arg(parsed_globals)
|
|
2167
2167
|
|
|
2168
2168
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2194,11 +2194,11 @@ def doDescribeLoadBalancers(args, parsed_globals):
|
|
|
2194
2194
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2195
2195
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2196
2196
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2197
|
-
model = models.
|
|
2197
|
+
model = models.DeregisterFunctionTargetsRequest()
|
|
2198
2198
|
model.from_json_string(json.dumps(args))
|
|
2199
2199
|
start_time = time.time()
|
|
2200
2200
|
while True:
|
|
2201
|
-
rsp = client.
|
|
2201
|
+
rsp = client.DeregisterFunctionTargets(model)
|
|
2202
2202
|
result = rsp.to_json_string()
|
|
2203
2203
|
try:
|
|
2204
2204
|
json_obj = json.loads(result)
|
|
@@ -2217,7 +2217,7 @@ def doDescribeLoadBalancers(args, parsed_globals):
|
|
|
2217
2217
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2218
2218
|
|
|
2219
2219
|
|
|
2220
|
-
def
|
|
2220
|
+
def doModifyLoadBalancerSla(args, parsed_globals):
|
|
2221
2221
|
g_param = parse_global_arg(parsed_globals)
|
|
2222
2222
|
|
|
2223
2223
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2249,11 +2249,11 @@ def doDescribeBlockIPList(args, parsed_globals):
|
|
|
2249
2249
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2250
2250
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2251
2251
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2252
|
-
model = models.
|
|
2252
|
+
model = models.ModifyLoadBalancerSlaRequest()
|
|
2253
2253
|
model.from_json_string(json.dumps(args))
|
|
2254
2254
|
start_time = time.time()
|
|
2255
2255
|
while True:
|
|
2256
|
-
rsp = client.
|
|
2256
|
+
rsp = client.ModifyLoadBalancerSla(model)
|
|
2257
2257
|
result = rsp.to_json_string()
|
|
2258
2258
|
try:
|
|
2259
2259
|
json_obj = json.loads(result)
|
|
@@ -2272,7 +2272,7 @@ def doDescribeBlockIPList(args, parsed_globals):
|
|
|
2272
2272
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2273
2273
|
|
|
2274
2274
|
|
|
2275
|
-
def
|
|
2275
|
+
def doDescribeBlockIPTask(args, parsed_globals):
|
|
2276
2276
|
g_param = parse_global_arg(parsed_globals)
|
|
2277
2277
|
|
|
2278
2278
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2304,11 +2304,11 @@ def doDescribeListeners(args, parsed_globals):
|
|
|
2304
2304
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2305
2305
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2306
2306
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2307
|
-
model = models.
|
|
2307
|
+
model = models.DescribeBlockIPTaskRequest()
|
|
2308
2308
|
model.from_json_string(json.dumps(args))
|
|
2309
2309
|
start_time = time.time()
|
|
2310
2310
|
while True:
|
|
2311
|
-
rsp = client.
|
|
2311
|
+
rsp = client.DescribeBlockIPTask(model)
|
|
2312
2312
|
result = rsp.to_json_string()
|
|
2313
2313
|
try:
|
|
2314
2314
|
json_obj = json.loads(result)
|
|
@@ -2327,7 +2327,7 @@ def doDescribeListeners(args, parsed_globals):
|
|
|
2327
2327
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2328
2328
|
|
|
2329
2329
|
|
|
2330
|
-
def
|
|
2330
|
+
def doDescribeClassicalLBByInstanceId(args, parsed_globals):
|
|
2331
2331
|
g_param = parse_global_arg(parsed_globals)
|
|
2332
2332
|
|
|
2333
2333
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2359,11 +2359,11 @@ def doDescribeClassicalLBTargets(args, parsed_globals):
|
|
|
2359
2359
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2360
2360
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2361
2361
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2362
|
-
model = models.
|
|
2362
|
+
model = models.DescribeClassicalLBByInstanceIdRequest()
|
|
2363
2363
|
model.from_json_string(json.dumps(args))
|
|
2364
2364
|
start_time = time.time()
|
|
2365
2365
|
while True:
|
|
2366
|
-
rsp = client.
|
|
2366
|
+
rsp = client.DescribeClassicalLBByInstanceId(model)
|
|
2367
2367
|
result = rsp.to_json_string()
|
|
2368
2368
|
try:
|
|
2369
2369
|
json_obj = json.loads(result)
|
|
@@ -2382,7 +2382,7 @@ def doDescribeClassicalLBTargets(args, parsed_globals):
|
|
|
2382
2382
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2383
2383
|
|
|
2384
2384
|
|
|
2385
|
-
def
|
|
2385
|
+
def doDescribeLoadBalancerTraffic(args, parsed_globals):
|
|
2386
2386
|
g_param = parse_global_arg(parsed_globals)
|
|
2387
2387
|
|
|
2388
2388
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2414,11 +2414,11 @@ def doCreateTopic(args, parsed_globals):
|
|
|
2414
2414
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2415
2415
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2416
2416
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2417
|
-
model = models.
|
|
2417
|
+
model = models.DescribeLoadBalancerTrafficRequest()
|
|
2418
2418
|
model.from_json_string(json.dumps(args))
|
|
2419
2419
|
start_time = time.time()
|
|
2420
2420
|
while True:
|
|
2421
|
-
rsp = client.
|
|
2421
|
+
rsp = client.DescribeLoadBalancerTraffic(model)
|
|
2422
2422
|
result = rsp.to_json_string()
|
|
2423
2423
|
try:
|
|
2424
2424
|
json_obj = json.loads(result)
|
|
@@ -2437,7 +2437,7 @@ def doCreateTopic(args, parsed_globals):
|
|
|
2437
2437
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2438
2438
|
|
|
2439
2439
|
|
|
2440
|
-
def
|
|
2440
|
+
def doDescribeCrossTargets(args, parsed_globals):
|
|
2441
2441
|
g_param = parse_global_arg(parsed_globals)
|
|
2442
2442
|
|
|
2443
2443
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2469,11 +2469,11 @@ def doBatchRegisterTargets(args, parsed_globals):
|
|
|
2469
2469
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2470
2470
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2471
2471
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2472
|
-
model = models.
|
|
2472
|
+
model = models.DescribeCrossTargetsRequest()
|
|
2473
2473
|
model.from_json_string(json.dumps(args))
|
|
2474
2474
|
start_time = time.time()
|
|
2475
2475
|
while True:
|
|
2476
|
-
rsp = client.
|
|
2476
|
+
rsp = client.DescribeCrossTargets(model)
|
|
2477
2477
|
result = rsp.to_json_string()
|
|
2478
2478
|
try:
|
|
2479
2479
|
json_obj = json.loads(result)
|
|
@@ -2492,7 +2492,7 @@ def doBatchRegisterTargets(args, parsed_globals):
|
|
|
2492
2492
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2493
2493
|
|
|
2494
2494
|
|
|
2495
|
-
def
|
|
2495
|
+
def doDescribeTargetHealth(args, parsed_globals):
|
|
2496
2496
|
g_param = parse_global_arg(parsed_globals)
|
|
2497
2497
|
|
|
2498
2498
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2524,11 +2524,11 @@ def doRegisterFunctionTargets(args, parsed_globals):
|
|
|
2524
2524
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2525
2525
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2526
2526
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2527
|
-
model = models.
|
|
2527
|
+
model = models.DescribeTargetHealthRequest()
|
|
2528
2528
|
model.from_json_string(json.dumps(args))
|
|
2529
2529
|
start_time = time.time()
|
|
2530
2530
|
while True:
|
|
2531
|
-
rsp = client.
|
|
2531
|
+
rsp = client.DescribeTargetHealth(model)
|
|
2532
2532
|
result = rsp.to_json_string()
|
|
2533
2533
|
try:
|
|
2534
2534
|
json_obj = json.loads(result)
|
|
@@ -2547,7 +2547,7 @@ def doRegisterFunctionTargets(args, parsed_globals):
|
|
|
2547
2547
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2548
2548
|
|
|
2549
2549
|
|
|
2550
|
-
def
|
|
2550
|
+
def doManualRewrite(args, parsed_globals):
|
|
2551
2551
|
g_param = parse_global_arg(parsed_globals)
|
|
2552
2552
|
|
|
2553
2553
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2579,11 +2579,11 @@ def doDescribeClsLogSet(args, parsed_globals):
|
|
|
2579
2579
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2580
2580
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2581
2581
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2582
|
-
model = models.
|
|
2582
|
+
model = models.ManualRewriteRequest()
|
|
2583
2583
|
model.from_json_string(json.dumps(args))
|
|
2584
2584
|
start_time = time.time()
|
|
2585
2585
|
while True:
|
|
2586
|
-
rsp = client.
|
|
2586
|
+
rsp = client.ManualRewrite(model)
|
|
2587
2587
|
result = rsp.to_json_string()
|
|
2588
2588
|
try:
|
|
2589
2589
|
json_obj = json.loads(result)
|
|
@@ -2602,7 +2602,7 @@ def doDescribeClsLogSet(args, parsed_globals):
|
|
|
2602
2602
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2603
2603
|
|
|
2604
2604
|
|
|
2605
|
-
def
|
|
2605
|
+
def doModifyFunctionTargets(args, parsed_globals):
|
|
2606
2606
|
g_param = parse_global_arg(parsed_globals)
|
|
2607
2607
|
|
|
2608
2608
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2634,11 +2634,11 @@ def doDescribeTaskStatus(args, parsed_globals):
|
|
|
2634
2634
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2635
2635
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2636
2636
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2637
|
-
model = models.
|
|
2637
|
+
model = models.ModifyFunctionTargetsRequest()
|
|
2638
2638
|
model.from_json_string(json.dumps(args))
|
|
2639
2639
|
start_time = time.time()
|
|
2640
2640
|
while True:
|
|
2641
|
-
rsp = client.
|
|
2641
|
+
rsp = client.ModifyFunctionTargets(model)
|
|
2642
2642
|
result = rsp.to_json_string()
|
|
2643
2643
|
try:
|
|
2644
2644
|
json_obj = json.loads(result)
|
|
@@ -2657,7 +2657,7 @@ def doDescribeTaskStatus(args, parsed_globals):
|
|
|
2657
2657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2658
2658
|
|
|
2659
2659
|
|
|
2660
|
-
def
|
|
2660
|
+
def doDeleteLoadBalancerSnatIps(args, parsed_globals):
|
|
2661
2661
|
g_param = parse_global_arg(parsed_globals)
|
|
2662
2662
|
|
|
2663
2663
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2689,11 +2689,11 @@ def doDescribeCustomizedConfigList(args, parsed_globals):
|
|
|
2689
2689
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2690
2690
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2691
2691
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2692
|
-
model = models.
|
|
2692
|
+
model = models.DeleteLoadBalancerSnatIpsRequest()
|
|
2693
2693
|
model.from_json_string(json.dumps(args))
|
|
2694
2694
|
start_time = time.time()
|
|
2695
2695
|
while True:
|
|
2696
|
-
rsp = client.
|
|
2696
|
+
rsp = client.DeleteLoadBalancerSnatIps(model)
|
|
2697
2697
|
result = rsp.to_json_string()
|
|
2698
2698
|
try:
|
|
2699
2699
|
json_obj = json.loads(result)
|
|
@@ -2712,7 +2712,7 @@ def doDescribeCustomizedConfigList(args, parsed_globals):
|
|
|
2712
2712
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2713
2713
|
|
|
2714
2714
|
|
|
2715
|
-
def
|
|
2715
|
+
def doCreateRule(args, parsed_globals):
|
|
2716
2716
|
g_param = parse_global_arg(parsed_globals)
|
|
2717
2717
|
|
|
2718
2718
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2744,11 +2744,11 @@ def doModifyTargetWeight(args, parsed_globals):
|
|
|
2744
2744
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2745
2745
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2746
2746
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2747
|
-
model = models.
|
|
2747
|
+
model = models.CreateRuleRequest()
|
|
2748
2748
|
model.from_json_string(json.dumps(args))
|
|
2749
2749
|
start_time = time.time()
|
|
2750
2750
|
while True:
|
|
2751
|
-
rsp = client.
|
|
2751
|
+
rsp = client.CreateRule(model)
|
|
2752
2752
|
result = rsp.to_json_string()
|
|
2753
2753
|
try:
|
|
2754
2754
|
json_obj = json.loads(result)
|
|
@@ -2767,7 +2767,7 @@ def doModifyTargetWeight(args, parsed_globals):
|
|
|
2767
2767
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2768
2768
|
|
|
2769
2769
|
|
|
2770
|
-
def
|
|
2770
|
+
def doAddCustomizedConfig(args, parsed_globals):
|
|
2771
2771
|
g_param = parse_global_arg(parsed_globals)
|
|
2772
2772
|
|
|
2773
2773
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2799,11 +2799,11 @@ def doModifyLoadBalancersProject(args, parsed_globals):
|
|
|
2799
2799
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2800
2800
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2801
2801
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2802
|
-
model = models.
|
|
2802
|
+
model = models.AddCustomizedConfigRequest()
|
|
2803
2803
|
model.from_json_string(json.dumps(args))
|
|
2804
2804
|
start_time = time.time()
|
|
2805
2805
|
while True:
|
|
2806
|
-
rsp = client.
|
|
2806
|
+
rsp = client.AddCustomizedConfig(model)
|
|
2807
2807
|
result = rsp.to_json_string()
|
|
2808
2808
|
try:
|
|
2809
2809
|
json_obj = json.loads(result)
|
|
@@ -2822,7 +2822,7 @@ def doModifyLoadBalancersProject(args, parsed_globals):
|
|
|
2822
2822
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2823
2823
|
|
|
2824
2824
|
|
|
2825
|
-
def
|
|
2825
|
+
def doModifyDomain(args, parsed_globals):
|
|
2826
2826
|
g_param = parse_global_arg(parsed_globals)
|
|
2827
2827
|
|
|
2828
2828
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2854,11 +2854,11 @@ def doDescribeCrossTargets(args, parsed_globals):
|
|
|
2854
2854
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2855
2855
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2856
2856
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2857
|
-
model = models.
|
|
2857
|
+
model = models.ModifyDomainRequest()
|
|
2858
2858
|
model.from_json_string(json.dumps(args))
|
|
2859
2859
|
start_time = time.time()
|
|
2860
2860
|
while True:
|
|
2861
|
-
rsp = client.
|
|
2861
|
+
rsp = client.ModifyDomain(model)
|
|
2862
2862
|
result = rsp.to_json_string()
|
|
2863
2863
|
try:
|
|
2864
2864
|
json_obj = json.loads(result)
|
|
@@ -2877,7 +2877,7 @@ def doDescribeCrossTargets(args, parsed_globals):
|
|
|
2877
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2878
2878
|
|
|
2879
2879
|
|
|
2880
|
-
def
|
|
2880
|
+
def doInquiryPriceRenewLoadBalancer(args, parsed_globals):
|
|
2881
2881
|
g_param = parse_global_arg(parsed_globals)
|
|
2882
2882
|
|
|
2883
2883
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2909,11 +2909,11 @@ def doSetCustomizedConfigForLoadBalancer(args, parsed_globals):
|
|
|
2909
2909
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2910
2910
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2911
2911
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2912
|
-
model = models.
|
|
2912
|
+
model = models.InquiryPriceRenewLoadBalancerRequest()
|
|
2913
2913
|
model.from_json_string(json.dumps(args))
|
|
2914
2914
|
start_time = time.time()
|
|
2915
2915
|
while True:
|
|
2916
|
-
rsp = client.
|
|
2916
|
+
rsp = client.InquiryPriceRenewLoadBalancer(model)
|
|
2917
2917
|
result = rsp.to_json_string()
|
|
2918
2918
|
try:
|
|
2919
2919
|
json_obj = json.loads(result)
|
|
@@ -2932,7 +2932,7 @@ def doSetCustomizedConfigForLoadBalancer(args, parsed_globals):
|
|
|
2932
2932
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2933
2933
|
|
|
2934
2934
|
|
|
2935
|
-
def
|
|
2935
|
+
def doDescribeLoadBalancerOverview(args, parsed_globals):
|
|
2936
2936
|
g_param = parse_global_arg(parsed_globals)
|
|
2937
2937
|
|
|
2938
2938
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2964,11 +2964,11 @@ def doDescribeTargetGroups(args, parsed_globals):
|
|
|
2964
2964
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2965
2965
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2966
2966
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2967
|
-
model = models.
|
|
2967
|
+
model = models.DescribeLoadBalancerOverviewRequest()
|
|
2968
2968
|
model.from_json_string(json.dumps(args))
|
|
2969
2969
|
start_time = time.time()
|
|
2970
2970
|
while True:
|
|
2971
|
-
rsp = client.
|
|
2971
|
+
rsp = client.DescribeLoadBalancerOverview(model)
|
|
2972
2972
|
result = rsp.to_json_string()
|
|
2973
2973
|
try:
|
|
2974
2974
|
json_obj = json.loads(result)
|
|
@@ -2987,7 +2987,7 @@ def doDescribeTargetGroups(args, parsed_globals):
|
|
|
2987
2987
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2988
2988
|
|
|
2989
2989
|
|
|
2990
|
-
def
|
|
2990
|
+
def doDeleteLoadBalancer(args, parsed_globals):
|
|
2991
2991
|
g_param = parse_global_arg(parsed_globals)
|
|
2992
2992
|
|
|
2993
2993
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3019,11 +3019,11 @@ def doDescribeRewrite(args, parsed_globals):
|
|
|
3019
3019
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3020
3020
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3021
3021
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3022
|
-
model = models.
|
|
3022
|
+
model = models.DeleteLoadBalancerRequest()
|
|
3023
3023
|
model.from_json_string(json.dumps(args))
|
|
3024
3024
|
start_time = time.time()
|
|
3025
3025
|
while True:
|
|
3026
|
-
rsp = client.
|
|
3026
|
+
rsp = client.DeleteLoadBalancer(model)
|
|
3027
3027
|
result = rsp.to_json_string()
|
|
3028
3028
|
try:
|
|
3029
3029
|
json_obj = json.loads(result)
|
|
@@ -3042,7 +3042,7 @@ def doDescribeRewrite(args, parsed_globals):
|
|
|
3042
3042
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3043
3043
|
|
|
3044
3044
|
|
|
3045
|
-
def
|
|
3045
|
+
def doInquiryPriceCreateLoadBalancer(args, parsed_globals):
|
|
3046
3046
|
g_param = parse_global_arg(parsed_globals)
|
|
3047
3047
|
|
|
3048
3048
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3074,11 +3074,11 @@ def doModifyRule(args, parsed_globals):
|
|
|
3074
3074
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3075
3075
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3076
3076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3077
|
-
model = models.
|
|
3077
|
+
model = models.InquiryPriceCreateLoadBalancerRequest()
|
|
3078
3078
|
model.from_json_string(json.dumps(args))
|
|
3079
3079
|
start_time = time.time()
|
|
3080
3080
|
while True:
|
|
3081
|
-
rsp = client.
|
|
3081
|
+
rsp = client.InquiryPriceCreateLoadBalancer(model)
|
|
3082
3082
|
result = rsp.to_json_string()
|
|
3083
3083
|
try:
|
|
3084
3084
|
json_obj = json.loads(result)
|
|
@@ -3152,7 +3152,7 @@ def doDeleteRule(args, parsed_globals):
|
|
|
3152
3152
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3153
3153
|
|
|
3154
3154
|
|
|
3155
|
-
def
|
|
3155
|
+
def doModifyCustomizedConfig(args, parsed_globals):
|
|
3156
3156
|
g_param = parse_global_arg(parsed_globals)
|
|
3157
3157
|
|
|
3158
3158
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3184,11 +3184,66 @@ def doSetLoadBalancerClsLog(args, parsed_globals):
|
|
|
3184
3184
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3185
3185
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3186
3186
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3187
|
-
model = models.
|
|
3187
|
+
model = models.ModifyCustomizedConfigRequest()
|
|
3188
3188
|
model.from_json_string(json.dumps(args))
|
|
3189
3189
|
start_time = time.time()
|
|
3190
3190
|
while True:
|
|
3191
|
-
rsp = client.
|
|
3191
|
+
rsp = client.ModifyCustomizedConfig(model)
|
|
3192
|
+
result = rsp.to_json_string()
|
|
3193
|
+
try:
|
|
3194
|
+
json_obj = json.loads(result)
|
|
3195
|
+
except TypeError as e:
|
|
3196
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
3197
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
3198
|
+
break
|
|
3199
|
+
cur_time = time.time()
|
|
3200
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
3201
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
3202
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
3203
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
3204
|
+
else:
|
|
3205
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
3206
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
3207
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
def doDescribeTaskStatus(args, parsed_globals):
|
|
3211
|
+
g_param = parse_global_arg(parsed_globals)
|
|
3212
|
+
|
|
3213
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
3214
|
+
cred = credential.CVMRoleCredential()
|
|
3215
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
3216
|
+
cred = credential.STSAssumeRoleCredential(
|
|
3217
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
3218
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
3219
|
+
)
|
|
3220
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
3221
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
3222
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
3223
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
3224
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
3225
|
+
else:
|
|
3226
|
+
cred = credential.Credential(
|
|
3227
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
3228
|
+
)
|
|
3229
|
+
http_profile = HttpProfile(
|
|
3230
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
3231
|
+
reqMethod="POST",
|
|
3232
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3233
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3234
|
+
)
|
|
3235
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3236
|
+
if g_param[OptionsDefine.Language]:
|
|
3237
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
3238
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3239
|
+
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3240
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
3241
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3242
|
+
model = models.DescribeTaskStatusRequest()
|
|
3243
|
+
model.from_json_string(json.dumps(args))
|
|
3244
|
+
start_time = time.time()
|
|
3245
|
+
while True:
|
|
3246
|
+
rsp = client.DescribeTaskStatus(model)
|
|
3192
3247
|
result = rsp.to_json_string()
|
|
3193
3248
|
try:
|
|
3194
3249
|
json_obj = json.loads(result)
|
|
@@ -3262,7 +3317,7 @@ def doDescribeTargetGroupList(args, parsed_globals):
|
|
|
3262
3317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3263
3318
|
|
|
3264
3319
|
|
|
3265
|
-
def
|
|
3320
|
+
def doDescribeTargetGroups(args, parsed_globals):
|
|
3266
3321
|
g_param = parse_global_arg(parsed_globals)
|
|
3267
3322
|
|
|
3268
3323
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3294,11 +3349,11 @@ def doModifyBlockIPList(args, parsed_globals):
|
|
|
3294
3349
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3295
3350
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3296
3351
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3297
|
-
model = models.
|
|
3352
|
+
model = models.DescribeTargetGroupsRequest()
|
|
3298
3353
|
model.from_json_string(json.dumps(args))
|
|
3299
3354
|
start_time = time.time()
|
|
3300
3355
|
while True:
|
|
3301
|
-
rsp = client.
|
|
3356
|
+
rsp = client.DescribeTargetGroups(model)
|
|
3302
3357
|
result = rsp.to_json_string()
|
|
3303
3358
|
try:
|
|
3304
3359
|
json_obj = json.loads(result)
|
|
@@ -3317,7 +3372,7 @@ def doModifyBlockIPList(args, parsed_globals):
|
|
|
3317
3372
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3318
3373
|
|
|
3319
3374
|
|
|
3320
|
-
def
|
|
3375
|
+
def doModifyTargetGroupAttribute(args, parsed_globals):
|
|
3321
3376
|
g_param = parse_global_arg(parsed_globals)
|
|
3322
3377
|
|
|
3323
3378
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3349,11 +3404,11 @@ def doDescribeLBListeners(args, parsed_globals):
|
|
|
3349
3404
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3350
3405
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3351
3406
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3352
|
-
model = models.
|
|
3407
|
+
model = models.ModifyTargetGroupAttributeRequest()
|
|
3353
3408
|
model.from_json_string(json.dumps(args))
|
|
3354
3409
|
start_time = time.time()
|
|
3355
3410
|
while True:
|
|
3356
|
-
rsp = client.
|
|
3411
|
+
rsp = client.ModifyTargetGroupAttribute(model)
|
|
3357
3412
|
result = rsp.to_json_string()
|
|
3358
3413
|
try:
|
|
3359
3414
|
json_obj = json.loads(result)
|
|
@@ -3372,7 +3427,7 @@ def doDescribeLBListeners(args, parsed_globals):
|
|
|
3372
3427
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3373
3428
|
|
|
3374
3429
|
|
|
3375
|
-
def
|
|
3430
|
+
def doCreateClsLogSet(args, parsed_globals):
|
|
3376
3431
|
g_param = parse_global_arg(parsed_globals)
|
|
3377
3432
|
|
|
3378
3433
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3404,11 +3459,11 @@ def doDescribeLoadBalancerOverview(args, parsed_globals):
|
|
|
3404
3459
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3405
3460
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3406
3461
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3407
|
-
model = models.
|
|
3462
|
+
model = models.CreateClsLogSetRequest()
|
|
3408
3463
|
model.from_json_string(json.dumps(args))
|
|
3409
3464
|
start_time = time.time()
|
|
3410
3465
|
while True:
|
|
3411
|
-
rsp = client.
|
|
3466
|
+
rsp = client.CreateClsLogSet(model)
|
|
3412
3467
|
result = rsp.to_json_string()
|
|
3413
3468
|
try:
|
|
3414
3469
|
json_obj = json.loads(result)
|
|
@@ -3427,7 +3482,7 @@ def doDescribeLoadBalancerOverview(args, parsed_globals):
|
|
|
3427
3482
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3428
3483
|
|
|
3429
3484
|
|
|
3430
|
-
def
|
|
3485
|
+
def doDescribeQuota(args, parsed_globals):
|
|
3431
3486
|
g_param = parse_global_arg(parsed_globals)
|
|
3432
3487
|
|
|
3433
3488
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3459,11 +3514,11 @@ def doDescribeTargets(args, parsed_globals):
|
|
|
3459
3514
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3460
3515
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3461
3516
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3462
|
-
model = models.
|
|
3517
|
+
model = models.DescribeQuotaRequest()
|
|
3463
3518
|
model.from_json_string(json.dumps(args))
|
|
3464
3519
|
start_time = time.time()
|
|
3465
3520
|
while True:
|
|
3466
|
-
rsp = client.
|
|
3521
|
+
rsp = client.DescribeQuota(model)
|
|
3467
3522
|
result = rsp.to_json_string()
|
|
3468
3523
|
try:
|
|
3469
3524
|
json_obj = json.loads(result)
|
|
@@ -3482,7 +3537,7 @@ def doDescribeTargets(args, parsed_globals):
|
|
|
3482
3537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3483
3538
|
|
|
3484
3539
|
|
|
3485
|
-
def
|
|
3540
|
+
def doCreateLoadBalancer(args, parsed_globals):
|
|
3486
3541
|
g_param = parse_global_arg(parsed_globals)
|
|
3487
3542
|
|
|
3488
3543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3514,11 +3569,11 @@ def doDescribeIdleLoadBalancers(args, parsed_globals):
|
|
|
3514
3569
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3515
3570
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3516
3571
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3517
|
-
model = models.
|
|
3572
|
+
model = models.CreateLoadBalancerRequest()
|
|
3518
3573
|
model.from_json_string(json.dumps(args))
|
|
3519
3574
|
start_time = time.time()
|
|
3520
3575
|
while True:
|
|
3521
|
-
rsp = client.
|
|
3576
|
+
rsp = client.CreateLoadBalancer(model)
|
|
3522
3577
|
result = rsp.to_json_string()
|
|
3523
3578
|
try:
|
|
3524
3579
|
json_obj = json.loads(result)
|
|
@@ -3537,7 +3592,7 @@ def doDescribeIdleLoadBalancers(args, parsed_globals):
|
|
|
3537
3592
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3538
3593
|
|
|
3539
3594
|
|
|
3540
|
-
def
|
|
3595
|
+
def doDescribeIdleLoadBalancers(args, parsed_globals):
|
|
3541
3596
|
g_param = parse_global_arg(parsed_globals)
|
|
3542
3597
|
|
|
3543
3598
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3569,11 +3624,11 @@ def doMigrateClassicalLoadBalancers(args, parsed_globals):
|
|
|
3569
3624
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3570
3625
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3571
3626
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3572
|
-
model = models.
|
|
3627
|
+
model = models.DescribeIdleLoadBalancersRequest()
|
|
3573
3628
|
model.from_json_string(json.dumps(args))
|
|
3574
3629
|
start_time = time.time()
|
|
3575
3630
|
while True:
|
|
3576
|
-
rsp = client.
|
|
3631
|
+
rsp = client.DescribeIdleLoadBalancers(model)
|
|
3577
3632
|
result = rsp.to_json_string()
|
|
3578
3633
|
try:
|
|
3579
3634
|
json_obj = json.loads(result)
|
|
@@ -3592,7 +3647,7 @@ def doMigrateClassicalLoadBalancers(args, parsed_globals):
|
|
|
3592
3647
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3593
3648
|
|
|
3594
3649
|
|
|
3595
|
-
def
|
|
3650
|
+
def doRegisterTargets(args, parsed_globals):
|
|
3596
3651
|
g_param = parse_global_arg(parsed_globals)
|
|
3597
3652
|
|
|
3598
3653
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3624,11 +3679,11 @@ def doRegisterTargetsWithClassicalLB(args, parsed_globals):
|
|
|
3624
3679
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3625
3680
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3626
3681
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3627
|
-
model = models.
|
|
3682
|
+
model = models.RegisterTargetsRequest()
|
|
3628
3683
|
model.from_json_string(json.dumps(args))
|
|
3629
3684
|
start_time = time.time()
|
|
3630
3685
|
while True:
|
|
3631
|
-
rsp = client.
|
|
3686
|
+
rsp = client.RegisterTargets(model)
|
|
3632
3687
|
result = rsp.to_json_string()
|
|
3633
3688
|
try:
|
|
3634
3689
|
json_obj = json.loads(result)
|
|
@@ -3647,7 +3702,7 @@ def doRegisterTargetsWithClassicalLB(args, parsed_globals):
|
|
|
3647
3702
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3648
3703
|
|
|
3649
3704
|
|
|
3650
|
-
def
|
|
3705
|
+
def doDescribeClassicalLBListeners(args, parsed_globals):
|
|
3651
3706
|
g_param = parse_global_arg(parsed_globals)
|
|
3652
3707
|
|
|
3653
3708
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3679,11 +3734,11 @@ def doModifyTargetPort(args, parsed_globals):
|
|
|
3679
3734
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3680
3735
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3681
3736
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3682
|
-
model = models.
|
|
3737
|
+
model = models.DescribeClassicalLBListenersRequest()
|
|
3683
3738
|
model.from_json_string(json.dumps(args))
|
|
3684
3739
|
start_time = time.time()
|
|
3685
3740
|
while True:
|
|
3686
|
-
rsp = client.
|
|
3741
|
+
rsp = client.DescribeClassicalLBListeners(model)
|
|
3687
3742
|
result = rsp.to_json_string()
|
|
3688
3743
|
try:
|
|
3689
3744
|
json_obj = json.loads(result)
|
|
@@ -3702,7 +3757,7 @@ def doModifyTargetPort(args, parsed_globals):
|
|
|
3702
3757
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3703
3758
|
|
|
3704
3759
|
|
|
3705
|
-
def
|
|
3760
|
+
def doReplaceCertForLoadBalancers(args, parsed_globals):
|
|
3706
3761
|
g_param = parse_global_arg(parsed_globals)
|
|
3707
3762
|
|
|
3708
3763
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3734,11 +3789,11 @@ def doModifyTargetGroupAttribute(args, parsed_globals):
|
|
|
3734
3789
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3735
3790
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3736
3791
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3737
|
-
model = models.
|
|
3792
|
+
model = models.ReplaceCertForLoadBalancersRequest()
|
|
3738
3793
|
model.from_json_string(json.dumps(args))
|
|
3739
3794
|
start_time = time.time()
|
|
3740
3795
|
while True:
|
|
3741
|
-
rsp = client.
|
|
3796
|
+
rsp = client.ReplaceCertForLoadBalancers(model)
|
|
3742
3797
|
result = rsp.to_json_string()
|
|
3743
3798
|
try:
|
|
3744
3799
|
json_obj = json.loads(result)
|
|
@@ -3757,7 +3812,7 @@ def doModifyTargetGroupAttribute(args, parsed_globals):
|
|
|
3757
3812
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3758
3813
|
|
|
3759
3814
|
|
|
3760
|
-
def
|
|
3815
|
+
def doDeleteLoadBalancerListeners(args, parsed_globals):
|
|
3761
3816
|
g_param = parse_global_arg(parsed_globals)
|
|
3762
3817
|
|
|
3763
3818
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3789,11 +3844,11 @@ def doModifyLoadBalancerSla(args, parsed_globals):
|
|
|
3789
3844
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3790
3845
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3791
3846
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3792
|
-
model = models.
|
|
3847
|
+
model = models.DeleteLoadBalancerListenersRequest()
|
|
3793
3848
|
model.from_json_string(json.dumps(args))
|
|
3794
3849
|
start_time = time.time()
|
|
3795
3850
|
while True:
|
|
3796
|
-
rsp = client.
|
|
3851
|
+
rsp = client.DeleteLoadBalancerListeners(model)
|
|
3797
3852
|
result = rsp.to_json_string()
|
|
3798
3853
|
try:
|
|
3799
3854
|
json_obj = json.loads(result)
|
|
@@ -3812,7 +3867,7 @@ def doModifyLoadBalancerSla(args, parsed_globals):
|
|
|
3812
3867
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3813
3868
|
|
|
3814
3869
|
|
|
3815
|
-
def
|
|
3870
|
+
def doDeleteTargetGroups(args, parsed_globals):
|
|
3816
3871
|
g_param = parse_global_arg(parsed_globals)
|
|
3817
3872
|
|
|
3818
3873
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3844,11 +3899,11 @@ def doDeregisterTargets(args, parsed_globals):
|
|
|
3844
3899
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3845
3900
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3846
3901
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3847
|
-
model = models.
|
|
3902
|
+
model = models.DeleteTargetGroupsRequest()
|
|
3848
3903
|
model.from_json_string(json.dumps(args))
|
|
3849
3904
|
start_time = time.time()
|
|
3850
3905
|
while True:
|
|
3851
|
-
rsp = client.
|
|
3906
|
+
rsp = client.DeleteTargetGroups(model)
|
|
3852
3907
|
result = rsp.to_json_string()
|
|
3853
3908
|
try:
|
|
3854
3909
|
json_obj = json.loads(result)
|
|
@@ -3867,7 +3922,7 @@ def doDeregisterTargets(args, parsed_globals):
|
|
|
3867
3922
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3868
3923
|
|
|
3869
3924
|
|
|
3870
|
-
def
|
|
3925
|
+
def doDescribeClassicalLBHealthStatus(args, parsed_globals):
|
|
3871
3926
|
g_param = parse_global_arg(parsed_globals)
|
|
3872
3927
|
|
|
3873
3928
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3899,11 +3954,11 @@ def doModifyLoadBalancerAttributes(args, parsed_globals):
|
|
|
3899
3954
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3900
3955
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3901
3956
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3902
|
-
model = models.
|
|
3957
|
+
model = models.DescribeClassicalLBHealthStatusRequest()
|
|
3903
3958
|
model.from_json_string(json.dumps(args))
|
|
3904
3959
|
start_time = time.time()
|
|
3905
3960
|
while True:
|
|
3906
|
-
rsp = client.
|
|
3961
|
+
rsp = client.DescribeClassicalLBHealthStatus(model)
|
|
3907
3962
|
result = rsp.to_json_string()
|
|
3908
3963
|
try:
|
|
3909
3964
|
json_obj = json.loads(result)
|
|
@@ -3922,7 +3977,7 @@ def doModifyLoadBalancerAttributes(args, parsed_globals):
|
|
|
3922
3977
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3923
3978
|
|
|
3924
3979
|
|
|
3925
|
-
def
|
|
3980
|
+
def doModifyDomainAttributes(args, parsed_globals):
|
|
3926
3981
|
g_param = parse_global_arg(parsed_globals)
|
|
3927
3982
|
|
|
3928
3983
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3954,11 +4009,11 @@ def doCreateClsLogSet(args, parsed_globals):
|
|
|
3954
4009
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3955
4010
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3956
4011
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3957
|
-
model = models.
|
|
4012
|
+
model = models.ModifyDomainAttributesRequest()
|
|
3958
4013
|
model.from_json_string(json.dumps(args))
|
|
3959
4014
|
start_time = time.time()
|
|
3960
4015
|
while True:
|
|
3961
|
-
rsp = client.
|
|
4016
|
+
rsp = client.ModifyDomainAttributes(model)
|
|
3962
4017
|
result = rsp.to_json_string()
|
|
3963
4018
|
try:
|
|
3964
4019
|
json_obj = json.loads(result)
|
|
@@ -3977,7 +4032,7 @@ def doCreateClsLogSet(args, parsed_globals):
|
|
|
3977
4032
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3978
4033
|
|
|
3979
4034
|
|
|
3980
|
-
def
|
|
4035
|
+
def doDisassociateTargetGroups(args, parsed_globals):
|
|
3981
4036
|
g_param = parse_global_arg(parsed_globals)
|
|
3982
4037
|
|
|
3983
4038
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4009,11 +4064,11 @@ def doDescribeClassicalLBByInstanceId(args, parsed_globals):
|
|
|
4009
4064
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4010
4065
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4011
4066
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4012
|
-
model = models.
|
|
4067
|
+
model = models.DisassociateTargetGroupsRequest()
|
|
4013
4068
|
model.from_json_string(json.dumps(args))
|
|
4014
4069
|
start_time = time.time()
|
|
4015
4070
|
while True:
|
|
4016
|
-
rsp = client.
|
|
4071
|
+
rsp = client.DisassociateTargetGroups(model)
|
|
4017
4072
|
result = rsp.to_json_string()
|
|
4018
4073
|
try:
|
|
4019
4074
|
json_obj = json.loads(result)
|
|
@@ -4032,7 +4087,7 @@ def doDescribeClassicalLBByInstanceId(args, parsed_globals):
|
|
|
4032
4087
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4033
4088
|
|
|
4034
4089
|
|
|
4035
|
-
def
|
|
4090
|
+
def doDescribeLoadBalancers(args, parsed_globals):
|
|
4036
4091
|
g_param = parse_global_arg(parsed_globals)
|
|
4037
4092
|
|
|
4038
4093
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4064,11 +4119,11 @@ def doReplaceCertForLoadBalancers(args, parsed_globals):
|
|
|
4064
4119
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4065
4120
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4066
4121
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4067
|
-
model = models.
|
|
4122
|
+
model = models.DescribeLoadBalancersRequest()
|
|
4068
4123
|
model.from_json_string(json.dumps(args))
|
|
4069
4124
|
start_time = time.time()
|
|
4070
4125
|
while True:
|
|
4071
|
-
rsp = client.
|
|
4126
|
+
rsp = client.DescribeLoadBalancers(model)
|
|
4072
4127
|
result = rsp.to_json_string()
|
|
4073
4128
|
try:
|
|
4074
4129
|
json_obj = json.loads(result)
|
|
@@ -4087,7 +4142,7 @@ def doReplaceCertForLoadBalancers(args, parsed_globals):
|
|
|
4087
4142
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4088
4143
|
|
|
4089
4144
|
|
|
4090
|
-
def
|
|
4145
|
+
def doDescribeBlockIPList(args, parsed_globals):
|
|
4091
4146
|
g_param = parse_global_arg(parsed_globals)
|
|
4092
4147
|
|
|
4093
4148
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4119,11 +4174,11 @@ def doCloneLoadBalancer(args, parsed_globals):
|
|
|
4119
4174
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4120
4175
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4121
4176
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4122
|
-
model = models.
|
|
4177
|
+
model = models.DescribeBlockIPListRequest()
|
|
4123
4178
|
model.from_json_string(json.dumps(args))
|
|
4124
4179
|
start_time = time.time()
|
|
4125
4180
|
while True:
|
|
4126
|
-
rsp = client.
|
|
4181
|
+
rsp = client.DescribeBlockIPList(model)
|
|
4127
4182
|
result = rsp.to_json_string()
|
|
4128
4183
|
try:
|
|
4129
4184
|
json_obj = json.loads(result)
|
|
@@ -4142,7 +4197,7 @@ def doCloneLoadBalancer(args, parsed_globals):
|
|
|
4142
4197
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4143
4198
|
|
|
4144
4199
|
|
|
4145
|
-
def
|
|
4200
|
+
def doDescribeClassicalLBTargets(args, parsed_globals):
|
|
4146
4201
|
g_param = parse_global_arg(parsed_globals)
|
|
4147
4202
|
|
|
4148
4203
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4174,11 +4229,11 @@ def doModifyTargetGroupInstancesPort(args, parsed_globals):
|
|
|
4174
4229
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4175
4230
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4176
4231
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4177
|
-
model = models.
|
|
4232
|
+
model = models.DescribeClassicalLBTargetsRequest()
|
|
4178
4233
|
model.from_json_string(json.dumps(args))
|
|
4179
4234
|
start_time = time.time()
|
|
4180
4235
|
while True:
|
|
4181
|
-
rsp = client.
|
|
4236
|
+
rsp = client.DescribeClassicalLBTargets(model)
|
|
4182
4237
|
result = rsp.to_json_string()
|
|
4183
4238
|
try:
|
|
4184
4239
|
json_obj = json.loads(result)
|
|
@@ -4197,7 +4252,7 @@ def doModifyTargetGroupInstancesPort(args, parsed_globals):
|
|
|
4197
4252
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4198
4253
|
|
|
4199
4254
|
|
|
4200
|
-
def
|
|
4255
|
+
def doCreateListener(args, parsed_globals):
|
|
4201
4256
|
g_param = parse_global_arg(parsed_globals)
|
|
4202
4257
|
|
|
4203
4258
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4229,11 +4284,11 @@ def doBatchModifyTargetWeight(args, parsed_globals):
|
|
|
4229
4284
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4230
4285
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4231
4286
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4232
|
-
model = models.
|
|
4287
|
+
model = models.CreateListenerRequest()
|
|
4233
4288
|
model.from_json_string(json.dumps(args))
|
|
4234
4289
|
start_time = time.time()
|
|
4235
4290
|
while True:
|
|
4236
|
-
rsp = client.
|
|
4291
|
+
rsp = client.CreateListener(model)
|
|
4237
4292
|
result = rsp.to_json_string()
|
|
4238
4293
|
try:
|
|
4239
4294
|
json_obj = json.loads(result)
|
|
@@ -4252,7 +4307,7 @@ def doBatchModifyTargetWeight(args, parsed_globals):
|
|
|
4252
4307
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4253
4308
|
|
|
4254
4309
|
|
|
4255
|
-
def
|
|
4310
|
+
def doDescribeLBOperateProtect(args, parsed_globals):
|
|
4256
4311
|
g_param = parse_global_arg(parsed_globals)
|
|
4257
4312
|
|
|
4258
4313
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4284,11 +4339,11 @@ def doDeregisterFunctionTargets(args, parsed_globals):
|
|
|
4284
4339
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4285
4340
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4286
4341
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4287
|
-
model = models.
|
|
4342
|
+
model = models.DescribeLBOperateProtectRequest()
|
|
4288
4343
|
model.from_json_string(json.dumps(args))
|
|
4289
4344
|
start_time = time.time()
|
|
4290
4345
|
while True:
|
|
4291
|
-
rsp = client.
|
|
4346
|
+
rsp = client.DescribeLBOperateProtect(model)
|
|
4292
4347
|
result = rsp.to_json_string()
|
|
4293
4348
|
try:
|
|
4294
4349
|
json_obj = json.loads(result)
|
|
@@ -4307,7 +4362,7 @@ def doDeregisterFunctionTargets(args, parsed_globals):
|
|
|
4307
4362
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4308
4363
|
|
|
4309
4364
|
|
|
4310
|
-
def
|
|
4365
|
+
def doDescribeClsLogSet(args, parsed_globals):
|
|
4311
4366
|
g_param = parse_global_arg(parsed_globals)
|
|
4312
4367
|
|
|
4313
4368
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4339,11 +4394,11 @@ def doDescribeQuota(args, parsed_globals):
|
|
|
4339
4394
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4340
4395
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4341
4396
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4342
|
-
model = models.
|
|
4397
|
+
model = models.DescribeClsLogSetRequest()
|
|
4343
4398
|
model.from_json_string(json.dumps(args))
|
|
4344
4399
|
start_time = time.time()
|
|
4345
4400
|
while True:
|
|
4346
|
-
rsp = client.
|
|
4401
|
+
rsp = client.DescribeClsLogSet(model)
|
|
4347
4402
|
result = rsp.to_json_string()
|
|
4348
4403
|
try:
|
|
4349
4404
|
json_obj = json.loads(result)
|
|
@@ -4362,7 +4417,7 @@ def doDescribeQuota(args, parsed_globals):
|
|
|
4362
4417
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4363
4418
|
|
|
4364
4419
|
|
|
4365
|
-
def
|
|
4420
|
+
def doModifyTargetWeight(args, parsed_globals):
|
|
4366
4421
|
g_param = parse_global_arg(parsed_globals)
|
|
4367
4422
|
|
|
4368
4423
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4394,11 +4449,11 @@ def doDescribeTargetHealth(args, parsed_globals):
|
|
|
4394
4449
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4395
4450
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4396
4451
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4397
|
-
model = models.
|
|
4452
|
+
model = models.ModifyTargetWeightRequest()
|
|
4398
4453
|
model.from_json_string(json.dumps(args))
|
|
4399
4454
|
start_time = time.time()
|
|
4400
4455
|
while True:
|
|
4401
|
-
rsp = client.
|
|
4456
|
+
rsp = client.ModifyTargetWeight(model)
|
|
4402
4457
|
result = rsp.to_json_string()
|
|
4403
4458
|
try:
|
|
4404
4459
|
json_obj = json.loads(result)
|
|
@@ -4417,7 +4472,7 @@ def doDescribeTargetHealth(args, parsed_globals):
|
|
|
4417
4472
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4418
4473
|
|
|
4419
4474
|
|
|
4420
|
-
def
|
|
4475
|
+
def doCreateTargetGroup(args, parsed_globals):
|
|
4421
4476
|
g_param = parse_global_arg(parsed_globals)
|
|
4422
4477
|
|
|
4423
4478
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4449,11 +4504,11 @@ def doBatchModifyTargetTag(args, parsed_globals):
|
|
|
4449
4504
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4450
4505
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4451
4506
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4452
|
-
model = models.
|
|
4507
|
+
model = models.CreateTargetGroupRequest()
|
|
4453
4508
|
model.from_json_string(json.dumps(args))
|
|
4454
4509
|
start_time = time.time()
|
|
4455
4510
|
while True:
|
|
4456
|
-
rsp = client.
|
|
4511
|
+
rsp = client.CreateTargetGroup(model)
|
|
4457
4512
|
result = rsp.to_json_string()
|
|
4458
4513
|
try:
|
|
4459
4514
|
json_obj = json.loads(result)
|
|
@@ -4472,7 +4527,7 @@ def doBatchModifyTargetTag(args, parsed_globals):
|
|
|
4472
4527
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4473
4528
|
|
|
4474
4529
|
|
|
4475
|
-
def
|
|
4530
|
+
def doDescribeTargets(args, parsed_globals):
|
|
4476
4531
|
g_param = parse_global_arg(parsed_globals)
|
|
4477
4532
|
|
|
4478
4533
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4504,11 +4559,11 @@ def doModifyTargetGroupInstancesWeight(args, parsed_globals):
|
|
|
4504
4559
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4505
4560
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4506
4561
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4507
|
-
model = models.
|
|
4562
|
+
model = models.DescribeTargetsRequest()
|
|
4508
4563
|
model.from_json_string(json.dumps(args))
|
|
4509
4564
|
start_time = time.time()
|
|
4510
4565
|
while True:
|
|
4511
|
-
rsp = client.
|
|
4566
|
+
rsp = client.DescribeTargets(model)
|
|
4512
4567
|
result = rsp.to_json_string()
|
|
4513
4568
|
try:
|
|
4514
4569
|
json_obj = json.loads(result)
|
|
@@ -4527,7 +4582,7 @@ def doModifyTargetGroupInstancesWeight(args, parsed_globals):
|
|
|
4527
4582
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4528
4583
|
|
|
4529
4584
|
|
|
4530
|
-
def
|
|
4585
|
+
def doMigrateClassicalLoadBalancers(args, parsed_globals):
|
|
4531
4586
|
g_param = parse_global_arg(parsed_globals)
|
|
4532
4587
|
|
|
4533
4588
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4559,11 +4614,11 @@ def doManualRewrite(args, parsed_globals):
|
|
|
4559
4614
|
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4560
4615
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4561
4616
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4562
|
-
model = models.
|
|
4617
|
+
model = models.MigrateClassicalLoadBalancersRequest()
|
|
4563
4618
|
model.from_json_string(json.dumps(args))
|
|
4564
4619
|
start_time = time.time()
|
|
4565
4620
|
while True:
|
|
4566
|
-
rsp = client.
|
|
4621
|
+
rsp = client.MigrateClassicalLoadBalancers(model)
|
|
4567
4622
|
result = rsp.to_json_string()
|
|
4568
4623
|
try:
|
|
4569
4624
|
json_obj = json.loads(result)
|
|
@@ -4582,7 +4637,282 @@ def doManualRewrite(args, parsed_globals):
|
|
|
4582
4637
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4583
4638
|
|
|
4584
4639
|
|
|
4585
|
-
|
|
4640
|
+
def doDescribeLoadBalancerListByCertId(args, parsed_globals):
|
|
4641
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4642
|
+
|
|
4643
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4644
|
+
cred = credential.CVMRoleCredential()
|
|
4645
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4646
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4647
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4648
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4649
|
+
)
|
|
4650
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4651
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4652
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4653
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4654
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4655
|
+
else:
|
|
4656
|
+
cred = credential.Credential(
|
|
4657
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4658
|
+
)
|
|
4659
|
+
http_profile = HttpProfile(
|
|
4660
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4661
|
+
reqMethod="POST",
|
|
4662
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4663
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4664
|
+
)
|
|
4665
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4666
|
+
if g_param[OptionsDefine.Language]:
|
|
4667
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4668
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4669
|
+
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4670
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4671
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4672
|
+
model = models.DescribeLoadBalancerListByCertIdRequest()
|
|
4673
|
+
model.from_json_string(json.dumps(args))
|
|
4674
|
+
start_time = time.time()
|
|
4675
|
+
while True:
|
|
4676
|
+
rsp = client.DescribeLoadBalancerListByCertId(model)
|
|
4677
|
+
result = rsp.to_json_string()
|
|
4678
|
+
try:
|
|
4679
|
+
json_obj = json.loads(result)
|
|
4680
|
+
except TypeError as e:
|
|
4681
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4682
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4683
|
+
break
|
|
4684
|
+
cur_time = time.time()
|
|
4685
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4686
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4687
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4688
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4689
|
+
else:
|
|
4690
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4691
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4692
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4693
|
+
|
|
4694
|
+
|
|
4695
|
+
def doCreateLoadBalancerSnatIps(args, parsed_globals):
|
|
4696
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4697
|
+
|
|
4698
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4699
|
+
cred = credential.CVMRoleCredential()
|
|
4700
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4701
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4702
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4703
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4704
|
+
)
|
|
4705
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4706
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4707
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4708
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4709
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4710
|
+
else:
|
|
4711
|
+
cred = credential.Credential(
|
|
4712
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4713
|
+
)
|
|
4714
|
+
http_profile = HttpProfile(
|
|
4715
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4716
|
+
reqMethod="POST",
|
|
4717
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4718
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4719
|
+
)
|
|
4720
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4721
|
+
if g_param[OptionsDefine.Language]:
|
|
4722
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4723
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4724
|
+
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4725
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4726
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4727
|
+
model = models.CreateLoadBalancerSnatIpsRequest()
|
|
4728
|
+
model.from_json_string(json.dumps(args))
|
|
4729
|
+
start_time = time.time()
|
|
4730
|
+
while True:
|
|
4731
|
+
rsp = client.CreateLoadBalancerSnatIps(model)
|
|
4732
|
+
result = rsp.to_json_string()
|
|
4733
|
+
try:
|
|
4734
|
+
json_obj = json.loads(result)
|
|
4735
|
+
except TypeError as e:
|
|
4736
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4737
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4738
|
+
break
|
|
4739
|
+
cur_time = time.time()
|
|
4740
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4741
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4742
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4743
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4744
|
+
else:
|
|
4745
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4746
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4747
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4748
|
+
|
|
4749
|
+
|
|
4750
|
+
def doDescribeTargetGroupInstances(args, parsed_globals):
|
|
4751
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4752
|
+
|
|
4753
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4754
|
+
cred = credential.CVMRoleCredential()
|
|
4755
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4756
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4757
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4758
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4759
|
+
)
|
|
4760
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4761
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4762
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4763
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4764
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4765
|
+
else:
|
|
4766
|
+
cred = credential.Credential(
|
|
4767
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4768
|
+
)
|
|
4769
|
+
http_profile = HttpProfile(
|
|
4770
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4771
|
+
reqMethod="POST",
|
|
4772
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4773
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4774
|
+
)
|
|
4775
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4776
|
+
if g_param[OptionsDefine.Language]:
|
|
4777
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4778
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4779
|
+
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4780
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4781
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4782
|
+
model = models.DescribeTargetGroupInstancesRequest()
|
|
4783
|
+
model.from_json_string(json.dumps(args))
|
|
4784
|
+
start_time = time.time()
|
|
4785
|
+
while True:
|
|
4786
|
+
rsp = client.DescribeTargetGroupInstances(model)
|
|
4787
|
+
result = rsp.to_json_string()
|
|
4788
|
+
try:
|
|
4789
|
+
json_obj = json.loads(result)
|
|
4790
|
+
except TypeError as e:
|
|
4791
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4792
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4793
|
+
break
|
|
4794
|
+
cur_time = time.time()
|
|
4795
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4796
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4797
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4798
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4799
|
+
else:
|
|
4800
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4801
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4802
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4803
|
+
|
|
4804
|
+
|
|
4805
|
+
def doCloneLoadBalancer(args, parsed_globals):
|
|
4806
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4807
|
+
|
|
4808
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4809
|
+
cred = credential.CVMRoleCredential()
|
|
4810
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4811
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4812
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4813
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4814
|
+
)
|
|
4815
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4816
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4817
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4818
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4819
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4820
|
+
else:
|
|
4821
|
+
cred = credential.Credential(
|
|
4822
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4823
|
+
)
|
|
4824
|
+
http_profile = HttpProfile(
|
|
4825
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4826
|
+
reqMethod="POST",
|
|
4827
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4828
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4829
|
+
)
|
|
4830
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4831
|
+
if g_param[OptionsDefine.Language]:
|
|
4832
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4833
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4834
|
+
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4835
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4836
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4837
|
+
model = models.CloneLoadBalancerRequest()
|
|
4838
|
+
model.from_json_string(json.dumps(args))
|
|
4839
|
+
start_time = time.time()
|
|
4840
|
+
while True:
|
|
4841
|
+
rsp = client.CloneLoadBalancer(model)
|
|
4842
|
+
result = rsp.to_json_string()
|
|
4843
|
+
try:
|
|
4844
|
+
json_obj = json.loads(result)
|
|
4845
|
+
except TypeError as e:
|
|
4846
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4847
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4848
|
+
break
|
|
4849
|
+
cur_time = time.time()
|
|
4850
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4851
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4852
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4853
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4854
|
+
else:
|
|
4855
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4856
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4857
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4858
|
+
|
|
4859
|
+
|
|
4860
|
+
def doBatchModifyTargetTag(args, parsed_globals):
|
|
4861
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4862
|
+
|
|
4863
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4864
|
+
cred = credential.CVMRoleCredential()
|
|
4865
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4866
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4867
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4868
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4869
|
+
)
|
|
4870
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
4871
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
4872
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
4873
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
4874
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4875
|
+
else:
|
|
4876
|
+
cred = credential.Credential(
|
|
4877
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4878
|
+
)
|
|
4879
|
+
http_profile = HttpProfile(
|
|
4880
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4881
|
+
reqMethod="POST",
|
|
4882
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4883
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4884
|
+
)
|
|
4885
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4886
|
+
if g_param[OptionsDefine.Language]:
|
|
4887
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4888
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4889
|
+
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4890
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4891
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4892
|
+
model = models.BatchModifyTargetTagRequest()
|
|
4893
|
+
model.from_json_string(json.dumps(args))
|
|
4894
|
+
start_time = time.time()
|
|
4895
|
+
while True:
|
|
4896
|
+
rsp = client.BatchModifyTargetTag(model)
|
|
4897
|
+
result = rsp.to_json_string()
|
|
4898
|
+
try:
|
|
4899
|
+
json_obj = json.loads(result)
|
|
4900
|
+
except TypeError as e:
|
|
4901
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4902
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4903
|
+
break
|
|
4904
|
+
cur_time = time.time()
|
|
4905
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4906
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4907
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4908
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4909
|
+
else:
|
|
4910
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4911
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4912
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
CLIENT_MAP = {
|
|
4586
4916
|
"v20180317": clb_client_v20180317,
|
|
4587
4917
|
|
|
4588
4918
|
}
|
|
@@ -4593,89 +4923,95 @@ MODELS_MAP = {
|
|
|
4593
4923
|
}
|
|
4594
4924
|
|
|
4595
4925
|
ACTION_MAP = {
|
|
4596
|
-
"RegisterTargets": doRegisterTargets,
|
|
4597
|
-
"DescribeResources": doDescribeResources,
|
|
4598
|
-
"ModifyFunctionTargets": doModifyFunctionTargets,
|
|
4599
|
-
"DescribeClassicalLBListeners": doDescribeClassicalLBListeners,
|
|
4600
|
-
"InquiryPriceRefundLoadBalancer": doInquiryPriceRefundLoadBalancer,
|
|
4601
4926
|
"DescribeCustomizedConfigAssociateList": doDescribeCustomizedConfigAssociateList,
|
|
4602
|
-
"DescribeBlockIPTask": doDescribeBlockIPTask,
|
|
4603
|
-
"CreateListener": doCreateListener,
|
|
4604
|
-
"DeleteLoadBalancerSnatIps": doDeleteLoadBalancerSnatIps,
|
|
4605
|
-
"DeleteListener": doDeleteListener,
|
|
4606
4927
|
"InquiryPriceModifyLoadBalancer": doInquiryPriceModifyLoadBalancer,
|
|
4607
|
-
"SetSecurityGroupForLoadbalancers": doSetSecurityGroupForLoadbalancers,
|
|
4608
4928
|
"BatchDeregisterTargets": doBatchDeregisterTargets,
|
|
4609
|
-
"RegisterTargetGroupInstances": doRegisterTargetGroupInstances,
|
|
4610
|
-
"CreateRule": doCreateRule,
|
|
4611
|
-
"DescribeClassicalLBHealthStatus": doDescribeClassicalLBHealthStatus,
|
|
4612
4929
|
"AutoRewrite": doAutoRewrite,
|
|
4613
|
-
"
|
|
4614
|
-
"
|
|
4615
|
-
"DeleteLoadBalancerListeners": doDeleteLoadBalancerListeners,
|
|
4616
|
-
"InquiryPriceRenewLoadBalancer": doInquiryPriceRenewLoadBalancer,
|
|
4617
|
-
"SetLoadBalancerSecurityGroups": doSetLoadBalancerSecurityGroups,
|
|
4618
|
-
"DeleteTargetGroups": doDeleteTargetGroups,
|
|
4619
|
-
"SetLoadBalancerStartStatus": doSetLoadBalancerStartStatus,
|
|
4930
|
+
"ModifyTargetGroupInstancesWeight": doModifyTargetGroupInstancesWeight,
|
|
4931
|
+
"AssociateCustomizedConfig": doAssociateCustomizedConfig,
|
|
4620
4932
|
"DeregisterTargetsFromClassicalLB": doDeregisterTargetsFromClassicalLB,
|
|
4621
|
-
"CreateLoadBalancer": doCreateLoadBalancer,
|
|
4622
|
-
"DescribeLoadBalancerListByCertId": doDescribeLoadBalancerListByCertId,
|
|
4623
|
-
"ModifyListener": doModifyListener,
|
|
4624
|
-
"DeleteLoadBalancer": doDeleteLoadBalancer,
|
|
4625
|
-
"InquiryPriceCreateLoadBalancer": doInquiryPriceCreateLoadBalancer,
|
|
4626
|
-
"ModifyDomainAttributes": doModifyDomainAttributes,
|
|
4627
|
-
"DisassociateTargetGroups": doDisassociateTargetGroups,
|
|
4628
|
-
"CreateTargetGroup": doCreateTargetGroup,
|
|
4629
|
-
"DeleteRewrite": doDeleteRewrite,
|
|
4630
|
-
"DescribeTargetGroupInstances": doDescribeTargetGroupInstances,
|
|
4631
|
-
"AssociateTargetGroups": doAssociateTargetGroups,
|
|
4632
|
-
"CreateLoadBalancerSnatIps": doCreateLoadBalancerSnatIps,
|
|
4633
4933
|
"DescribeLoadBalancersDetail": doDescribeLoadBalancersDetail,
|
|
4934
|
+
"AssociateTargetGroups": doAssociateTargetGroups,
|
|
4634
4935
|
"DeregisterTargetGroupInstances": doDeregisterTargetGroupInstances,
|
|
4635
|
-
"DescribeLoadBalancers": doDescribeLoadBalancers,
|
|
4636
|
-
"DescribeBlockIPList": doDescribeBlockIPList,
|
|
4637
4936
|
"DescribeListeners": doDescribeListeners,
|
|
4638
|
-
"DescribeClassicalLBTargets": doDescribeClassicalLBTargets,
|
|
4639
4937
|
"CreateTopic": doCreateTopic,
|
|
4938
|
+
"ModifyLoadBalancersProject": doModifyLoadBalancersProject,
|
|
4939
|
+
"SetCustomizedConfigForLoadBalancer": doSetCustomizedConfigForLoadBalancer,
|
|
4940
|
+
"RegisterTargetsWithClassicalLB": doRegisterTargetsWithClassicalLB,
|
|
4941
|
+
"DeregisterTargets": doDeregisterTargets,
|
|
4942
|
+
"ModifyLoadBalancerAttributes": doModifyLoadBalancerAttributes,
|
|
4943
|
+
"ModifyTargetGroupInstancesPort": doModifyTargetGroupInstancesPort,
|
|
4944
|
+
"BatchModifyTargetWeight": doBatchModifyTargetWeight,
|
|
4945
|
+
"DeleteRewrite": doDeleteRewrite,
|
|
4946
|
+
"DisassociateCustomizedConfig": doDisassociateCustomizedConfig,
|
|
4947
|
+
"SetLoadBalancerSecurityGroups": doSetLoadBalancerSecurityGroups,
|
|
4948
|
+
"InquiryPriceRefundLoadBalancer": doInquiryPriceRefundLoadBalancer,
|
|
4949
|
+
"DeleteListener": doDeleteListener,
|
|
4950
|
+
"SetSecurityGroupForLoadbalancers": doSetSecurityGroupForLoadbalancers,
|
|
4951
|
+
"RegisterTargetGroupInstances": doRegisterTargetGroupInstances,
|
|
4952
|
+
"SetLoadBalancerStartStatus": doSetLoadBalancerStartStatus,
|
|
4953
|
+
"ModifyListener": doModifyListener,
|
|
4954
|
+
"DeleteCustomizedConfig": doDeleteCustomizedConfig,
|
|
4955
|
+
"DescribeResources": doDescribeResources,
|
|
4956
|
+
"DescribeLBListeners": doDescribeLBListeners,
|
|
4640
4957
|
"BatchRegisterTargets": doBatchRegisterTargets,
|
|
4641
4958
|
"RegisterFunctionTargets": doRegisterFunctionTargets,
|
|
4642
|
-
"DescribeClsLogSet": doDescribeClsLogSet,
|
|
4643
|
-
"DescribeTaskStatus": doDescribeTaskStatus,
|
|
4644
4959
|
"DescribeCustomizedConfigList": doDescribeCustomizedConfigList,
|
|
4645
|
-
"ModifyTargetWeight": doModifyTargetWeight,
|
|
4646
|
-
"ModifyLoadBalancersProject": doModifyLoadBalancersProject,
|
|
4647
|
-
"DescribeCrossTargets": doDescribeCrossTargets,
|
|
4648
|
-
"SetCustomizedConfigForLoadBalancer": doSetCustomizedConfigForLoadBalancer,
|
|
4649
|
-
"DescribeTargetGroups": doDescribeTargetGroups,
|
|
4650
|
-
"DescribeRewrite": doDescribeRewrite,
|
|
4651
4960
|
"ModifyRule": doModifyRule,
|
|
4652
|
-
"DeleteRule": doDeleteRule,
|
|
4653
4961
|
"SetLoadBalancerClsLog": doSetLoadBalancerClsLog,
|
|
4654
|
-
"DescribeTargetGroupList": doDescribeTargetGroupList,
|
|
4655
4962
|
"ModifyBlockIPList": doModifyBlockIPList,
|
|
4656
|
-
"
|
|
4657
|
-
"DescribeLoadBalancerOverview": doDescribeLoadBalancerOverview,
|
|
4658
|
-
"DescribeTargets": doDescribeTargets,
|
|
4659
|
-
"DescribeIdleLoadBalancers": doDescribeIdleLoadBalancers,
|
|
4660
|
-
"MigrateClassicalLoadBalancers": doMigrateClassicalLoadBalancers,
|
|
4661
|
-
"RegisterTargetsWithClassicalLB": doRegisterTargetsWithClassicalLB,
|
|
4963
|
+
"DescribeRewrite": doDescribeRewrite,
|
|
4662
4964
|
"ModifyTargetPort": doModifyTargetPort,
|
|
4663
|
-
"
|
|
4965
|
+
"DeregisterFunctionTargets": doDeregisterFunctionTargets,
|
|
4664
4966
|
"ModifyLoadBalancerSla": doModifyLoadBalancerSla,
|
|
4665
|
-
"
|
|
4666
|
-
"ModifyLoadBalancerAttributes": doModifyLoadBalancerAttributes,
|
|
4667
|
-
"CreateClsLogSet": doCreateClsLogSet,
|
|
4967
|
+
"DescribeBlockIPTask": doDescribeBlockIPTask,
|
|
4668
4968
|
"DescribeClassicalLBByInstanceId": doDescribeClassicalLBByInstanceId,
|
|
4969
|
+
"DescribeLoadBalancerTraffic": doDescribeLoadBalancerTraffic,
|
|
4970
|
+
"DescribeCrossTargets": doDescribeCrossTargets,
|
|
4971
|
+
"DescribeTargetHealth": doDescribeTargetHealth,
|
|
4972
|
+
"ManualRewrite": doManualRewrite,
|
|
4973
|
+
"ModifyFunctionTargets": doModifyFunctionTargets,
|
|
4974
|
+
"DeleteLoadBalancerSnatIps": doDeleteLoadBalancerSnatIps,
|
|
4975
|
+
"CreateRule": doCreateRule,
|
|
4976
|
+
"AddCustomizedConfig": doAddCustomizedConfig,
|
|
4977
|
+
"ModifyDomain": doModifyDomain,
|
|
4978
|
+
"InquiryPriceRenewLoadBalancer": doInquiryPriceRenewLoadBalancer,
|
|
4979
|
+
"DescribeLoadBalancerOverview": doDescribeLoadBalancerOverview,
|
|
4980
|
+
"DeleteLoadBalancer": doDeleteLoadBalancer,
|
|
4981
|
+
"InquiryPriceCreateLoadBalancer": doInquiryPriceCreateLoadBalancer,
|
|
4982
|
+
"DeleteRule": doDeleteRule,
|
|
4983
|
+
"ModifyCustomizedConfig": doModifyCustomizedConfig,
|
|
4984
|
+
"DescribeTaskStatus": doDescribeTaskStatus,
|
|
4985
|
+
"DescribeTargetGroupList": doDescribeTargetGroupList,
|
|
4986
|
+
"DescribeTargetGroups": doDescribeTargetGroups,
|
|
4987
|
+
"ModifyTargetGroupAttribute": doModifyTargetGroupAttribute,
|
|
4988
|
+
"CreateClsLogSet": doCreateClsLogSet,
|
|
4989
|
+
"DescribeQuota": doDescribeQuota,
|
|
4990
|
+
"CreateLoadBalancer": doCreateLoadBalancer,
|
|
4991
|
+
"DescribeIdleLoadBalancers": doDescribeIdleLoadBalancers,
|
|
4992
|
+
"RegisterTargets": doRegisterTargets,
|
|
4993
|
+
"DescribeClassicalLBListeners": doDescribeClassicalLBListeners,
|
|
4669
4994
|
"ReplaceCertForLoadBalancers": doReplaceCertForLoadBalancers,
|
|
4995
|
+
"DeleteLoadBalancerListeners": doDeleteLoadBalancerListeners,
|
|
4996
|
+
"DeleteTargetGroups": doDeleteTargetGroups,
|
|
4997
|
+
"DescribeClassicalLBHealthStatus": doDescribeClassicalLBHealthStatus,
|
|
4998
|
+
"ModifyDomainAttributes": doModifyDomainAttributes,
|
|
4999
|
+
"DisassociateTargetGroups": doDisassociateTargetGroups,
|
|
5000
|
+
"DescribeLoadBalancers": doDescribeLoadBalancers,
|
|
5001
|
+
"DescribeBlockIPList": doDescribeBlockIPList,
|
|
5002
|
+
"DescribeClassicalLBTargets": doDescribeClassicalLBTargets,
|
|
5003
|
+
"CreateListener": doCreateListener,
|
|
5004
|
+
"DescribeLBOperateProtect": doDescribeLBOperateProtect,
|
|
5005
|
+
"DescribeClsLogSet": doDescribeClsLogSet,
|
|
5006
|
+
"ModifyTargetWeight": doModifyTargetWeight,
|
|
5007
|
+
"CreateTargetGroup": doCreateTargetGroup,
|
|
5008
|
+
"DescribeTargets": doDescribeTargets,
|
|
5009
|
+
"MigrateClassicalLoadBalancers": doMigrateClassicalLoadBalancers,
|
|
5010
|
+
"DescribeLoadBalancerListByCertId": doDescribeLoadBalancerListByCertId,
|
|
5011
|
+
"CreateLoadBalancerSnatIps": doCreateLoadBalancerSnatIps,
|
|
5012
|
+
"DescribeTargetGroupInstances": doDescribeTargetGroupInstances,
|
|
4670
5013
|
"CloneLoadBalancer": doCloneLoadBalancer,
|
|
4671
|
-
"ModifyTargetGroupInstancesPort": doModifyTargetGroupInstancesPort,
|
|
4672
|
-
"BatchModifyTargetWeight": doBatchModifyTargetWeight,
|
|
4673
|
-
"DeregisterFunctionTargets": doDeregisterFunctionTargets,
|
|
4674
|
-
"DescribeQuota": doDescribeQuota,
|
|
4675
|
-
"DescribeTargetHealth": doDescribeTargetHealth,
|
|
4676
5014
|
"BatchModifyTargetTag": doBatchModifyTargetTag,
|
|
4677
|
-
"ModifyTargetGroupInstancesWeight": doModifyTargetGroupInstancesWeight,
|
|
4678
|
-
"ManualRewrite": doManualRewrite,
|
|
4679
5015
|
|
|
4680
5016
|
}
|
|
4681
5017
|
|