tccli 3.0.1238.1__py2.py3-none-any.whl → 3.0.1239.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/cdb/v20170320/api.json +730 -649
- tccli/services/cdb/v20170320/examples.json +37 -37
- tccli/services/cdwdoris/v20211228/api.json +16 -7
- tccli/services/chdfs/v20201112/api.json +95 -78
- tccli/services/chdfs/v20201112/examples.json +14 -14
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +370 -365
- tccli/services/cynosdb/v20190107/examples.json +39 -39
- tccli/services/dbbrain/v20191016/api.json +206 -188
- tccli/services/dbbrain/v20191016/examples.json +10 -10
- tccli/services/dbbrain/v20210527/api.json +274 -267
- tccli/services/dbbrain/v20210527/examples.json +25 -25
- tccli/services/dc/v20180410/api.json +101 -41
- tccli/services/dc/v20180410/examples.json +5 -5
- tccli/services/dts/v20180330/api.json +9 -9
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +28 -28
- tccli/services/dts/v20211206/examples.json +4 -4
- tccli/services/eb/v20210416/api.json +2 -2
- tccli/services/eb/v20210416/examples.json +2 -2
- tccli/services/ecm/v20190719/api.json +267 -224
- tccli/services/ecm/v20190719/examples.json +21 -21
- tccli/services/ess/v20201111/api.json +21 -3
- tccli/services/essbasic/v20210526/api.json +18 -0
- tccli/services/facefusion/v20220927/api.json +2 -2
- tccli/services/gaap/v20180529/api.json +22 -22
- tccli/services/hunyuan/v20230901/api.json +21 -2
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +4 -4
- tccli/services/live/v20180801/api.json +60 -60
- tccli/services/live/v20180801/examples.json +37 -37
- tccli/services/mongodb/v20180408/api.json +104 -104
- tccli/services/mongodb/v20190725/api.json +116 -103
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/sqlserver/v20180328/api.json +611 -450
- tccli/services/sqlserver/v20180328/examples.json +16 -16
- tccli/services/tbaas/v20180416/api.json +47 -49
- tccli/services/tbaas/v20180416/examples.json +4 -4
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +61 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/trocket/trocket_client.py +171 -12
- tccli/services/trocket/v20230308/api.json +524 -0
- tccli/services/trocket/v20230308/examples.json +24 -0
- tccli/services/tsf/v20180326/api.json +39 -37
- tccli/services/tsf/v20180326/examples.json +16 -16
- tccli/services/vod/v20180717/api.json +21 -3
- tccli/services/vod/v20180717/examples.json +2 -2
- tccli/services/vpc/v20170312/api.json +3 -3
- tccli/services/vpc/v20170312/examples.json +4 -4
- {tccli-3.0.1238.1.dist-info → tccli-3.0.1239.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1238.1.dist-info → tccli-3.0.1239.1.dist-info}/RECORD +58 -58
- {tccli-3.0.1238.1.dist-info → tccli-3.0.1239.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1238.1.dist-info → tccli-3.0.1239.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1238.1.dist-info → tccli-3.0.1239.1.dist-info}/license_files/LICENSE +0 -0
@@ -952,6 +952,13 @@
|
|
952
952
|
"output": "ResetRocketMQConsumerOffSetResponse",
|
953
953
|
"status": "online"
|
954
954
|
},
|
955
|
+
"RetryRocketMQDlqMessage": {
|
956
|
+
"document": "重发RocketMQ死信消息",
|
957
|
+
"input": "RetryRocketMQDlqMessageRequest",
|
958
|
+
"name": "重发RocketMQ死信消息",
|
959
|
+
"output": "RetryRocketMQDlqMessageResponse",
|
960
|
+
"status": "online"
|
961
|
+
},
|
955
962
|
"RewindCmqQueue": {
|
956
963
|
"document": "回溯cmq队列",
|
957
964
|
"input": "RewindCmqQueueRequest",
|
@@ -16979,6 +16986,60 @@
|
|
16979
16986
|
],
|
16980
16987
|
"usage": "both"
|
16981
16988
|
},
|
16989
|
+
"RetryRocketMQDlqMessageRequest": {
|
16990
|
+
"document": "RetryRocketMQDlqMessage请求参数结构体",
|
16991
|
+
"members": [
|
16992
|
+
{
|
16993
|
+
"disabled": false,
|
16994
|
+
"document": "集群id",
|
16995
|
+
"example": "rocketmq-a52qova7x97b",
|
16996
|
+
"member": "string",
|
16997
|
+
"name": "ClusterId",
|
16998
|
+
"required": true,
|
16999
|
+
"type": "string"
|
17000
|
+
},
|
17001
|
+
{
|
17002
|
+
"disabled": false,
|
17003
|
+
"document": "命名空间名称",
|
17004
|
+
"example": "test_ns",
|
17005
|
+
"member": "string",
|
17006
|
+
"name": "NamespaceId",
|
17007
|
+
"required": true,
|
17008
|
+
"type": "string"
|
17009
|
+
},
|
17010
|
+
{
|
17011
|
+
"disabled": false,
|
17012
|
+
"document": "group名称",
|
17013
|
+
"example": "test_group",
|
17014
|
+
"member": "string",
|
17015
|
+
"name": "GroupName",
|
17016
|
+
"required": true,
|
17017
|
+
"type": "string"
|
17018
|
+
},
|
17019
|
+
{
|
17020
|
+
"disabled": false,
|
17021
|
+
"document": "死信消息ID",
|
17022
|
+
"example": "[\"01963F0B14BAF09F27077D244F00000000\"]",
|
17023
|
+
"member": "string",
|
17024
|
+
"name": "MessageIds",
|
17025
|
+
"required": true,
|
17026
|
+
"type": "list"
|
17027
|
+
}
|
17028
|
+
],
|
17029
|
+
"type": "object"
|
17030
|
+
},
|
17031
|
+
"RetryRocketMQDlqMessageResponse": {
|
17032
|
+
"document": "RetryRocketMQDlqMessage返回参数结构体",
|
17033
|
+
"members": [
|
17034
|
+
{
|
17035
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
17036
|
+
"member": "string",
|
17037
|
+
"name": "RequestId",
|
17038
|
+
"type": "string"
|
17039
|
+
}
|
17040
|
+
],
|
17041
|
+
"type": "object"
|
17042
|
+
},
|
16982
17043
|
"RewindCmqQueueRequest": {
|
16983
17044
|
"document": "RewindCmqQueue请求参数结构体",
|
16984
17045
|
"members": [
|
@@ -1112,6 +1112,14 @@
|
|
1112
1112
|
"title": "重置消费位点"
|
1113
1113
|
}
|
1114
1114
|
],
|
1115
|
+
"RetryRocketMQDlqMessage": [
|
1116
|
+
{
|
1117
|
+
"document": "",
|
1118
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RetryRocketMQDlqMessage\n<公共请求参数>\n\n{\n \"NamespaceId\": \"test_ns\",\n \"ClusterId\": \"rocketmq-a52qova7x97b\",\n \"GroupName\": \"test_group\",\n \"MessageIds\": [\n \"01963F0B14BAF09F27077D244F00000000\"\n ]\n}",
|
1119
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"90760e40-5db2-4150-807f-5760c2a03804\"\n }\n}",
|
1120
|
+
"title": "重发死信消息"
|
1121
|
+
}
|
1122
|
+
],
|
1115
1123
|
"RewindCmqQueue": [
|
1116
1124
|
{
|
1117
1125
|
"document": "",
|
@@ -225,6 +225,58 @@ def doModifyMQTTTopic(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
+
def doResendDeadLetterMessage(args, parsed_globals):
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
230
|
+
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
232
|
+
cred = credential.CVMRoleCredential()
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
|
+
)
|
238
|
+
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):
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
240
|
+
else:
|
241
|
+
cred = credential.Credential(
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
243
|
+
)
|
244
|
+
http_profile = HttpProfile(
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
246
|
+
reqMethod="POST",
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
249
|
+
)
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
251
|
+
if g_param[OptionsDefine.Language]:
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
254
|
+
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.ResendDeadLetterMessageRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.ResendDeadLetterMessage(model)
|
262
|
+
result = rsp.to_json_string()
|
263
|
+
try:
|
264
|
+
json_obj = json.loads(result)
|
265
|
+
except TypeError as e:
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
268
|
+
break
|
269
|
+
cur_time = time.time()
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
274
|
+
else:
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
|
+
|
279
|
+
|
228
280
|
def doDeleteMQTTUser(args, parsed_globals):
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
230
282
|
|
@@ -537,7 +589,7 @@ def doDescribeMQTTProductSKUList(args, parsed_globals):
|
|
537
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
590
|
|
539
591
|
|
540
|
-
def
|
592
|
+
def doDescribeMessage(args, parsed_globals):
|
541
593
|
g_param = parse_global_arg(parsed_globals)
|
542
594
|
|
543
595
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -566,11 +618,63 @@ def doDescribeMQTTUserList(args, parsed_globals):
|
|
566
618
|
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
567
619
|
client._sdkVersion += ("_CLI_" + __version__)
|
568
620
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
-
model = models.
|
621
|
+
model = models.DescribeMessageRequest()
|
570
622
|
model.from_json_string(json.dumps(args))
|
571
623
|
start_time = time.time()
|
572
624
|
while True:
|
573
|
-
rsp = client.
|
625
|
+
rsp = client.DescribeMessage(model)
|
626
|
+
result = rsp.to_json_string()
|
627
|
+
try:
|
628
|
+
json_obj = json.loads(result)
|
629
|
+
except TypeError as e:
|
630
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
631
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
632
|
+
break
|
633
|
+
cur_time = time.time()
|
634
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
635
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
636
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
637
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
638
|
+
else:
|
639
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
640
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
641
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
|
+
|
643
|
+
|
644
|
+
def doDeleteMQTTInstance(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
|
+
)
|
654
|
+
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):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.DeleteMQTTInstanceRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.DeleteMQTTInstance(model)
|
574
678
|
result = rsp.to_json_string()
|
575
679
|
try:
|
576
680
|
json_obj = json.loads(result)
|
@@ -953,7 +1057,7 @@ def doDeleteRole(args, parsed_globals):
|
|
953
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
1058
|
|
955
1059
|
|
956
|
-
def
|
1060
|
+
def doDescribeMQTTUserList(args, parsed_globals):
|
957
1061
|
g_param = parse_global_arg(parsed_globals)
|
958
1062
|
|
959
1063
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -982,11 +1086,11 @@ def doDeleteMQTTInstance(args, parsed_globals):
|
|
982
1086
|
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
983
1087
|
client._sdkVersion += ("_CLI_" + __version__)
|
984
1088
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
985
|
-
model = models.
|
1089
|
+
model = models.DescribeMQTTUserListRequest()
|
986
1090
|
model.from_json_string(json.dumps(args))
|
987
1091
|
start_time = time.time()
|
988
1092
|
while True:
|
989
|
-
rsp = client.
|
1093
|
+
rsp = client.DescribeMQTTUserList(model)
|
990
1094
|
result = rsp.to_json_string()
|
991
1095
|
try:
|
992
1096
|
json_obj = json.loads(result)
|
@@ -1421,6 +1525,58 @@ def doCreateTopic(args, parsed_globals):
|
|
1421
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1526
|
|
1423
1527
|
|
1528
|
+
def doCreateInstance(args, parsed_globals):
|
1529
|
+
g_param = parse_global_arg(parsed_globals)
|
1530
|
+
|
1531
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1532
|
+
cred = credential.CVMRoleCredential()
|
1533
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1534
|
+
cred = credential.STSAssumeRoleCredential(
|
1535
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1536
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1537
|
+
)
|
1538
|
+
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):
|
1539
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1540
|
+
else:
|
1541
|
+
cred = credential.Credential(
|
1542
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1543
|
+
)
|
1544
|
+
http_profile = HttpProfile(
|
1545
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1546
|
+
reqMethod="POST",
|
1547
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1548
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1549
|
+
)
|
1550
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1551
|
+
if g_param[OptionsDefine.Language]:
|
1552
|
+
profile.language = g_param[OptionsDefine.Language]
|
1553
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1554
|
+
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
1555
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1556
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1557
|
+
model = models.CreateInstanceRequest()
|
1558
|
+
model.from_json_string(json.dumps(args))
|
1559
|
+
start_time = time.time()
|
1560
|
+
while True:
|
1561
|
+
rsp = client.CreateInstance(model)
|
1562
|
+
result = rsp.to_json_string()
|
1563
|
+
try:
|
1564
|
+
json_obj = json.loads(result)
|
1565
|
+
except TypeError as e:
|
1566
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1567
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1568
|
+
break
|
1569
|
+
cur_time = time.time()
|
1570
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1571
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1572
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1573
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1574
|
+
else:
|
1575
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1576
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1577
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
|
+
|
1579
|
+
|
1424
1580
|
def doDescribeMQTTTopicList(args, parsed_globals):
|
1425
1581
|
g_param = parse_global_arg(parsed_globals)
|
1426
1582
|
|
@@ -1577,7 +1733,7 @@ def doCreateMQTTTopic(args, parsed_globals):
|
|
1577
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
1734
|
|
1579
1735
|
|
1580
|
-
def
|
1736
|
+
def doDescribeMessageList(args, parsed_globals):
|
1581
1737
|
g_param = parse_global_arg(parsed_globals)
|
1582
1738
|
|
1583
1739
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1606,11 +1762,11 @@ def doCreateInstance(args, parsed_globals):
|
|
1606
1762
|
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
1763
|
client._sdkVersion += ("_CLI_" + __version__)
|
1608
1764
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
-
model = models.
|
1765
|
+
model = models.DescribeMessageListRequest()
|
1610
1766
|
model.from_json_string(json.dumps(args))
|
1611
1767
|
start_time = time.time()
|
1612
1768
|
while True:
|
1613
|
-
rsp = client.
|
1769
|
+
rsp = client.DescribeMessageList(model)
|
1614
1770
|
result = rsp.to_json_string()
|
1615
1771
|
try:
|
1616
1772
|
json_obj = json.loads(result)
|
@@ -2632,13 +2788,15 @@ ACTION_MAP = {
|
|
2632
2788
|
"DescribeMessageTrace": doDescribeMessageTrace,
|
2633
2789
|
"ModifyTopic": doModifyTopic,
|
2634
2790
|
"ModifyMQTTTopic": doModifyMQTTTopic,
|
2791
|
+
"ResendDeadLetterMessage": doResendDeadLetterMessage,
|
2635
2792
|
"DeleteMQTTUser": doDeleteMQTTUser,
|
2636
2793
|
"CreateRole": doCreateRole,
|
2637
2794
|
"ModifyMQTTUser": doModifyMQTTUser,
|
2638
2795
|
"DeleteInstance": doDeleteInstance,
|
2639
2796
|
"CreateConsumerGroup": doCreateConsumerGroup,
|
2640
2797
|
"DescribeMQTTProductSKUList": doDescribeMQTTProductSKUList,
|
2641
|
-
"
|
2798
|
+
"DescribeMessage": doDescribeMessage,
|
2799
|
+
"DeleteMQTTInstance": doDeleteMQTTInstance,
|
2642
2800
|
"DeleteMQTTInsPublicEndpoint": doDeleteMQTTInsPublicEndpoint,
|
2643
2801
|
"DescribeRoleList": doDescribeRoleList,
|
2644
2802
|
"DeleteConsumerGroup": doDeleteConsumerGroup,
|
@@ -2646,7 +2804,7 @@ ACTION_MAP = {
|
|
2646
2804
|
"ModifyConsumerGroup": doModifyConsumerGroup,
|
2647
2805
|
"DescribeMQTTInsVPCEndpoints": doDescribeMQTTInsVPCEndpoints,
|
2648
2806
|
"DeleteRole": doDeleteRole,
|
2649
|
-
"
|
2807
|
+
"DescribeMQTTUserList": doDescribeMQTTUserList,
|
2650
2808
|
"DescribeProductSKUs": doDescribeProductSKUs,
|
2651
2809
|
"ImportSourceClusterConsumerGroups": doImportSourceClusterConsumerGroups,
|
2652
2810
|
"ModifyMQTTInstance": doModifyMQTTInstance,
|
@@ -2655,10 +2813,11 @@ ACTION_MAP = {
|
|
2655
2813
|
"ModifyMQTTInsPublicEndpoint": doModifyMQTTInsPublicEndpoint,
|
2656
2814
|
"DescribeConsumerGroup": doDescribeConsumerGroup,
|
2657
2815
|
"CreateTopic": doCreateTopic,
|
2816
|
+
"CreateInstance": doCreateInstance,
|
2658
2817
|
"DescribeMQTTTopicList": doDescribeMQTTTopicList,
|
2659
2818
|
"DescribeMQTTInstance": doDescribeMQTTInstance,
|
2660
2819
|
"CreateMQTTTopic": doCreateMQTTTopic,
|
2661
|
-
"
|
2820
|
+
"DescribeMessageList": doDescribeMessageList,
|
2662
2821
|
"DeleteMQTTTopic": doDeleteMQTTTopic,
|
2663
2822
|
"DescribeInstance": doDescribeInstance,
|
2664
2823
|
"DeleteTopic": doDeleteTopic,
|