tccli 3.0.1237.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/__init__.py +3 -0
- tccli/services/aca/__init__.py +4 -0
- tccli/services/aca/aca_client.py +578 -0
- tccli/services/aca/v20210323/api.json +3715 -0
- tccli/services/aca/v20210323/examples.json +69 -0
- tccli/services/aiart/v20221229/api.json +18 -9
- tccli/services/aiart/v20221229/examples.json +2 -2
- tccli/services/apm/v20210622/api.json +10 -7
- tccli/services/batch/v20170312/api.json +641 -566
- tccli/services/batch/v20170312/examples.json +7 -7
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/bpaas/v20181217/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +32 -30
- tccli/services/cam/v20190116/examples.json +4 -4
- tccli/services/ccc/v20200210/api.json +31 -1
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +944 -856
- tccli/services/cdb/v20170320/examples.json +47 -47
- tccli/services/cdwch/v20200915/api.json +6 -6
- tccli/services/cdwdoris/v20211228/api.json +32 -12
- tccli/services/cdwdoris/v20211228/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +8 -13
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +84 -84
- tccli/services/cfs/v20190719/examples.json +6 -6
- tccli/services/chdfs/v20201112/api.json +113 -95
- tccli/services/chdfs/v20201112/examples.json +16 -16
- tccli/services/clb/v20180317/api.json +186 -164
- tccli/services/cloudapp/v20220530/api.json +1 -1
- tccli/services/cloudapp/v20220530/examples.json +3 -3
- tccli/services/cloudaudit/v20190319/api.json +21 -17
- tccli/services/cloudaudit/v20190319/examples.json +3 -3
- tccli/services/cls/v20201016/api.json +21 -21
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/config/v20220802/api.json +2 -0
- tccli/services/config/v20220802/examples.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/dcdb/v20180411/api.json +390 -387
- tccli/services/dcdb/v20180411/examples.json +14 -14
- tccli/services/dlc/v20210125/api.json +162 -7
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/domain/v20180808/api.json +37 -37
- tccli/services/domain/v20180808/examples.json +16 -10
- tccli/services/dsgc/v20190723/api.json +1796 -1623
- tccli/services/dsgc/v20190723/examples.json +217 -211
- tccli/services/dts/v20180330/api.json +152 -115
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +83 -72
- tccli/services/dts/v20211206/examples.json +5 -5
- tccli/services/eb/v20210416/api.json +2 -2
- tccli/services/eb/v20210416/examples.json +2 -2
- tccli/services/ecm/v20190719/api.json +273 -230
- tccli/services/ecm/v20190719/examples.json +21 -21
- tccli/services/emr/v20190103/api.json +80 -20
- tccli/services/ess/ess_client.py +61 -8
- tccli/services/ess/v20201111/api.json +287 -39
- tccli/services/ess/v20201111/examples.json +11 -3
- tccli/services/essbasic/essbasic_client.py +167 -8
- tccli/services/essbasic/v20210526/api.json +545 -54
- tccli/services/essbasic/v20210526/examples.json +46 -16
- tccli/services/facefusion/v20220927/api.json +14 -3
- tccli/services/fmu/v20191213/api.json +8 -8
- tccli/services/gaap/v20180529/api.json +222 -231
- tccli/services/hai/v20230812/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +21 -2
- tccli/services/iss/v20230517/api.json +11 -11
- tccli/services/iss/v20230517/examples.json +31 -31
- tccli/services/keewidb/v20220308/api.json +92 -82
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +22 -22
- tccli/services/lighthouse/v20200324/examples.json +5 -5
- tccli/services/live/v20180801/api.json +87 -69
- tccli/services/live/v20180801/examples.json +37 -37
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/mariadb/v20170312/api.json +285 -263
- tccli/services/mariadb/v20170312/examples.json +12 -12
- tccli/services/mongodb/v20180408/api.json +104 -104
- tccli/services/mongodb/v20190725/api.json +116 -103
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +222 -0
- tccli/services/monitor/v20180724/examples.json +16 -0
- tccli/services/mps/mps_client.py +228 -16
- tccli/services/mps/v20190612/api.json +385 -23
- tccli/services/mps/v20190612/examples.json +32 -0
- tccli/services/msp/v20180319/api.json +2 -2
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/omics/v20221128/api.json +14 -2
- tccli/services/organization/v20210331/api.json +45 -18
- tccli/services/privatedns/v20201028/api.json +90 -81
- tccli/services/privatedns/v20201028/examples.json +18 -18
- tccli/services/redis/redis_client.py +106 -0
- tccli/services/redis/v20180412/api.json +179 -17
- tccli/services/redis/v20180412/examples.json +16 -0
- tccli/services/region/v20220627/api.json +5 -3
- tccli/services/region/v20220627/examples.json +1 -1
- tccli/services/sqlserver/v20180328/api.json +611 -450
- tccli/services/sqlserver/v20180328/examples.json +16 -16
- tccli/services/ssl/v20191205/api.json +6 -4
- tccli/services/tag/v20180813/api.json +4 -5
- tccli/services/tbaas/v20180416/api.json +47 -49
- tccli/services/tbaas/v20180416/examples.json +4 -4
- tccli/services/tcb/v20180608/api.json +36 -16
- tccli/services/tdmq/tdmq_client.py +106 -0
- tccli/services/tdmq/v20200217/api.json +125 -1
- tccli/services/tdmq/v20200217/examples.json +17 -1
- tccli/services/teo/teo_client.py +485 -8
- tccli/services/teo/v20220901/api.json +837 -39
- tccli/services/teo/v20220901/examples.json +108 -0
- tccli/services/thpc/v20211109/api.json +32 -34
- tccli/services/thpc/v20220401/api.json +31 -33
- tccli/services/thpc/v20230321/api.json +55 -57
- tccli/services/thpc/v20230321/examples.json +1 -1
- tccli/services/tiia/v20190529/api.json +307 -293
- tccli/services/tiia/v20190529/examples.json +41 -41
- tccli/services/tione/v20211111/api.json +4 -4
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/trocket/trocket_client.py +224 -12
- tccli/services/trocket/v20230308/api.json +787 -147
- tccli/services/trocket/v20230308/examples.json +38 -0
- tccli/services/tse/v20201207/api.json +188 -120
- tccli/services/tse/v20201207/examples.json +30 -30
- tccli/services/tsf/v20180326/api.json +864 -781
- tccli/services/tsf/v20180326/examples.json +114 -126
- tccli/services/vclm/v20240523/api.json +1 -1
- tccli/services/vdb/v20230616/api.json +80 -80
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vod/v20180717/api.json +21 -3
- tccli/services/vod/v20180717/examples.json +2 -2
- tccli/services/vpc/v20170312/api.json +45 -44
- tccli/services/vpc/v20170312/examples.json +9 -9
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/RECORD +146 -142
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/license_files/LICENSE +0 -0
@@ -9612,17 +9612,17 @@
|
|
9612
9612
|
"example": "env-xxxxxx",
|
9613
9613
|
"member": "string",
|
9614
9614
|
"name": "EnvId",
|
9615
|
-
"
|
9615
|
+
"output_required": true,
|
9616
9616
|
"type": "string",
|
9617
9617
|
"value_allowed_null": false
|
9618
9618
|
},
|
9619
9619
|
{
|
9620
9620
|
"disabled": false,
|
9621
9621
|
"document": "tcb产品套餐ID,参考DescribePackages接口的返回值。",
|
9622
|
-
"example": "
|
9622
|
+
"example": "Default",
|
9623
9623
|
"member": "string",
|
9624
9624
|
"name": "PackageId",
|
9625
|
-
"
|
9625
|
+
"output_required": true,
|
9626
9626
|
"type": "string",
|
9627
9627
|
"value_allowed_null": false
|
9628
9628
|
},
|
@@ -9632,7 +9632,7 @@
|
|
9632
9632
|
"example": "true",
|
9633
9633
|
"member": "bool",
|
9634
9634
|
"name": "IsAutoRenew",
|
9635
|
-
"
|
9635
|
+
"output_required": true,
|
9636
9636
|
"type": "bool",
|
9637
9637
|
"value_allowed_null": false
|
9638
9638
|
},
|
@@ -9642,7 +9642,7 @@
|
|
9642
9642
|
"example": "NORMAL",
|
9643
9643
|
"member": "string",
|
9644
9644
|
"name": "Status",
|
9645
|
-
"
|
9645
|
+
"output_required": true,
|
9646
9646
|
"type": "string",
|
9647
9647
|
"value_allowed_null": false
|
9648
9648
|
},
|
@@ -9652,7 +9652,7 @@
|
|
9652
9652
|
"example": "PREPAYMENT",
|
9653
9653
|
"member": "string",
|
9654
9654
|
"name": "PayMode",
|
9655
|
-
"
|
9655
|
+
"output_required": true,
|
9656
9656
|
"type": "string",
|
9657
9657
|
"value_allowed_null": false
|
9658
9658
|
},
|
@@ -9662,7 +9662,7 @@
|
|
9662
9662
|
"example": "2022-01-01 12:34:56",
|
9663
9663
|
"member": "string",
|
9664
9664
|
"name": "IsolatedTime",
|
9665
|
-
"
|
9665
|
+
"output_required": true,
|
9666
9666
|
"type": "string",
|
9667
9667
|
"value_allowed_null": false
|
9668
9668
|
},
|
@@ -9672,7 +9672,7 @@
|
|
9672
9672
|
"example": "2022-01-01 12:34:56",
|
9673
9673
|
"member": "string",
|
9674
9674
|
"name": "ExpireTime",
|
9675
|
-
"
|
9675
|
+
"output_required": true,
|
9676
9676
|
"type": "string",
|
9677
9677
|
"value_allowed_null": false
|
9678
9678
|
},
|
@@ -9682,7 +9682,7 @@
|
|
9682
9682
|
"example": "2022-01-01 12:34:56",
|
9683
9683
|
"member": "string",
|
9684
9684
|
"name": "CreateTime",
|
9685
|
-
"
|
9685
|
+
"output_required": true,
|
9686
9686
|
"type": "string",
|
9687
9687
|
"value_allowed_null": false
|
9688
9688
|
},
|
@@ -9692,7 +9692,7 @@
|
|
9692
9692
|
"example": "2022-01-01 12:34:56",
|
9693
9693
|
"member": "string",
|
9694
9694
|
"name": "UpdateTime",
|
9695
|
-
"
|
9695
|
+
"output_required": true,
|
9696
9696
|
"type": "string",
|
9697
9697
|
"value_allowed_null": false
|
9698
9698
|
},
|
@@ -9702,7 +9702,7 @@
|
|
9702
9702
|
"example": "false",
|
9703
9703
|
"member": "bool",
|
9704
9704
|
"name": "IsAlwaysFree",
|
9705
|
-
"
|
9705
|
+
"output_required": true,
|
9706
9706
|
"type": "bool",
|
9707
9707
|
"value_allowed_null": false
|
9708
9708
|
},
|
@@ -9712,7 +9712,7 @@
|
|
9712
9712
|
"example": "miniapp",
|
9713
9713
|
"member": "string",
|
9714
9714
|
"name": "PaymentChannel",
|
9715
|
-
"
|
9715
|
+
"output_required": true,
|
9716
9716
|
"type": "string",
|
9717
9717
|
"value_allowed_null": true
|
9718
9718
|
},
|
@@ -9722,7 +9722,7 @@
|
|
9722
9722
|
"example": "无",
|
9723
9723
|
"member": "OrderInfo",
|
9724
9724
|
"name": "OrderInfo",
|
9725
|
-
"
|
9725
|
+
"output_required": true,
|
9726
9726
|
"type": "object",
|
9727
9727
|
"value_allowed_null": true
|
9728
9728
|
},
|
@@ -9732,7 +9732,7 @@
|
|
9732
9732
|
"example": "basic",
|
9733
9733
|
"member": "string",
|
9734
9734
|
"name": "FreeQuota",
|
9735
|
-
"
|
9735
|
+
"output_required": true,
|
9736
9736
|
"type": "string",
|
9737
9737
|
"value_allowed_null": true
|
9738
9738
|
},
|
@@ -9742,7 +9742,7 @@
|
|
9742
9742
|
"example": "无",
|
9743
9743
|
"member": "bool",
|
9744
9744
|
"name": "EnableOverrun",
|
9745
|
-
"
|
9745
|
+
"output_required": true,
|
9746
9746
|
"type": "bool",
|
9747
9747
|
"value_allowed_null": true
|
9748
9748
|
},
|
@@ -9752,9 +9752,29 @@
|
|
9752
9752
|
"example": "baas",
|
9753
9753
|
"member": "string",
|
9754
9754
|
"name": "ExtPackageType",
|
9755
|
-
"
|
9755
|
+
"output_required": true,
|
9756
9756
|
"type": "string",
|
9757
9757
|
"value_allowed_null": true
|
9758
|
+
},
|
9759
|
+
{
|
9760
|
+
"disabled": false,
|
9761
|
+
"document": "是否付费期环境,可取值:yes/no。",
|
9762
|
+
"example": "yes",
|
9763
|
+
"member": "string",
|
9764
|
+
"name": "EnvCharged",
|
9765
|
+
"output_required": false,
|
9766
|
+
"type": "string",
|
9767
|
+
"value_allowed_null": false
|
9768
|
+
},
|
9769
|
+
{
|
9770
|
+
"disabled": false,
|
9771
|
+
"document": "是否已激活,可取值:yes/no。",
|
9772
|
+
"example": "yes",
|
9773
|
+
"member": "string",
|
9774
|
+
"name": "EnvActivated",
|
9775
|
+
"output_required": false,
|
9776
|
+
"type": "string",
|
9777
|
+
"value_allowed_null": false
|
9758
9778
|
}
|
9759
9779
|
],
|
9760
9780
|
"usage": "out"
|
@@ -1525,6 +1525,58 @@ def doDescribeTopics(args, parsed_globals):
|
|
1525
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
1526
|
|
1527
1527
|
|
1528
|
+
def doModifyPublicNetworkSecurityPolicy(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.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
1555
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1556
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1557
|
+
model = models.ModifyPublicNetworkSecurityPolicyRequest()
|
1558
|
+
model.from_json_string(json.dumps(args))
|
1559
|
+
start_time = time.time()
|
1560
|
+
while True:
|
1561
|
+
rsp = client.ModifyPublicNetworkSecurityPolicy(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
|
+
|
1528
1580
|
def doModifyRocketMQEnvironmentRole(args, parsed_globals):
|
1529
1581
|
g_param = parse_global_arg(parsed_globals)
|
1530
1582
|
|
@@ -4021,6 +4073,58 @@ def doDeleteRocketMQTopic(args, parsed_globals):
|
|
4021
4073
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
4074
|
|
4023
4075
|
|
4076
|
+
def doRetryRocketMQDlqMessage(args, parsed_globals):
|
4077
|
+
g_param = parse_global_arg(parsed_globals)
|
4078
|
+
|
4079
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4080
|
+
cred = credential.CVMRoleCredential()
|
4081
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4082
|
+
cred = credential.STSAssumeRoleCredential(
|
4083
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4084
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4085
|
+
)
|
4086
|
+
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):
|
4087
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4088
|
+
else:
|
4089
|
+
cred = credential.Credential(
|
4090
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4091
|
+
)
|
4092
|
+
http_profile = HttpProfile(
|
4093
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4094
|
+
reqMethod="POST",
|
4095
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4096
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4097
|
+
)
|
4098
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4099
|
+
if g_param[OptionsDefine.Language]:
|
4100
|
+
profile.language = g_param[OptionsDefine.Language]
|
4101
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4102
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
4103
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4104
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4105
|
+
model = models.RetryRocketMQDlqMessageRequest()
|
4106
|
+
model.from_json_string(json.dumps(args))
|
4107
|
+
start_time = time.time()
|
4108
|
+
while True:
|
4109
|
+
rsp = client.RetryRocketMQDlqMessage(model)
|
4110
|
+
result = rsp.to_json_string()
|
4111
|
+
try:
|
4112
|
+
json_obj = json.loads(result)
|
4113
|
+
except TypeError as e:
|
4114
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4115
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4116
|
+
break
|
4117
|
+
cur_time = time.time()
|
4118
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4119
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4120
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4121
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4122
|
+
else:
|
4123
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4124
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4125
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4126
|
+
|
4127
|
+
|
4024
4128
|
def doDescribeRocketMQSmoothMigrationTaskList(args, parsed_globals):
|
4025
4129
|
g_param = parse_global_arg(parsed_globals)
|
4026
4130
|
|
@@ -7545,6 +7649,7 @@ ACTION_MAP = {
|
|
7545
7649
|
"AcknowledgeMessage": doAcknowledgeMessage,
|
7546
7650
|
"CreateEnvironment": doCreateEnvironment,
|
7547
7651
|
"DescribeTopics": doDescribeTopics,
|
7652
|
+
"ModifyPublicNetworkSecurityPolicy": doModifyPublicNetworkSecurityPolicy,
|
7548
7653
|
"ModifyRocketMQEnvironmentRole": doModifyRocketMQEnvironmentRole,
|
7549
7654
|
"ModifyRocketMQTopic": doModifyRocketMQTopic,
|
7550
7655
|
"DescribeRocketMQTopicMsgs": doDescribeRocketMQTopicMsgs,
|
@@ -7593,6 +7698,7 @@ ACTION_MAP = {
|
|
7593
7698
|
"DescribeRabbitMQNodeList": doDescribeRabbitMQNodeList,
|
7594
7699
|
"DescribeBindVpcs": doDescribeBindVpcs,
|
7595
7700
|
"DeleteRocketMQTopic": doDeleteRocketMQTopic,
|
7701
|
+
"RetryRocketMQDlqMessage": doRetryRocketMQDlqMessage,
|
7596
7702
|
"DescribeRocketMQSmoothMigrationTaskList": doDescribeRocketMQSmoothMigrationTaskList,
|
7597
7703
|
"ExportRocketMQMessageDetail": doExportRocketMQMessageDetail,
|
7598
7704
|
"DescribeRabbitMQQueues": doDescribeRabbitMQQueues,
|
@@ -826,6 +826,13 @@
|
|
826
826
|
"output": "ModifyPublicNetworkAccessPointResponse",
|
827
827
|
"status": "online"
|
828
828
|
},
|
829
|
+
"ModifyPublicNetworkSecurityPolicy": {
|
830
|
+
"document": "修改pulsar专业版公网安全策略",
|
831
|
+
"input": "ModifyPublicNetworkSecurityPolicyRequest",
|
832
|
+
"name": "修改公网安全策略",
|
833
|
+
"output": "ModifyPublicNetworkSecurityPolicyResponse",
|
834
|
+
"status": "online"
|
835
|
+
},
|
829
836
|
"ModifyRabbitMQUser": {
|
830
837
|
"document": "修改RabbitMQ的用户",
|
831
838
|
"input": "ModifyRabbitMQUserRequest",
|
@@ -945,6 +952,13 @@
|
|
945
952
|
"output": "ResetRocketMQConsumerOffSetResponse",
|
946
953
|
"status": "online"
|
947
954
|
},
|
955
|
+
"RetryRocketMQDlqMessage": {
|
956
|
+
"document": "重发RocketMQ死信消息",
|
957
|
+
"input": "RetryRocketMQDlqMessageRequest",
|
958
|
+
"name": "重发RocketMQ死信消息",
|
959
|
+
"output": "RetryRocketMQDlqMessageResponse",
|
960
|
+
"status": "online"
|
961
|
+
},
|
948
962
|
"RewindCmqQueue": {
|
949
963
|
"document": "回溯cmq队列",
|
950
964
|
"input": "RewindCmqQueueRequest",
|
@@ -2113,7 +2127,7 @@
|
|
2113
2127
|
"members": [
|
2114
2128
|
{
|
2115
2129
|
"disabled": false,
|
2116
|
-
"document": "
|
2130
|
+
"document": "订阅名字,在单个地域同一账号的同一主题下唯一。订阅名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2117
2131
|
"example": "sub",
|
2118
2132
|
"member": "string",
|
2119
2133
|
"name": "SubscriptionName",
|
@@ -13124,6 +13138,62 @@
|
|
13124
13138
|
],
|
13125
13139
|
"type": "object"
|
13126
13140
|
},
|
13141
|
+
"ModifyPublicNetworkSecurityPolicyRequest": {
|
13142
|
+
"document": "ModifyPublicNetworkSecurityPolicy请求参数结构体",
|
13143
|
+
"members": [
|
13144
|
+
{
|
13145
|
+
"disabled": false,
|
13146
|
+
"document": "集群id",
|
13147
|
+
"example": "pulsar-47emajuiaoam",
|
13148
|
+
"member": "string",
|
13149
|
+
"name": "InstanceId",
|
13150
|
+
"required": true,
|
13151
|
+
"type": "string"
|
13152
|
+
},
|
13153
|
+
{
|
13154
|
+
"disabled": false,
|
13155
|
+
"document": "策略列表",
|
13156
|
+
"example": "无",
|
13157
|
+
"member": "SecurityPolicy",
|
13158
|
+
"name": "PolicyList",
|
13159
|
+
"required": true,
|
13160
|
+
"type": "list"
|
13161
|
+
}
|
13162
|
+
],
|
13163
|
+
"type": "object"
|
13164
|
+
},
|
13165
|
+
"ModifyPublicNetworkSecurityPolicyResponse": {
|
13166
|
+
"document": "ModifyPublicNetworkSecurityPolicy返回参数结构体",
|
13167
|
+
"members": [
|
13168
|
+
{
|
13169
|
+
"disabled": false,
|
13170
|
+
"document": "SUCCESS或者FAILURE",
|
13171
|
+
"example": "SUCCESS",
|
13172
|
+
"member": "string",
|
13173
|
+
"name": "ModifyResult",
|
13174
|
+
"output_required": false,
|
13175
|
+
"type": "string",
|
13176
|
+
"value_allowed_null": false
|
13177
|
+
},
|
13178
|
+
{
|
13179
|
+
"disabled": false,
|
13180
|
+
"document": "集群id",
|
13181
|
+
"example": "pulsar-47emajuiaoam",
|
13182
|
+
"member": "string",
|
13183
|
+
"name": "InstanceId",
|
13184
|
+
"output_required": false,
|
13185
|
+
"type": "string",
|
13186
|
+
"value_allowed_null": false
|
13187
|
+
},
|
13188
|
+
{
|
13189
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
13190
|
+
"member": "string",
|
13191
|
+
"name": "RequestId",
|
13192
|
+
"type": "string"
|
13193
|
+
}
|
13194
|
+
],
|
13195
|
+
"type": "object"
|
13196
|
+
},
|
13127
13197
|
"ModifyRabbitMQUserRequest": {
|
13128
13198
|
"document": "ModifyRabbitMQUser请求参数结构体",
|
13129
13199
|
"members": [
|
@@ -16916,6 +16986,60 @@
|
|
16916
16986
|
],
|
16917
16987
|
"usage": "both"
|
16918
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
|
+
},
|
16919
17043
|
"RewindCmqQueueRequest": {
|
16920
17044
|
"document": "RewindCmqQueue请求参数结构体",
|
16921
17045
|
"members": [
|
@@ -852,7 +852,7 @@
|
|
852
852
|
{
|
853
853
|
"document": "",
|
854
854
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRoles\n<公共请求参数>\n\n{\n \"RoleName\": \"devRole\",\n \"Offset\": 0,\n \"Limit\": 10,\n \"ClusterId\": \"pulsar-xk3ne8k2qkp8\"\n}",
|
855
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"RoleSets\": [\n {\n \"RoleName\": \"test_role_3\",\n \"Token\": \"
|
855
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"RoleSets\": [\n {\n \"RoleName\": \"test_role_3\",\n \"Token\": \"eyJzdddaWIiOiJ0ZXN0X3****O9bDulZQ6lraNswNLtcUcY\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-04 11:59:06\",\n \"UpdateTime\": \"2020-08-04 11:59:06\"\n },\n {\n \"RoleName\": \"test_role_2\",\n \"Token\": \"eyJzdWIiOiJ0asZsXN0X3Jasdv****AQRmEs-_3da8yU0O61D0\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-03 20:23:52\",\n \"UpdateTime\": \"2020-08-03 20:23:52\"\n },\n {\n \"RoleName\": \"test_role_1\",\n \"Token\": \"eyJzddassWIiOiJ0ZXN0X3J****QA7vWB0igKr_7eQitbweBoo\",\n \"Remark\": \"devRemark\",\n \"CreateTime\": \"2020-08-03 19:48:36\",\n \"UpdateTime\": \"2020-08-03 20:22:21\"\n },\n {\n \"RoleName\": \"test_role\",\n \"Token\": \"eyJzdWIiOiJ0ZXsas****5wSJ8u6sUJWW\",\n \"Remark\": \"Remark1\",\n \"CreateTime\": \"2020-08-03 17:22:09\",\n \"UpdateTime\": \"2020-08-04 15:59:29\"\n }\n ],\n \"RequestId\": \"1004f1de-6fb8-41d5-965e-3aae8c87183a\"\n }\n}",
|
856
856
|
"title": "获取角色列表"
|
857
857
|
}
|
858
858
|
],
|
@@ -968,6 +968,14 @@
|
|
968
968
|
"title": "RabbitMQ专享版修改公网管控台,数据流开关"
|
969
969
|
}
|
970
970
|
],
|
971
|
+
"ModifyPublicNetworkSecurityPolicy": [
|
972
|
+
{
|
973
|
+
"document": "",
|
974
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPublicNetworkSecurityPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"pulsar-47emajuiaoam\",\n \"PolicyList\": [\n {\n \"Route\": \"1.1.1.1/24\",\n \"Policy\": true,\n \"Remark\": \"allow\"\n }\n ]\n}",
|
975
|
+
"output": "{\n \"Response\": {\n \"ModifyResult\": \"SUCCESS\",\n \"InstanceId\": \"pulsar-47emajuiaoam\",\n \"RequestId\": \"5d6c7091-e82c-4a9c-a18f-34d5fc46006e\"\n }\n}",
|
976
|
+
"title": "示例"
|
977
|
+
}
|
978
|
+
],
|
971
979
|
"ModifyRabbitMQUser": [
|
972
980
|
{
|
973
981
|
"document": "-",
|
@@ -1104,6 +1112,14 @@
|
|
1104
1112
|
"title": "重置消费位点"
|
1105
1113
|
}
|
1106
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
|
+
],
|
1107
1123
|
"RewindCmqQueue": [
|
1108
1124
|
{
|
1109
1125
|
"document": "",
|