tccli 3.0.1168.1__py2.py3-none-any.whl → 3.0.1169.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +9 -0
- tccli/services/cls/cls_client.py +224 -12
- tccli/services/cls/v20201016/api.json +331 -0
- tccli/services/cls/v20201016/examples.json +32 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/organization/organization_client.py +167 -8
- tccli/services/organization/v20210331/api.json +307 -0
- tccli/services/organization/v20210331/examples.json +24 -0
- tccli/services/pts/v20210728/api.json +10 -10
- tccli/services/pts/v20210728/examples.json +14 -14
- tccli/services/tcss/v20201101/api.json +156 -53
- tccli/services/tcss/v20201101/examples.json +39 -9
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +71 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/waf/v20180125/api.json +12 -6
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1169.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1169.1.dist-info}/RECORD +23 -23
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1169.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1169.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1169.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1169.1'
|
@@ -131,6 +131,15 @@
|
|
131
131
|
"required": false,
|
132
132
|
"type": "int"
|
133
133
|
},
|
134
|
+
{
|
135
|
+
"disabled": false,
|
136
|
+
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
137
|
+
"example": "无",
|
138
|
+
"member": "LogoParam",
|
139
|
+
"name": "LogoParam",
|
140
|
+
"required": false,
|
141
|
+
"type": "object"
|
142
|
+
},
|
134
143
|
{
|
135
144
|
"disabled": false,
|
136
145
|
"document": "返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。\n生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。",
|
tccli/services/cls/cls_client.py
CHANGED
@@ -173,6 +173,58 @@ def doDescribeExports(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
+
def doDescribeConsoleSharingList(args, parsed_globals):
|
177
|
+
g_param = parse_global_arg(parsed_globals)
|
178
|
+
|
179
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
+
cred = credential.CVMRoleCredential()
|
181
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
+
cred = credential.STSAssumeRoleCredential(
|
183
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
|
+
)
|
186
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
187
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
+
else:
|
189
|
+
cred = credential.Credential(
|
190
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
+
)
|
192
|
+
http_profile = HttpProfile(
|
193
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
+
reqMethod="POST",
|
195
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
+
)
|
198
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
+
if g_param[OptionsDefine.Language]:
|
200
|
+
profile.language = g_param[OptionsDefine.Language]
|
201
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
+
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
+
model = models.DescribeConsoleSharingListRequest()
|
206
|
+
model.from_json_string(json.dumps(args))
|
207
|
+
start_time = time.time()
|
208
|
+
while True:
|
209
|
+
rsp = client.DescribeConsoleSharingList(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
176
228
|
def doCreateIndex(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
@@ -2253,7 +2305,7 @@ def doCreateAlarmNotice(args, parsed_globals):
|
|
2253
2305
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2306
|
|
2255
2307
|
|
2256
|
-
def
|
2308
|
+
def doModifyCosRecharge(args, parsed_globals):
|
2257
2309
|
g_param = parse_global_arg(parsed_globals)
|
2258
2310
|
|
2259
2311
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2282,11 +2334,11 @@ def doPreviewKafkaRecharge(args, parsed_globals):
|
|
2282
2334
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
2335
|
client._sdkVersion += ("_CLI_" + __version__)
|
2284
2336
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
-
model = models.
|
2337
|
+
model = models.ModifyCosRechargeRequest()
|
2286
2338
|
model.from_json_string(json.dumps(args))
|
2287
2339
|
start_time = time.time()
|
2288
2340
|
while True:
|
2289
|
-
rsp = client.
|
2341
|
+
rsp = client.ModifyCosRecharge(model)
|
2290
2342
|
result = rsp.to_json_string()
|
2291
2343
|
try:
|
2292
2344
|
json_obj = json.loads(result)
|
@@ -2773,6 +2825,58 @@ def doGetAlarmLog(args, parsed_globals):
|
|
2773
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2774
2826
|
|
2775
2827
|
|
2828
|
+
def doCreateConsoleSharing(args, parsed_globals):
|
2829
|
+
g_param = parse_global_arg(parsed_globals)
|
2830
|
+
|
2831
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2832
|
+
cred = credential.CVMRoleCredential()
|
2833
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2834
|
+
cred = credential.STSAssumeRoleCredential(
|
2835
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2836
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2837
|
+
)
|
2838
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
2839
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2840
|
+
else:
|
2841
|
+
cred = credential.Credential(
|
2842
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2843
|
+
)
|
2844
|
+
http_profile = HttpProfile(
|
2845
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2846
|
+
reqMethod="POST",
|
2847
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2848
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2849
|
+
)
|
2850
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2851
|
+
if g_param[OptionsDefine.Language]:
|
2852
|
+
profile.language = g_param[OptionsDefine.Language]
|
2853
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2854
|
+
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2856
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
+
model = models.CreateConsoleSharingRequest()
|
2858
|
+
model.from_json_string(json.dumps(args))
|
2859
|
+
start_time = time.time()
|
2860
|
+
while True:
|
2861
|
+
rsp = client.CreateConsoleSharing(model)
|
2862
|
+
result = rsp.to_json_string()
|
2863
|
+
try:
|
2864
|
+
json_obj = json.loads(result)
|
2865
|
+
except TypeError as e:
|
2866
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2867
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2868
|
+
break
|
2869
|
+
cur_time = time.time()
|
2870
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2871
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2872
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2873
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2874
|
+
else:
|
2875
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2876
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2877
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
|
+
|
2879
|
+
|
2776
2880
|
def doDescribeMachineGroupConfigs(args, parsed_globals):
|
2777
2881
|
g_param = parse_global_arg(parsed_globals)
|
2778
2882
|
|
@@ -3189,7 +3293,7 @@ def doAddMachineGroupInfo(args, parsed_globals):
|
|
3189
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3294
|
|
3191
3295
|
|
3192
|
-
def
|
3296
|
+
def doDeleteConsoleSharing(args, parsed_globals):
|
3193
3297
|
g_param = parse_global_arg(parsed_globals)
|
3194
3298
|
|
3195
3299
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3218,11 +3322,11 @@ def doDescribeDataTransformInfo(args, parsed_globals):
|
|
3218
3322
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
3219
3323
|
client._sdkVersion += ("_CLI_" + __version__)
|
3220
3324
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3221
|
-
model = models.
|
3325
|
+
model = models.DeleteConsoleSharingRequest()
|
3222
3326
|
model.from_json_string(json.dumps(args))
|
3223
3327
|
start_time = time.time()
|
3224
3328
|
while True:
|
3225
|
-
rsp = client.
|
3329
|
+
rsp = client.DeleteConsoleSharing(model)
|
3226
3330
|
result = rsp.to_json_string()
|
3227
3331
|
try:
|
3228
3332
|
json_obj = json.loads(result)
|
@@ -3761,6 +3865,58 @@ def doSplitPartition(args, parsed_globals):
|
|
3761
3865
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
3866
|
|
3763
3867
|
|
3868
|
+
def doDescribeDataTransformInfo(args, parsed_globals):
|
3869
|
+
g_param = parse_global_arg(parsed_globals)
|
3870
|
+
|
3871
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3872
|
+
cred = credential.CVMRoleCredential()
|
3873
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3874
|
+
cred = credential.STSAssumeRoleCredential(
|
3875
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3876
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3877
|
+
)
|
3878
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3879
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3880
|
+
else:
|
3881
|
+
cred = credential.Credential(
|
3882
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3883
|
+
)
|
3884
|
+
http_profile = HttpProfile(
|
3885
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3886
|
+
reqMethod="POST",
|
3887
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3888
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3889
|
+
)
|
3890
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3891
|
+
if g_param[OptionsDefine.Language]:
|
3892
|
+
profile.language = g_param[OptionsDefine.Language]
|
3893
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3894
|
+
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
3895
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3896
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3897
|
+
model = models.DescribeDataTransformInfoRequest()
|
3898
|
+
model.from_json_string(json.dumps(args))
|
3899
|
+
start_time = time.time()
|
3900
|
+
while True:
|
3901
|
+
rsp = client.DescribeDataTransformInfo(model)
|
3902
|
+
result = rsp.to_json_string()
|
3903
|
+
try:
|
3904
|
+
json_obj = json.loads(result)
|
3905
|
+
except TypeError as e:
|
3906
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3907
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3908
|
+
break
|
3909
|
+
cur_time = time.time()
|
3910
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3911
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3912
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3913
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3914
|
+
else:
|
3915
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3916
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3917
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
|
+
|
3919
|
+
|
3764
3920
|
def doDescribeMachineGroups(args, parsed_globals):
|
3765
3921
|
g_param = parse_global_arg(parsed_globals)
|
3766
3922
|
|
@@ -4333,6 +4489,58 @@ def doDescribeShippers(args, parsed_globals):
|
|
4333
4489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4334
4490
|
|
4335
4491
|
|
4492
|
+
def doModifyConsoleSharing(args, parsed_globals):
|
4493
|
+
g_param = parse_global_arg(parsed_globals)
|
4494
|
+
|
4495
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4496
|
+
cred = credential.CVMRoleCredential()
|
4497
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4498
|
+
cred = credential.STSAssumeRoleCredential(
|
4499
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4500
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4501
|
+
)
|
4502
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
4503
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4504
|
+
else:
|
4505
|
+
cred = credential.Credential(
|
4506
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4507
|
+
)
|
4508
|
+
http_profile = HttpProfile(
|
4509
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4510
|
+
reqMethod="POST",
|
4511
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4512
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4513
|
+
)
|
4514
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4515
|
+
if g_param[OptionsDefine.Language]:
|
4516
|
+
profile.language = g_param[OptionsDefine.Language]
|
4517
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4518
|
+
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
4519
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4520
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4521
|
+
model = models.ModifyConsoleSharingRequest()
|
4522
|
+
model.from_json_string(json.dumps(args))
|
4523
|
+
start_time = time.time()
|
4524
|
+
while True:
|
4525
|
+
rsp = client.ModifyConsoleSharing(model)
|
4526
|
+
result = rsp.to_json_string()
|
4527
|
+
try:
|
4528
|
+
json_obj = json.loads(result)
|
4529
|
+
except TypeError as e:
|
4530
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4531
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4532
|
+
break
|
4533
|
+
cur_time = time.time()
|
4534
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4535
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4536
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4537
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4538
|
+
else:
|
4539
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4540
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4541
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
|
+
|
4543
|
+
|
4336
4544
|
def doDescribeDashboards(args, parsed_globals):
|
4337
4545
|
g_param = parse_global_arg(parsed_globals)
|
4338
4546
|
|
@@ -4385,7 +4593,7 @@ def doDescribeDashboards(args, parsed_globals):
|
|
4385
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4386
4594
|
|
4387
4595
|
|
4388
|
-
def
|
4596
|
+
def doPreviewKafkaRecharge(args, parsed_globals):
|
4389
4597
|
g_param = parse_global_arg(parsed_globals)
|
4390
4598
|
|
4391
4599
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4414,11 +4622,11 @@ def doModifyCosRecharge(args, parsed_globals):
|
|
4414
4622
|
client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
|
4415
4623
|
client._sdkVersion += ("_CLI_" + __version__)
|
4416
4624
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4417
|
-
model = models.
|
4625
|
+
model = models.PreviewKafkaRechargeRequest()
|
4418
4626
|
model.from_json_string(json.dumps(args))
|
4419
4627
|
start_time = time.time()
|
4420
4628
|
while True:
|
4421
|
-
rsp = client.
|
4629
|
+
rsp = client.PreviewKafkaRecharge(model)
|
4422
4630
|
result = rsp.to_json_string()
|
4423
4631
|
try:
|
4424
4632
|
json_obj = json.loads(result)
|
@@ -5082,6 +5290,7 @@ ACTION_MAP = {
|
|
5082
5290
|
"ModifyKafkaConsumer": doModifyKafkaConsumer,
|
5083
5291
|
"CreateKafkaRecharge": doCreateKafkaRecharge,
|
5084
5292
|
"DescribeExports": doDescribeExports,
|
5293
|
+
"DescribeConsoleSharingList": doDescribeConsoleSharingList,
|
5085
5294
|
"CreateIndex": doCreateIndex,
|
5086
5295
|
"QueryMetric": doQueryMetric,
|
5087
5296
|
"ModifyShipper": doModifyShipper,
|
@@ -5122,7 +5331,7 @@ ACTION_MAP = {
|
|
5122
5331
|
"ModifyDashboardSubscribe": doModifyDashboardSubscribe,
|
5123
5332
|
"DeleteIndex": doDeleteIndex,
|
5124
5333
|
"CreateAlarmNotice": doCreateAlarmNotice,
|
5125
|
-
"
|
5334
|
+
"ModifyCosRecharge": doModifyCosRecharge,
|
5126
5335
|
"ModifyConfigExtra": doModifyConfigExtra,
|
5127
5336
|
"ModifyAlarmShield": doModifyAlarmShield,
|
5128
5337
|
"SearchDashboardSubscribe": doSearchDashboardSubscribe,
|
@@ -5132,6 +5341,7 @@ ACTION_MAP = {
|
|
5132
5341
|
"CreateMachineGroup": doCreateMachineGroup,
|
5133
5342
|
"DeleteMachineGroupInfo": doDeleteMachineGroupInfo,
|
5134
5343
|
"GetAlarmLog": doGetAlarmLog,
|
5344
|
+
"CreateConsoleSharing": doCreateConsoleSharing,
|
5135
5345
|
"DescribeMachineGroupConfigs": doDescribeMachineGroupConfigs,
|
5136
5346
|
"DescribeShipperTasks": doDescribeShipperTasks,
|
5137
5347
|
"SearchCosRechargeInfo": doSearchCosRechargeInfo,
|
@@ -5140,7 +5350,7 @@ ACTION_MAP = {
|
|
5140
5350
|
"DeleteDashboardSubscribe": doDeleteDashboardSubscribe,
|
5141
5351
|
"CreateDataTransform": doCreateDataTransform,
|
5142
5352
|
"AddMachineGroupInfo": doAddMachineGroupInfo,
|
5143
|
-
"
|
5353
|
+
"DeleteConsoleSharing": doDeleteConsoleSharing,
|
5144
5354
|
"DescribeAlarmNotices": doDescribeAlarmNotices,
|
5145
5355
|
"DescribePartitions": doDescribePartitions,
|
5146
5356
|
"DeleteConfigExtra": doDeleteConfigExtra,
|
@@ -5151,6 +5361,7 @@ ACTION_MAP = {
|
|
5151
5361
|
"DescribeConfigMachineGroups": doDescribeConfigMachineGroups,
|
5152
5362
|
"DeleteExport": doDeleteExport,
|
5153
5363
|
"SplitPartition": doSplitPartition,
|
5364
|
+
"DescribeDataTransformInfo": doDescribeDataTransformInfo,
|
5154
5365
|
"DescribeMachineGroups": doDescribeMachineGroups,
|
5155
5366
|
"CreateConsumer": doCreateConsumer,
|
5156
5367
|
"ModifyTopic": doModifyTopic,
|
@@ -5162,8 +5373,9 @@ ACTION_MAP = {
|
|
5162
5373
|
"CheckRechargeKafkaServer": doCheckRechargeKafkaServer,
|
5163
5374
|
"ModifyAlarm": doModifyAlarm,
|
5164
5375
|
"DescribeShippers": doDescribeShippers,
|
5376
|
+
"ModifyConsoleSharing": doModifyConsoleSharing,
|
5165
5377
|
"DescribeDashboards": doDescribeDashboards,
|
5166
|
-
"
|
5378
|
+
"PreviewKafkaRecharge": doPreviewKafkaRecharge,
|
5167
5379
|
"ModifyConfig": doModifyConfig,
|
5168
5380
|
"UploadLog": doUploadLog,
|
5169
5381
|
"DeleteTopic": doDeleteTopic,
|