tccli-intl-en 3.0.1282.1__py2.py3-none-any.whl → 3.1.33.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/argument.py +1 -1
- tccli/services/__init__.py +15 -0
- tccli/services/advisor/advisor_client.py +2 -2
- tccli/services/ai3d/__init__.py +4 -0
- tccli/services/ai3d/ai3d_client.py +266 -0
- tccli/services/ai3d/v20250513/api.json +264 -0
- tccli/services/ai3d/v20250513/examples.json +20 -0
- tccli/services/aiart/aiart_client.py +1 -1
- tccli/services/ams/ams_client.py +4 -4
- tccli/services/antiddos/antiddos_client.py +70 -70
- tccli/services/apigateway/apigateway_client.py +93 -93
- tccli/services/apm/apm_client.py +783 -55
- tccli/services/apm/v20210622/api.json +3936 -1145
- tccli/services/apm/v20210622/examples.json +133 -23
- tccli/services/asr/asr_client.py +2 -2
- tccli/services/autoscaling/autoscaling_client.py +58 -58
- tccli/services/autoscaling/v20180419/api.json +77 -27
- tccli/services/batch/batch_client.py +28 -28
- tccli/services/bi/bi_client.py +24 -24
- tccli/services/billing/billing_client.py +42 -42
- tccli/services/cam/cam_client.py +81 -81
- tccli/services/captcha/captcha_client.py +1 -1
- tccli/services/car/car_client.py +33 -33
- tccli/services/cbs/cbs_client.py +38 -38
- tccli/services/ccc/ccc_client.py +70 -70
- tccli/services/ccc/v20200210/api.json +71 -26
- tccli/services/cdb/cdb_client.py +1262 -422
- tccli/services/cdb/v20170320/api.json +2166 -335
- tccli/services/cdb/v20170320/examples.json +126 -6
- tccli/services/cdc/cdc_client.py +20 -20
- tccli/services/cdn/cdn_client.py +44 -44
- tccli/services/cdn/v20180606/api.json +22 -22
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cdwdoris/cdwdoris_client.py +77 -77
- tccli/services/cdwpg/cdwpg_client.py +24 -24
- tccli/services/cdz/cdz_client.py +1 -1
- tccli/services/cfg/cfg_client.py +16 -16
- tccli/services/cfs/cfs_client.py +39 -39
- tccli/services/cfw/cfw_client.py +66 -66
- tccli/services/chdfs/chdfs_client.py +29 -29
- tccli/services/ciam/ciam_client.py +16 -16
- tccli/services/ckafka/ckafka_client.py +468 -76
- tccli/services/ckafka/v20190819/api.json +1009 -246
- tccli/services/ckafka/v20190819/examples.json +73 -23
- tccli/services/clb/clb_client.py +720 -384
- tccli/services/clb/v20180317/api.json +2255 -1017
- tccli/services/clb/v20180317/examples.json +184 -124
- tccli/services/cloudaudit/cloudaudit_client.py +18 -18
- tccli/services/cls/cls_client.py +86 -86
- tccli/services/cmq/cmq_client.py +2 -2
- tccli/services/config/config_client.py +6 -6
- tccli/services/controlcenter/controlcenter_client.py +225 -1
- tccli/services/controlcenter/v20230110/api.json +528 -5
- tccli/services/controlcenter/v20230110/examples.json +32 -0
- tccli/services/csip/csip_client.py +34 -34
- tccli/services/ctsdb/ctsdb_client.py +2 -2
- tccli/services/cvm/cvm_client.py +84 -84
- tccli/services/cvm/v20170312/api.json +175 -116
- tccli/services/cvm/v20170312/examples.json +93 -93
- tccli/services/cwp/cwp_client.py +465 -465
- tccli/services/cynosdb/cynosdb_client.py +154 -154
- tccli/services/dataintegration/dataintegration_client.py +1 -1
- tccli/services/dayu/dayu_client.py +103 -103
- tccli/services/dbbrain/dbbrain_client.py +42 -42
- tccli/services/dc/dc_client.py +18 -18
- tccli/services/dcdb/dcdb_client.py +62 -62
- tccli/services/dlc/dlc_client.py +109 -109
- tccli/services/dms/dms_client.py +2 -2
- tccli/services/dnspod/dnspod_client.py +40 -40
- tccli/services/domain/domain_client.py +24 -24
- tccli/services/dts/dts_client.py +83 -83
- tccli/services/eb/eb_client.py +26 -26
- tccli/services/ecdn/ecdn_client.py +15 -15
- tccli/services/ecm/ecm_client.py +124 -124
- tccli/services/eiam/eiam_client.py +40 -40
- tccli/services/emr/emr_client.py +77 -77
- tccli/services/emr/v20190103/api.json +6 -6
- tccli/services/es/es_client.py +21 -21
- tccli/services/facefusion/facefusion_client.py +3 -3
- tccli/services/faceid/faceid_client.py +19 -19
- tccli/services/faceid/v20180301/api.json +124 -46
- tccli/services/gaap/gaap_client.py +88 -88
- tccli/services/gme/gme_client.py +10 -10
- tccli/services/gpm/gpm_client.py +18 -18
- tccli/services/gse/gse_client.py +22 -22
- tccli/services/gwlb/gwlb_client.py +18 -18
- tccli/services/hunyuan/__init__.py +4 -0
- tccli/services/hunyuan/hunyuan_client.py +546 -0
- tccli/services/hunyuan/v20230901/api.json +628 -0
- tccli/services/hunyuan/v20230901/examples.json +60 -0
- tccli/services/iai/iai_client.py +29 -29
- tccli/services/iap/iap_client.py +6 -6
- tccli/services/ims/ims_client.py +1 -1
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +42 -42
- tccli/services/iotcloud/iotcloud_client.py +20 -20
- tccli/services/ip/ip_client.py +6 -6
- tccli/services/kms/kms_client.py +68 -68
- tccli/services/kms/v20190118/api.json +80 -3
- tccli/services/kms/v20190118/examples.json +3 -3
- tccli/services/lcic/lcic_client.py +53 -53
- tccli/services/lighthouse/lighthouse_client.py +434 -98
- tccli/services/lighthouse/v20200324/api.json +488 -0
- tccli/services/lighthouse/v20200324/examples.json +54 -0
- tccli/services/live/live_client.py +120 -120
- tccli/services/lke/lke_client.py +90 -90
- tccli/services/lkeap/lkeap_client.py +63 -7
- tccli/services/lkeap/v20240522/api.json +134 -0
- tccli/services/lkeap/v20240522/examples.json +21 -1
- tccli/services/mariadb/mariadb_client.py +50 -50
- tccli/services/mdc/mdc_client.py +18 -18
- tccli/services/mdl/mdl_client.py +225 -57
- tccli/services/mdl/v20200326/api.json +903 -59
- tccli/services/mdl/v20200326/examples.json +24 -0
- tccli/services/mdp/mdp_client.py +62 -62
- tccli/services/mdp/v20200527/api.json +191 -28
- tccli/services/message/message_client.py +1 -1
- tccli/services/mongodb/mongodb_client.py +1081 -129
- tccli/services/mongodb/v20190725/api.json +1798 -141
- tccli/services/mongodb/v20190725/examples.json +136 -0
- tccli/services/monitor/monitor_client.py +149 -149
- tccli/services/monitor/v20180724/api.json +8 -8
- tccli/services/mps/mps_client.py +1118 -278
- tccli/services/mps/v20190612/api.json +2117 -117
- tccli/services/mps/v20190612/examples.json +164 -62
- tccli/services/mqtt/__init__.py +4 -0
- tccli/services/mqtt/mqtt_client.py +1610 -0
- tccli/services/mqtt/v20240516/api.json +3057 -0
- tccli/services/mqtt/v20240516/examples.json +213 -0
- tccli/services/msp/msp_client.py +7 -7
- tccli/services/ocr/ocr_client.py +206 -38
- tccli/services/ocr/v20181119/api.json +726 -83
- tccli/services/ocr/v20181119/examples.json +36 -6
- tccli/services/omics/omics_client.py +20 -20
- tccli/services/organization/organization_client.py +116 -116
- tccli/services/postgres/postgres_client.py +91 -91
- tccli/services/privatedns/privatedns_client.py +31 -31
- tccli/services/pts/pts_client.py +48 -48
- tccli/services/quota/quota_client.py +5 -5
- tccli/services/rce/rce_client.py +1 -1
- tccli/services/redis/redis_client.py +109 -109
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/region/region_client.py +3 -3
- tccli/services/rum/rum_client.py +60 -60
- tccli/services/scf/scf_client.py +42 -42
- tccli/services/ses/ses_client.py +29 -29
- tccli/services/smh/__init__.py +4 -0
- tccli/services/smh/smh_client.py +714 -0
- tccli/services/smh/v20210712/api.json +1287 -0
- tccli/services/smh/v20210712/examples.json +85 -0
- tccli/services/sms/sms_client.py +18 -18
- tccli/services/sqlserver/sqlserver_client.py +139 -139
- tccli/services/ssl/ssl_client.py +38 -38
- tccli/services/ssm/ssm_client.py +24 -24
- tccli/services/sts/sts_client.py +5 -5
- tccli/services/tag/tag_client.py +30 -30
- tccli/services/tat/tat_client.py +19 -19
- tccli/services/tbaas/tbaas_client.py +4 -4
- tccli/services/tcaplusdb/tcaplusdb_client.py +52 -52
- tccli/services/tchd/tchd_client.py +1 -1
- tccli/services/tcmpp/tcmpp_client.py +104 -104
- tccli/services/tcr/tcr_client.py +76 -76
- tccli/services/tcsas/tcsas_client.py +2340 -268
- tccli/services/tcsas/v20250106/api.json +8410 -3423
- tccli/services/tcsas/v20250106/examples.json +308 -12
- tccli/services/tcss/tcss_client.py +330 -330
- tccli/services/tdid/tdid_client.py +48 -48
- tccli/services/tdmq/tdmq_client.py +2500 -372
- tccli/services/tdmq/v20200217/api.json +11607 -3958
- tccli/services/tdmq/v20200217/examples.json +562 -264
- tccli/services/tem/tem_client.py +56 -56
- tccli/services/teo/teo_client.py +466 -298
- tccli/services/teo/v20220901/api.json +324 -16
- tccli/services/teo/v20220901/examples.json +64 -22
- tccli/services/tione/tione_client.py +1 -1
- tccli/services/tiw/tiw_client.py +51 -51
- tccli/services/tke/tke_client.py +306 -138
- tccli/services/tke/v20180525/api.json +227 -0
- tccli/services/tke/v20180525/examples.json +24 -0
- tccli/services/tms/tms_client.py +1 -1
- tccli/services/tmt/tmt_client.py +1 -1
- tccli/services/trabbit/trabbit_client.py +29 -29
- tccli/services/trocket/__init__.py +4 -0
- tccli/services/trocket/trocket_client.py +2450 -0
- tccli/services/trocket/v20230308/api.json +6062 -0
- tccli/services/trocket/v20230308/examples.json +339 -0
- tccli/services/trro/trro_client.py +19 -19
- tccli/services/trtc/trtc_client.py +51 -51
- tccli/services/trtc/v20190722/api.json +15 -15
- tccli/services/tts/tts_client.py +1 -1
- tccli/services/vclm/vclm_client.py +2 -2
- tccli/services/vm/vm_client.py +4 -4
- tccli/services/vod/v20180717/api.json +2929 -296
- tccli/services/vod/v20180717/examples.json +40 -6
- tccli/services/vod/vod_client.py +459 -179
- tccli/services/vpc/v20170312/api.json +99 -29
- tccli/services/vpc/v20170312/examples.json +21 -13
- tccli/services/vpc/vpc_client.py +357 -301
- tccli/services/waf/waf_client.py +107 -107
- tccli/services/wedata/wedata_client.py +310 -310
- tccli/services/yunjing/yunjing_client.py +71 -71
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/RECORD +207 -187
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/top_level.txt +0 -0
tccli/services/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('-', '_')]:
|
|
@@ -42,18 +42,18 @@ def doRegisterTargets(args, parsed_globals):
|
|
|
42
42
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
43
43
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
44
44
|
)
|
|
45
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
45
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
46
46
|
if g_param[OptionsDefine.Language]:
|
|
47
47
|
profile.language = g_param[OptionsDefine.Language]
|
|
48
48
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -97,18 +97,18 @@ def doDescribeResources(args, parsed_globals):
|
|
|
97
97
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
98
98
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
99
99
|
)
|
|
100
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
100
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
101
101
|
if g_param[OptionsDefine.Language]:
|
|
102
102
|
profile.language = g_param[OptionsDefine.Language]
|
|
103
103
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -152,18 +152,18 @@ def doModifyFunctionTargets(args, parsed_globals):
|
|
|
152
152
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
153
153
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
154
154
|
)
|
|
155
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
155
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
156
156
|
if g_param[OptionsDefine.Language]:
|
|
157
157
|
profile.language = g_param[OptionsDefine.Language]
|
|
158
158
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -207,18 +207,18 @@ def doDescribeClassicalLBListeners(args, parsed_globals):
|
|
|
207
207
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
208
208
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
209
209
|
)
|
|
210
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
210
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
211
211
|
if g_param[OptionsDefine.Language]:
|
|
212
212
|
profile.language = g_param[OptionsDefine.Language]
|
|
213
213
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -262,18 +262,18 @@ def doInquiryPriceRefundLoadBalancer(args, parsed_globals):
|
|
|
262
262
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
263
263
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
264
264
|
)
|
|
265
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
265
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
266
266
|
if g_param[OptionsDefine.Language]:
|
|
267
267
|
profile.language = g_param[OptionsDefine.Language]
|
|
268
268
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -317,18 +317,18 @@ def doDescribeCustomizedConfigAssociateList(args, parsed_globals):
|
|
|
317
317
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
318
318
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
319
319
|
)
|
|
320
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
320
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
321
321
|
if g_param[OptionsDefine.Language]:
|
|
322
322
|
profile.language = g_param[OptionsDefine.Language]
|
|
323
323
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -372,18 +372,18 @@ def doDescribeBlockIPTask(args, parsed_globals):
|
|
|
372
372
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
373
373
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
374
374
|
)
|
|
375
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
375
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
376
376
|
if g_param[OptionsDefine.Language]:
|
|
377
377
|
profile.language = g_param[OptionsDefine.Language]
|
|
378
378
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -427,18 +427,18 @@ def doCreateListener(args, parsed_globals):
|
|
|
427
427
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
428
428
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
429
429
|
)
|
|
430
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
430
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
431
431
|
if g_param[OptionsDefine.Language]:
|
|
432
432
|
profile.language = g_param[OptionsDefine.Language]
|
|
433
433
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -482,18 +482,18 @@ def doDeleteLoadBalancerSnatIps(args, parsed_globals):
|
|
|
482
482
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
483
483
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
484
484
|
)
|
|
485
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
485
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
486
486
|
if g_param[OptionsDefine.Language]:
|
|
487
487
|
profile.language = g_param[OptionsDefine.Language]
|
|
488
488
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -537,18 +537,18 @@ def doDeleteListener(args, parsed_globals):
|
|
|
537
537
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
538
538
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
539
539
|
)
|
|
540
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
540
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
541
541
|
if g_param[OptionsDefine.Language]:
|
|
542
542
|
profile.language = g_param[OptionsDefine.Language]
|
|
543
543
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -592,18 +592,18 @@ def doInquiryPriceModifyLoadBalancer(args, parsed_globals):
|
|
|
592
592
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
593
593
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
594
594
|
)
|
|
595
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
595
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
596
596
|
if g_param[OptionsDefine.Language]:
|
|
597
597
|
profile.language = g_param[OptionsDefine.Language]
|
|
598
598
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -647,18 +647,18 @@ def doSetSecurityGroupForLoadbalancers(args, parsed_globals):
|
|
|
647
647
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
648
648
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
649
649
|
)
|
|
650
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
650
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
651
651
|
if g_param[OptionsDefine.Language]:
|
|
652
652
|
profile.language = g_param[OptionsDefine.Language]
|
|
653
653
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -702,18 +702,18 @@ def doBatchDeregisterTargets(args, parsed_globals):
|
|
|
702
702
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
703
703
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
704
704
|
)
|
|
705
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
705
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
706
706
|
if g_param[OptionsDefine.Language]:
|
|
707
707
|
profile.language = g_param[OptionsDefine.Language]
|
|
708
708
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -757,18 +757,18 @@ def doRegisterTargetGroupInstances(args, parsed_globals):
|
|
|
757
757
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
758
758
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
759
759
|
)
|
|
760
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
760
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
761
761
|
if g_param[OptionsDefine.Language]:
|
|
762
762
|
profile.language = g_param[OptionsDefine.Language]
|
|
763
763
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -812,18 +812,18 @@ def doCreateRule(args, parsed_globals):
|
|
|
812
812
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
813
813
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
814
814
|
)
|
|
815
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
815
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
816
816
|
if g_param[OptionsDefine.Language]:
|
|
817
817
|
profile.language = g_param[OptionsDefine.Language]
|
|
818
818
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -867,18 +867,18 @@ def doDescribeClassicalLBHealthStatus(args, parsed_globals):
|
|
|
867
867
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
868
868
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
869
869
|
)
|
|
870
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
870
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
871
871
|
if g_param[OptionsDefine.Language]:
|
|
872
872
|
profile.language = g_param[OptionsDefine.Language]
|
|
873
873
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -922,18 +922,18 @@ def doAutoRewrite(args, parsed_globals):
|
|
|
922
922
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
923
923
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
924
924
|
)
|
|
925
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
925
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
926
926
|
if g_param[OptionsDefine.Language]:
|
|
927
927
|
profile.language = g_param[OptionsDefine.Language]
|
|
928
928
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -977,18 +977,18 @@ def doDescribeLoadBalancerTraffic(args, parsed_globals):
|
|
|
977
977
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
978
978
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
979
979
|
)
|
|
980
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
980
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
981
981
|
if g_param[OptionsDefine.Language]:
|
|
982
982
|
profile.language = g_param[OptionsDefine.Language]
|
|
983
983
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1032,18 +1032,18 @@ def doModifyDomain(args, parsed_globals):
|
|
|
1032
1032
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1033
1033
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1034
1034
|
)
|
|
1035
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1035
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1036
1036
|
if g_param[OptionsDefine.Language]:
|
|
1037
1037
|
profile.language = g_param[OptionsDefine.Language]
|
|
1038
1038
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1087,18 +1087,18 @@ def doDeleteLoadBalancerListeners(args, parsed_globals):
|
|
|
1087
1087
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1088
1088
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1089
1089
|
)
|
|
1090
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1090
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1091
1091
|
if g_param[OptionsDefine.Language]:
|
|
1092
1092
|
profile.language = g_param[OptionsDefine.Language]
|
|
1093
1093
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1142,18 +1142,18 @@ def doInquiryPriceRenewLoadBalancer(args, parsed_globals):
|
|
|
1142
1142
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1143
1143
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1144
1144
|
)
|
|
1145
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1145
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1146
1146
|
if g_param[OptionsDefine.Language]:
|
|
1147
1147
|
profile.language = g_param[OptionsDefine.Language]
|
|
1148
1148
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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)
|
|
@@ -1197,7 +1197,7 @@ def doSetLoadBalancerSecurityGroups(args, parsed_globals):
|
|
|
1197
1197
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1198
1198
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1199
1199
|
)
|
|
1200
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1200
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1201
1201
|
if g_param[OptionsDefine.Language]:
|
|
1202
1202
|
profile.language = g_param[OptionsDefine.Language]
|
|
1203
1203
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -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('-', '_')]:
|
|
@@ -1252,18 +1252,18 @@ def doDeleteTargetGroups(args, parsed_globals):
|
|
|
1252
1252
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1253
1253
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1254
1254
|
)
|
|
1255
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1255
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1256
1256
|
if g_param[OptionsDefine.Language]:
|
|
1257
1257
|
profile.language = g_param[OptionsDefine.Language]
|
|
1258
1258
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1307,18 +1307,18 @@ def doSetLoadBalancerStartStatus(args, parsed_globals):
|
|
|
1307
1307
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1308
1308
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1309
1309
|
)
|
|
1310
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1310
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1311
1311
|
if g_param[OptionsDefine.Language]:
|
|
1312
1312
|
profile.language = g_param[OptionsDefine.Language]
|
|
1313
1313
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1362,18 +1362,18 @@ def doDeregisterTargetsFromClassicalLB(args, parsed_globals):
|
|
|
1362
1362
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1363
1363
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1364
1364
|
)
|
|
1365
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1365
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1366
1366
|
if g_param[OptionsDefine.Language]:
|
|
1367
1367
|
profile.language = g_param[OptionsDefine.Language]
|
|
1368
1368
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1417,18 +1417,18 @@ def doCreateLoadBalancer(args, parsed_globals):
|
|
|
1417
1417
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1418
1418
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1419
1419
|
)
|
|
1420
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1420
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1421
1421
|
if g_param[OptionsDefine.Language]:
|
|
1422
1422
|
profile.language = g_param[OptionsDefine.Language]
|
|
1423
1423
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1472,18 +1472,18 @@ def doDescribeLoadBalancerListByCertId(args, parsed_globals):
|
|
|
1472
1472
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1473
1473
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1474
1474
|
)
|
|
1475
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1475
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1476
1476
|
if g_param[OptionsDefine.Language]:
|
|
1477
1477
|
profile.language = g_param[OptionsDefine.Language]
|
|
1478
1478
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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)
|
|
@@ -1527,7 +1527,7 @@ def doModifyListener(args, parsed_globals):
|
|
|
1527
1527
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1528
1528
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1529
1529
|
)
|
|
1530
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1530
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1531
1531
|
if g_param[OptionsDefine.Language]:
|
|
1532
1532
|
profile.language = g_param[OptionsDefine.Language]
|
|
1533
1533
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -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('-', '_')]:
|
|
@@ -1582,18 +1582,18 @@ def doDeleteLoadBalancer(args, parsed_globals):
|
|
|
1582
1582
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1583
1583
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1584
1584
|
)
|
|
1585
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1585
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1586
1586
|
if g_param[OptionsDefine.Language]:
|
|
1587
1587
|
profile.language = g_param[OptionsDefine.Language]
|
|
1588
1588
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1637,18 +1637,18 @@ def doInquiryPriceCreateLoadBalancer(args, parsed_globals):
|
|
|
1637
1637
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1638
1638
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1639
1639
|
)
|
|
1640
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1640
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1641
1641
|
if g_param[OptionsDefine.Language]:
|
|
1642
1642
|
profile.language = g_param[OptionsDefine.Language]
|
|
1643
1643
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1692,18 +1692,18 @@ def doModifyDomainAttributes(args, parsed_globals):
|
|
|
1692
1692
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1693
1693
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1694
1694
|
)
|
|
1695
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1695
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1696
1696
|
if g_param[OptionsDefine.Language]:
|
|
1697
1697
|
profile.language = g_param[OptionsDefine.Language]
|
|
1698
1698
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1747,18 +1747,18 @@ def doDisassociateTargetGroups(args, parsed_globals):
|
|
|
1747
1747
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1748
1748
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1749
1749
|
)
|
|
1750
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1750
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1751
1751
|
if g_param[OptionsDefine.Language]:
|
|
1752
1752
|
profile.language = g_param[OptionsDefine.Language]
|
|
1753
1753
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1802,18 +1802,18 @@ def doCreateTargetGroup(args, parsed_globals):
|
|
|
1802
1802
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1803
1803
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1804
1804
|
)
|
|
1805
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1805
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1806
1806
|
if g_param[OptionsDefine.Language]:
|
|
1807
1807
|
profile.language = g_param[OptionsDefine.Language]
|
|
1808
1808
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1857,18 +1857,18 @@ def doDeleteRewrite(args, parsed_globals):
|
|
|
1857
1857
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1858
1858
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1859
1859
|
)
|
|
1860
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1860
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1861
1861
|
if g_param[OptionsDefine.Language]:
|
|
1862
1862
|
profile.language = g_param[OptionsDefine.Language]
|
|
1863
1863
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1912,18 +1912,18 @@ def doDescribeTargetGroupInstances(args, parsed_globals):
|
|
|
1912
1912
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1913
1913
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1914
1914
|
)
|
|
1915
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1915
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1916
1916
|
if g_param[OptionsDefine.Language]:
|
|
1917
1917
|
profile.language = g_param[OptionsDefine.Language]
|
|
1918
1918
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -1967,18 +1967,18 @@ def doAssociateTargetGroups(args, parsed_globals):
|
|
|
1967
1967
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1968
1968
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1969
1969
|
)
|
|
1970
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
1970
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
1971
1971
|
if g_param[OptionsDefine.Language]:
|
|
1972
1972
|
profile.language = g_param[OptionsDefine.Language]
|
|
1973
1973
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2022,18 +2022,18 @@ def doCreateLoadBalancerSnatIps(args, parsed_globals):
|
|
|
2022
2022
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2023
2023
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2024
2024
|
)
|
|
2025
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2025
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2026
2026
|
if g_param[OptionsDefine.Language]:
|
|
2027
2027
|
profile.language = g_param[OptionsDefine.Language]
|
|
2028
2028
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2077,18 +2077,18 @@ def doDescribeLoadBalancersDetail(args, parsed_globals):
|
|
|
2077
2077
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2078
2078
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2079
2079
|
)
|
|
2080
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2080
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2081
2081
|
if g_param[OptionsDefine.Language]:
|
|
2082
2082
|
profile.language = g_param[OptionsDefine.Language]
|
|
2083
2083
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2132,18 +2132,18 @@ def doDeregisterTargetGroupInstances(args, parsed_globals):
|
|
|
2132
2132
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2133
2133
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2134
2134
|
)
|
|
2135
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2135
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2136
2136
|
if g_param[OptionsDefine.Language]:
|
|
2137
2137
|
profile.language = g_param[OptionsDefine.Language]
|
|
2138
2138
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2187,18 +2187,18 @@ def doDescribeLoadBalancers(args, parsed_globals):
|
|
|
2187
2187
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2188
2188
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2189
2189
|
)
|
|
2190
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2190
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2191
2191
|
if g_param[OptionsDefine.Language]:
|
|
2192
2192
|
profile.language = g_param[OptionsDefine.Language]
|
|
2193
2193
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2242,18 +2242,18 @@ def doDescribeBlockIPList(args, parsed_globals):
|
|
|
2242
2242
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2243
2243
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2244
2244
|
)
|
|
2245
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2245
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2246
2246
|
if g_param[OptionsDefine.Language]:
|
|
2247
2247
|
profile.language = g_param[OptionsDefine.Language]
|
|
2248
2248
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2297,18 +2297,18 @@ def doDescribeListeners(args, parsed_globals):
|
|
|
2297
2297
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2298
2298
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2299
2299
|
)
|
|
2300
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2300
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2301
2301
|
if g_param[OptionsDefine.Language]:
|
|
2302
2302
|
profile.language = g_param[OptionsDefine.Language]
|
|
2303
2303
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2352,18 +2352,18 @@ def doDescribeClassicalLBTargets(args, parsed_globals):
|
|
|
2352
2352
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2353
2353
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2354
2354
|
)
|
|
2355
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2355
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2356
2356
|
if g_param[OptionsDefine.Language]:
|
|
2357
2357
|
profile.language = g_param[OptionsDefine.Language]
|
|
2358
2358
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2407,18 +2407,18 @@ def doCreateTopic(args, parsed_globals):
|
|
|
2407
2407
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2408
2408
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2409
2409
|
)
|
|
2410
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2410
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2411
2411
|
if g_param[OptionsDefine.Language]:
|
|
2412
2412
|
profile.language = g_param[OptionsDefine.Language]
|
|
2413
2413
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2462,18 +2462,18 @@ def doBatchRegisterTargets(args, parsed_globals):
|
|
|
2462
2462
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2463
2463
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2464
2464
|
)
|
|
2465
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2465
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2466
2466
|
if g_param[OptionsDefine.Language]:
|
|
2467
2467
|
profile.language = g_param[OptionsDefine.Language]
|
|
2468
2468
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2517,18 +2517,18 @@ def doRegisterFunctionTargets(args, parsed_globals):
|
|
|
2517
2517
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2518
2518
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2519
2519
|
)
|
|
2520
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2520
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2521
2521
|
if g_param[OptionsDefine.Language]:
|
|
2522
2522
|
profile.language = g_param[OptionsDefine.Language]
|
|
2523
2523
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2572,18 +2572,18 @@ def doDescribeClsLogSet(args, parsed_globals):
|
|
|
2572
2572
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2573
2573
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2574
2574
|
)
|
|
2575
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2575
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2576
2576
|
if g_param[OptionsDefine.Language]:
|
|
2577
2577
|
profile.language = g_param[OptionsDefine.Language]
|
|
2578
2578
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2627,18 +2627,18 @@ def doDescribeTaskStatus(args, parsed_globals):
|
|
|
2627
2627
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2628
2628
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2629
2629
|
)
|
|
2630
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2630
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2631
2631
|
if g_param[OptionsDefine.Language]:
|
|
2632
2632
|
profile.language = g_param[OptionsDefine.Language]
|
|
2633
2633
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2682,18 +2682,18 @@ def doDescribeCustomizedConfigList(args, parsed_globals):
|
|
|
2682
2682
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2683
2683
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2684
2684
|
)
|
|
2685
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2685
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2686
2686
|
if g_param[OptionsDefine.Language]:
|
|
2687
2687
|
profile.language = g_param[OptionsDefine.Language]
|
|
2688
2688
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2737,18 +2737,18 @@ def doModifyTargetWeight(args, parsed_globals):
|
|
|
2737
2737
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2738
2738
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2739
2739
|
)
|
|
2740
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2740
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2741
2741
|
if g_param[OptionsDefine.Language]:
|
|
2742
2742
|
profile.language = g_param[OptionsDefine.Language]
|
|
2743
2743
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2792,18 +2792,18 @@ def doModifyLoadBalancersProject(args, parsed_globals):
|
|
|
2792
2792
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2793
2793
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2794
2794
|
)
|
|
2795
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2795
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2796
2796
|
if g_param[OptionsDefine.Language]:
|
|
2797
2797
|
profile.language = g_param[OptionsDefine.Language]
|
|
2798
2798
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2847,18 +2847,18 @@ def doDescribeCrossTargets(args, parsed_globals):
|
|
|
2847
2847
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2848
2848
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2849
2849
|
)
|
|
2850
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2850
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2851
2851
|
if g_param[OptionsDefine.Language]:
|
|
2852
2852
|
profile.language = g_param[OptionsDefine.Language]
|
|
2853
2853
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2902,18 +2902,18 @@ def doSetCustomizedConfigForLoadBalancer(args, parsed_globals):
|
|
|
2902
2902
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2903
2903
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2904
2904
|
)
|
|
2905
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2905
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2906
2906
|
if g_param[OptionsDefine.Language]:
|
|
2907
2907
|
profile.language = g_param[OptionsDefine.Language]
|
|
2908
2908
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -2957,18 +2957,18 @@ def doDescribeTargetGroups(args, parsed_globals):
|
|
|
2957
2957
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2958
2958
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2959
2959
|
)
|
|
2960
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
2960
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
2961
2961
|
if g_param[OptionsDefine.Language]:
|
|
2962
2962
|
profile.language = g_param[OptionsDefine.Language]
|
|
2963
2963
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3012,18 +3012,18 @@ def doDescribeRewrite(args, parsed_globals):
|
|
|
3012
3012
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3013
3013
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3014
3014
|
)
|
|
3015
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3015
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3016
3016
|
if g_param[OptionsDefine.Language]:
|
|
3017
3017
|
profile.language = g_param[OptionsDefine.Language]
|
|
3018
3018
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3067,18 +3067,18 @@ def doModifyRule(args, parsed_globals):
|
|
|
3067
3067
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3068
3068
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3069
3069
|
)
|
|
3070
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3070
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3071
3071
|
if g_param[OptionsDefine.Language]:
|
|
3072
3072
|
profile.language = g_param[OptionsDefine.Language]
|
|
3073
3073
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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)
|
|
@@ -3122,7 +3122,7 @@ def doDeleteRule(args, parsed_globals):
|
|
|
3122
3122
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3123
3123
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3124
3124
|
)
|
|
3125
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3125
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3126
3126
|
if g_param[OptionsDefine.Language]:
|
|
3127
3127
|
profile.language = g_param[OptionsDefine.Language]
|
|
3128
3128
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -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('-', '_')]:
|
|
@@ -3177,18 +3177,73 @@ def doSetLoadBalancerClsLog(args, parsed_globals):
|
|
|
3177
3177
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3178
3178
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3179
3179
|
)
|
|
3180
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3180
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3181
3181
|
if g_param[OptionsDefine.Language]:
|
|
3182
3182
|
profile.language = g_param[OptionsDefine.Language]
|
|
3183
3183
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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)
|
|
@@ -3232,7 +3287,7 @@ def doDescribeTargetGroupList(args, parsed_globals):
|
|
|
3232
3287
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3233
3288
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3234
3289
|
)
|
|
3235
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3290
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3236
3291
|
if g_param[OptionsDefine.Language]:
|
|
3237
3292
|
profile.language = g_param[OptionsDefine.Language]
|
|
3238
3293
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -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('-', '_')]:
|
|
@@ -3287,18 +3342,18 @@ def doModifyBlockIPList(args, parsed_globals):
|
|
|
3287
3342
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3288
3343
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3289
3344
|
)
|
|
3290
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3345
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3291
3346
|
if g_param[OptionsDefine.Language]:
|
|
3292
3347
|
profile.language = g_param[OptionsDefine.Language]
|
|
3293
3348
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3294
3349
|
client = mod.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('-', '_')]:
|
|
@@ -3342,18 +3397,18 @@ def doDescribeLBListeners(args, parsed_globals):
|
|
|
3342
3397
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3343
3398
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3344
3399
|
)
|
|
3345
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3400
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3346
3401
|
if g_param[OptionsDefine.Language]:
|
|
3347
3402
|
profile.language = g_param[OptionsDefine.Language]
|
|
3348
3403
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3349
3404
|
client = mod.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('-', '_')]:
|
|
@@ -3397,18 +3452,18 @@ def doDescribeLoadBalancerOverview(args, parsed_globals):
|
|
|
3397
3452
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3398
3453
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3399
3454
|
)
|
|
3400
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3455
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3401
3456
|
if g_param[OptionsDefine.Language]:
|
|
3402
3457
|
profile.language = g_param[OptionsDefine.Language]
|
|
3403
3458
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
3404
3459
|
client = mod.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('-', '_')]:
|
|
@@ -3452,18 +3507,18 @@ def doDescribeTargets(args, parsed_globals):
|
|
|
3452
3507
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3453
3508
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3454
3509
|
)
|
|
3455
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3510
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3456
3511
|
if g_param[OptionsDefine.Language]:
|
|
3457
3512
|
profile.language = g_param[OptionsDefine.Language]
|
|
3458
3513
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3507,18 +3562,18 @@ def doDescribeIdleLoadBalancers(args, parsed_globals):
|
|
|
3507
3562
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3508
3563
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3509
3564
|
)
|
|
3510
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3565
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3511
3566
|
if g_param[OptionsDefine.Language]:
|
|
3512
3567
|
profile.language = g_param[OptionsDefine.Language]
|
|
3513
3568
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3562,18 +3617,18 @@ def doMigrateClassicalLoadBalancers(args, parsed_globals):
|
|
|
3562
3617
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3563
3618
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3564
3619
|
)
|
|
3565
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3620
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3566
3621
|
if g_param[OptionsDefine.Language]:
|
|
3567
3622
|
profile.language = g_param[OptionsDefine.Language]
|
|
3568
3623
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3617,18 +3672,18 @@ def doRegisterTargetsWithClassicalLB(args, parsed_globals):
|
|
|
3617
3672
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3618
3673
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3619
3674
|
)
|
|
3620
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3675
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3621
3676
|
if g_param[OptionsDefine.Language]:
|
|
3622
3677
|
profile.language = g_param[OptionsDefine.Language]
|
|
3623
3678
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3672,18 +3727,18 @@ def doModifyTargetPort(args, parsed_globals):
|
|
|
3672
3727
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3673
3728
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3674
3729
|
)
|
|
3675
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3730
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3676
3731
|
if g_param[OptionsDefine.Language]:
|
|
3677
3732
|
profile.language = g_param[OptionsDefine.Language]
|
|
3678
3733
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3727,18 +3782,18 @@ def doModifyTargetGroupAttribute(args, parsed_globals):
|
|
|
3727
3782
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3728
3783
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3729
3784
|
)
|
|
3730
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3785
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3731
3786
|
if g_param[OptionsDefine.Language]:
|
|
3732
3787
|
profile.language = g_param[OptionsDefine.Language]
|
|
3733
3788
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3782,18 +3837,18 @@ def doModifyLoadBalancerSla(args, parsed_globals):
|
|
|
3782
3837
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3783
3838
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3784
3839
|
)
|
|
3785
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3840
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3786
3841
|
if g_param[OptionsDefine.Language]:
|
|
3787
3842
|
profile.language = g_param[OptionsDefine.Language]
|
|
3788
3843
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3837,18 +3892,18 @@ def doDeregisterTargets(args, parsed_globals):
|
|
|
3837
3892
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3838
3893
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3839
3894
|
)
|
|
3840
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3895
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3841
3896
|
if g_param[OptionsDefine.Language]:
|
|
3842
3897
|
profile.language = g_param[OptionsDefine.Language]
|
|
3843
3898
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3892,18 +3947,18 @@ def doModifyLoadBalancerAttributes(args, parsed_globals):
|
|
|
3892
3947
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3893
3948
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3894
3949
|
)
|
|
3895
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
3950
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3896
3951
|
if g_param[OptionsDefine.Language]:
|
|
3897
3952
|
profile.language = g_param[OptionsDefine.Language]
|
|
3898
3953
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -3947,18 +4002,18 @@ def doCreateClsLogSet(args, parsed_globals):
|
|
|
3947
4002
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
3948
4003
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
3949
4004
|
)
|
|
3950
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4005
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
3951
4006
|
if g_param[OptionsDefine.Language]:
|
|
3952
4007
|
profile.language = g_param[OptionsDefine.Language]
|
|
3953
4008
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4002,18 +4057,18 @@ def doDescribeClassicalLBByInstanceId(args, parsed_globals):
|
|
|
4002
4057
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4003
4058
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4004
4059
|
)
|
|
4005
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4060
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4006
4061
|
if g_param[OptionsDefine.Language]:
|
|
4007
4062
|
profile.language = g_param[OptionsDefine.Language]
|
|
4008
4063
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4057,18 +4112,18 @@ def doReplaceCertForLoadBalancers(args, parsed_globals):
|
|
|
4057
4112
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4058
4113
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4059
4114
|
)
|
|
4060
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4115
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4061
4116
|
if g_param[OptionsDefine.Language]:
|
|
4062
4117
|
profile.language = g_param[OptionsDefine.Language]
|
|
4063
4118
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4112,18 +4167,18 @@ def doCloneLoadBalancer(args, parsed_globals):
|
|
|
4112
4167
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4113
4168
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4114
4169
|
)
|
|
4115
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4170
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4116
4171
|
if g_param[OptionsDefine.Language]:
|
|
4117
4172
|
profile.language = g_param[OptionsDefine.Language]
|
|
4118
4173
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4167,18 +4222,18 @@ def doModifyTargetGroupInstancesPort(args, parsed_globals):
|
|
|
4167
4222
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4168
4223
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4169
4224
|
)
|
|
4170
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4225
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4171
4226
|
if g_param[OptionsDefine.Language]:
|
|
4172
4227
|
profile.language = g_param[OptionsDefine.Language]
|
|
4173
4228
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4222,18 +4277,18 @@ def doBatchModifyTargetWeight(args, parsed_globals):
|
|
|
4222
4277
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4223
4278
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4224
4279
|
)
|
|
4225
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4280
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4226
4281
|
if g_param[OptionsDefine.Language]:
|
|
4227
4282
|
profile.language = g_param[OptionsDefine.Language]
|
|
4228
4283
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4277,18 +4332,18 @@ def doDeregisterFunctionTargets(args, parsed_globals):
|
|
|
4277
4332
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4278
4333
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4279
4334
|
)
|
|
4280
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4335
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4281
4336
|
if g_param[OptionsDefine.Language]:
|
|
4282
4337
|
profile.language = g_param[OptionsDefine.Language]
|
|
4283
4338
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4332,18 +4387,18 @@ def doDescribeQuota(args, parsed_globals):
|
|
|
4332
4387
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4333
4388
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4334
4389
|
)
|
|
4335
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4390
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4336
4391
|
if g_param[OptionsDefine.Language]:
|
|
4337
4392
|
profile.language = g_param[OptionsDefine.Language]
|
|
4338
4393
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4387,18 +4442,18 @@ def doDescribeTargetHealth(args, parsed_globals):
|
|
|
4387
4442
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4388
4443
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4389
4444
|
)
|
|
4390
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4445
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4391
4446
|
if g_param[OptionsDefine.Language]:
|
|
4392
4447
|
profile.language = g_param[OptionsDefine.Language]
|
|
4393
4448
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4442,18 +4497,18 @@ def doBatchModifyTargetTag(args, parsed_globals):
|
|
|
4442
4497
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4443
4498
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4444
4499
|
)
|
|
4445
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4500
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4446
4501
|
if g_param[OptionsDefine.Language]:
|
|
4447
4502
|
profile.language = g_param[OptionsDefine.Language]
|
|
4448
4503
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4497,18 +4552,18 @@ def doModifyTargetGroupInstancesWeight(args, parsed_globals):
|
|
|
4497
4552
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4498
4553
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4499
4554
|
)
|
|
4500
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4555
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4501
4556
|
if g_param[OptionsDefine.Language]:
|
|
4502
4557
|
profile.language = g_param[OptionsDefine.Language]
|
|
4503
4558
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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('-', '_')]:
|
|
@@ -4552,18 +4607,18 @@ def doManualRewrite(args, parsed_globals):
|
|
|
4552
4607
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4553
4608
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4554
4609
|
)
|
|
4555
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
4610
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
4556
4611
|
if g_param[OptionsDefine.Language]:
|
|
4557
4612
|
profile.language = g_param[OptionsDefine.Language]
|
|
4558
4613
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
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,8 +4637,283 @@ 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
|
-
|
|
4586
|
-
|
|
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 = {
|
|
4916
|
+
"v20180317": clb_client_v20180317,
|
|
4587
4917
|
|
|
4588
4918
|
}
|
|
4589
4919
|
|
|
@@ -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
|
|