tccli 3.0.1213.1__py2.py3-none-any.whl → 3.0.1215.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/ams/v20201229/examples.json +2 -2
- tccli/services/batch/v20170312/api.json +2 -2
- tccli/services/captcha/v20190722/api.json +43 -43
- tccli/services/captcha/v20190722/examples.json +11 -11
- tccli/services/ccc/v20200210/api.json +9 -0
- tccli/services/cdb/v20170320/api.json +9 -0
- tccli/services/cdwdoris/v20211228/api.json +11 -0
- tccli/services/cfs/v20190719/api.json +3 -3
- tccli/services/cfw/v20190904/api.json +33 -28
- tccli/services/cfw/v20190904/examples.json +32 -26
- tccli/services/ckafka/v20190819/api.json +1 -1
- tccli/services/clb/v20180317/api.json +19 -1
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cwp/v20180228/api.json +924 -870
- tccli/services/cwp/v20180228/examples.json +150 -150
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +11 -0
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/ess/v20201111/api.json +10 -1
- tccli/services/essbasic/v20210526/api.json +10 -1
- tccli/services/gaap/v20180529/api.json +95 -85
- tccli/services/gaap/v20180529/examples.json +27 -33
- tccli/services/hunyuan/v20230901/examples.json +6 -0
- tccli/services/iss/v20230517/api.json +19 -0
- tccli/services/mqtt/v20240516/api.json +2 -2
- tccli/services/mqtt/v20240516/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/partners/partners_client.py +57 -4
- tccli/services/partners/v20180321/api.json +44 -0
- tccli/services/partners/v20180321/examples.json +8 -0
- tccli/services/pts/v20210728/api.json +11 -0
- tccli/services/redis/v20180412/api.json +2 -2
- tccli/services/ssl/v20191205/api.json +33 -4
- tccli/services/taf/v20200210/api.json +54 -94
- tccli/services/taf/v20200210/examples.json +2 -2
- tccli/services/tcss/v20201101/api.json +243 -1
- tccli/services/tcss/v20201101/examples.json +2 -2
- tccli/services/tdmq/tdmq_client.py +106 -0
- tccli/services/tdmq/v20200217/api.json +571 -274
- tccli/services/tdmq/v20200217/examples.json +87 -71
- tccli/services/teo/v20220901/api.json +5 -5
- tccli/services/trocket/v20230308/api.json +29 -11
- tccli/services/trocket/v20230308/examples.json +4 -4
- tccli/services/tsi/v20210325/api.json +79 -0
- tccli/services/vod/v20180717/api.json +500 -57
- tccli/services/vod/v20180717/examples.json +8 -2
- tccli/services/vpc/v20170312/api.json +6 -4
- tccli/services/vpc/v20170312/examples.json +1 -1
- {tccli-3.0.1213.1.dist-info → tccli-3.0.1215.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1213.1.dist-info → tccli-3.0.1215.1.dist-info}/RECORD +54 -54
- {tccli-3.0.1213.1.dist-info → tccli-3.0.1215.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1213.1.dist-info → tccli-3.0.1215.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1213.1.dist-info → tccli-3.0.1215.1.dist-info}/license_files/LICENSE +0 -0
@@ -16189,12 +16189,78 @@
|
|
16189
16189
|
},
|
16190
16190
|
"DescribeAssetImageRegistryRegistryListRequest": {
|
16191
16191
|
"document": "DescribeAssetImageRegistryRegistryList请求参数结构体",
|
16192
|
-
"members": [
|
16192
|
+
"members": [
|
16193
|
+
{
|
16194
|
+
"disabled": false,
|
16195
|
+
"document": "需要返回的数量,默认为10,最大值为100",
|
16196
|
+
"example": "无",
|
16197
|
+
"member": "uint64",
|
16198
|
+
"name": "Limit",
|
16199
|
+
"required": false,
|
16200
|
+
"type": "int"
|
16201
|
+
},
|
16202
|
+
{
|
16203
|
+
"disabled": false,
|
16204
|
+
"document": "偏移量,默认为0",
|
16205
|
+
"example": "无",
|
16206
|
+
"member": "uint64",
|
16207
|
+
"name": "Offset",
|
16208
|
+
"required": false,
|
16209
|
+
"type": "int"
|
16210
|
+
},
|
16211
|
+
{
|
16212
|
+
"disabled": false,
|
16213
|
+
"document": "过滤字段\nIsAuthorized是否授权,取值全部all,未授权0,已授权1",
|
16214
|
+
"example": "无",
|
16215
|
+
"member": "AssetFilters",
|
16216
|
+
"name": "Filters",
|
16217
|
+
"required": false,
|
16218
|
+
"type": "list"
|
16219
|
+
},
|
16220
|
+
{
|
16221
|
+
"disabled": false,
|
16222
|
+
"document": "排序字段",
|
16223
|
+
"example": "无",
|
16224
|
+
"member": "string",
|
16225
|
+
"name": "By",
|
16226
|
+
"required": false,
|
16227
|
+
"type": "string"
|
16228
|
+
},
|
16229
|
+
{
|
16230
|
+
"disabled": false,
|
16231
|
+
"document": "排序方式,asc,desc",
|
16232
|
+
"example": "无",
|
16233
|
+
"member": "string",
|
16234
|
+
"name": "Order",
|
16235
|
+
"required": false,
|
16236
|
+
"type": "string"
|
16237
|
+
}
|
16238
|
+
],
|
16193
16239
|
"type": "object"
|
16194
16240
|
},
|
16195
16241
|
"DescribeAssetImageRegistryRegistryListResponse": {
|
16196
16242
|
"document": "DescribeAssetImageRegistryRegistryList返回参数结构体",
|
16197
16243
|
"members": [
|
16244
|
+
{
|
16245
|
+
"disabled": false,
|
16246
|
+
"document": "镜像仓库列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
16247
|
+
"example": "无",
|
16248
|
+
"member": "ImageRepoRegistryInfo",
|
16249
|
+
"name": "List",
|
16250
|
+
"output_required": true,
|
16251
|
+
"type": "list",
|
16252
|
+
"value_allowed_null": true
|
16253
|
+
},
|
16254
|
+
{
|
16255
|
+
"disabled": false,
|
16256
|
+
"document": "总数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
16257
|
+
"example": "无",
|
16258
|
+
"member": "uint64",
|
16259
|
+
"name": "TotalCount",
|
16260
|
+
"output_required": true,
|
16261
|
+
"type": "int",
|
16262
|
+
"value_allowed_null": true
|
16263
|
+
},
|
16198
16264
|
{
|
16199
16265
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
16200
16266
|
"member": "string",
|
@@ -32661,6 +32727,182 @@
|
|
32661
32727
|
],
|
32662
32728
|
"usage": "out"
|
32663
32729
|
},
|
32730
|
+
"ImageRepoRegistryInfo": {
|
32731
|
+
"document": "容器安全镜像仓库列表",
|
32732
|
+
"members": [
|
32733
|
+
{
|
32734
|
+
"disabled": false,
|
32735
|
+
"document": "仓库id",
|
32736
|
+
"example": "无",
|
32737
|
+
"member": "uint64",
|
32738
|
+
"name": "RegistryId",
|
32739
|
+
"output_required": true,
|
32740
|
+
"type": "int",
|
32741
|
+
"value_allowed_null": false
|
32742
|
+
},
|
32743
|
+
{
|
32744
|
+
"disabled": false,
|
32745
|
+
"document": "仓库名",
|
32746
|
+
"example": "无",
|
32747
|
+
"member": "string",
|
32748
|
+
"name": "Name",
|
32749
|
+
"output_required": true,
|
32750
|
+
"type": "string",
|
32751
|
+
"value_allowed_null": false
|
32752
|
+
},
|
32753
|
+
{
|
32754
|
+
"disabled": false,
|
32755
|
+
"document": "仓库类型,列表:harbor、tcr",
|
32756
|
+
"example": "无",
|
32757
|
+
"member": "string",
|
32758
|
+
"name": "RegistryType",
|
32759
|
+
"output_required": true,
|
32760
|
+
"type": "string",
|
32761
|
+
"value_allowed_null": false
|
32762
|
+
},
|
32763
|
+
{
|
32764
|
+
"disabled": false,
|
32765
|
+
"document": "仓库url",
|
32766
|
+
"example": "无",
|
32767
|
+
"member": "string",
|
32768
|
+
"name": "Url",
|
32769
|
+
"output_required": true,
|
32770
|
+
"type": "string",
|
32771
|
+
"value_allowed_null": false
|
32772
|
+
},
|
32773
|
+
{
|
32774
|
+
"disabled": false,
|
32775
|
+
"document": "网络类型,列表:public",
|
32776
|
+
"example": "无",
|
32777
|
+
"member": "string",
|
32778
|
+
"name": "NetType",
|
32779
|
+
"output_required": true,
|
32780
|
+
"type": "string",
|
32781
|
+
"value_allowed_null": false
|
32782
|
+
},
|
32783
|
+
{
|
32784
|
+
"disabled": false,
|
32785
|
+
"document": "区域,列表:default",
|
32786
|
+
"example": "无",
|
32787
|
+
"member": "string",
|
32788
|
+
"name": "RegistryRegion",
|
32789
|
+
"output_required": true,
|
32790
|
+
"type": "string",
|
32791
|
+
"value_allowed_null": false
|
32792
|
+
},
|
32793
|
+
{
|
32794
|
+
"disabled": false,
|
32795
|
+
"document": "仓库版本",
|
32796
|
+
"example": "无",
|
32797
|
+
"member": "string",
|
32798
|
+
"name": "RegistryVersion",
|
32799
|
+
"output_required": true,
|
32800
|
+
"type": "string",
|
32801
|
+
"value_allowed_null": false
|
32802
|
+
},
|
32803
|
+
{
|
32804
|
+
"disabled": false,
|
32805
|
+
"document": "仓库连接错误信息,待废弃,请使用ConnDetectException\n注意:此字段可能返回 null,表示取不到有效值。",
|
32806
|
+
"example": "无",
|
32807
|
+
"member": "string",
|
32808
|
+
"name": "ConnectMsg",
|
32809
|
+
"output_required": true,
|
32810
|
+
"type": "string",
|
32811
|
+
"value_allowed_null": true
|
32812
|
+
},
|
32813
|
+
{
|
32814
|
+
"disabled": false,
|
32815
|
+
"document": "联通性检测方式",
|
32816
|
+
"example": "agent or backend",
|
32817
|
+
"member": "string",
|
32818
|
+
"name": "ConnDetectType",
|
32819
|
+
"output_required": false,
|
32820
|
+
"type": "string",
|
32821
|
+
"value_allowed_null": false
|
32822
|
+
},
|
32823
|
+
{
|
32824
|
+
"disabled": false,
|
32825
|
+
"document": "联通性检测主机数",
|
32826
|
+
"example": "无",
|
32827
|
+
"member": "uint64",
|
32828
|
+
"name": "ConnDetectHostCount",
|
32829
|
+
"output_required": false,
|
32830
|
+
"type": "int",
|
32831
|
+
"value_allowed_null": false
|
32832
|
+
},
|
32833
|
+
{
|
32834
|
+
"disabled": false,
|
32835
|
+
"document": "联通性检测详情",
|
32836
|
+
"example": "无",
|
32837
|
+
"member": "RegistryConnDetectResult",
|
32838
|
+
"name": "ConnDetectDetail",
|
32839
|
+
"output_required": false,
|
32840
|
+
"type": "list",
|
32841
|
+
"value_allowed_null": false
|
32842
|
+
},
|
32843
|
+
{
|
32844
|
+
"disabled": false,
|
32845
|
+
"document": "tcr情况下的instance_id",
|
32846
|
+
"example": "1",
|
32847
|
+
"member": "string",
|
32848
|
+
"name": "InstanceID",
|
32849
|
+
"output_required": false,
|
32850
|
+
"type": "string",
|
32851
|
+
"value_allowed_null": false
|
32852
|
+
},
|
32853
|
+
{
|
32854
|
+
"disabled": false,
|
32855
|
+
"document": "最近同步成功时间",
|
32856
|
+
"example": "2023-10-01 00:00:00",
|
32857
|
+
"member": "string",
|
32858
|
+
"name": "LatestSyncTime",
|
32859
|
+
"output_required": false,
|
32860
|
+
"type": "string",
|
32861
|
+
"value_allowed_null": false
|
32862
|
+
},
|
32863
|
+
{
|
32864
|
+
"disabled": false,
|
32865
|
+
"document": "同步状态",
|
32866
|
+
"example": "doing/success/failed",
|
32867
|
+
"member": "string",
|
32868
|
+
"name": "SyncStatus",
|
32869
|
+
"output_required": false,
|
32870
|
+
"type": "string",
|
32871
|
+
"value_allowed_null": false
|
32872
|
+
},
|
32873
|
+
{
|
32874
|
+
"disabled": false,
|
32875
|
+
"document": "同步失败原因",
|
32876
|
+
"example": "无",
|
32877
|
+
"member": "string",
|
32878
|
+
"name": "SyncFailReason",
|
32879
|
+
"output_required": false,
|
32880
|
+
"type": "string",
|
32881
|
+
"value_allowed_null": false
|
32882
|
+
},
|
32883
|
+
{
|
32884
|
+
"disabled": false,
|
32885
|
+
"document": "同步失败解决方案",
|
32886
|
+
"example": "无",
|
32887
|
+
"member": "string",
|
32888
|
+
"name": "SyncSolution",
|
32889
|
+
"output_required": false,
|
32890
|
+
"type": "string",
|
32891
|
+
"value_allowed_null": false
|
32892
|
+
},
|
32893
|
+
{
|
32894
|
+
"disabled": false,
|
32895
|
+
"document": "同步失败信息",
|
32896
|
+
"example": "无",
|
32897
|
+
"member": "string",
|
32898
|
+
"name": "SyncMessage",
|
32899
|
+
"output_required": false,
|
32900
|
+
"type": "string",
|
32901
|
+
"value_allowed_null": false
|
32902
|
+
}
|
32903
|
+
],
|
32904
|
+
"usage": "out"
|
32905
|
+
},
|
32664
32906
|
"ImageRisk": {
|
32665
32907
|
"document": "容器安全镜像高危行为信息",
|
32666
32908
|
"members": [
|
@@ -983,8 +983,8 @@
|
|
983
983
|
"DescribeAssetImageRegistryRegistryList": [
|
984
984
|
{
|
985
985
|
"document": "",
|
986
|
-
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetImageRegistryRegistryList\n<公共请求参数>\n\n{}",
|
987
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"e59f97b7-87d4-4909-8289-61bd28423d2f\"\n }\n}",
|
986
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAssetImageRegistryRegistryList\n<公共请求参数>\n\n{\n \"Limit\": 100,\n \"Offset\": 0\n}",
|
987
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e59f97b7-87d4-4909-8289-61bd28423d2f\",\n \"TotalCount\": 15525,\n \"List\": [\n {\n \"ConnDetectDetail\": [\n {\n \"ConnDetectMessage\": \"\",\n \"ConnDetectStatus\": \"status_connected\",\n \"FailReason\": \"\",\n \"Quuid\": \"backend\",\n \"Solution\": \"\",\n \"Uuid\": \"backend\"\n }\n ],\n \"ConnDetectHostCount\": 1,\n \"ConnDetectType\": \"backend\",\n \"ConnectMsg\": \"\",\n \"InstanceID\": \"\",\n \"LatestSyncTime\": \"2024-10-23 03:12:50\",\n \"Name\": \"aws_public\",\n \"NetType\": \"public\",\n \"RegistryId\": 10000,\n \"RegistryRegion\": \"default\",\n \"RegistryType\": \"aws\",\n \"RegistryVersion\": \"V1\",\n \"SyncFailReason\": \"\",\n \"SyncMessage\": \"\",\n \"SyncSolution\": \"\",\n \"SyncStatus\": \"success\",\n \"Url\": \"https://public.xxx.aws/xxxxxxxx\"\n }\n ]\n }\n}",
|
988
988
|
"title": "镜像仓库查询镜像仓库列表"
|
989
989
|
}
|
990
990
|
],
|
@@ -5893,6 +5893,58 @@ def doModifyTopic(args, parsed_globals):
|
|
5893
5893
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5894
5894
|
|
5895
5895
|
|
5896
|
+
def doDescribeRabbitMQBindings(args, parsed_globals):
|
5897
|
+
g_param = parse_global_arg(parsed_globals)
|
5898
|
+
|
5899
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5900
|
+
cred = credential.CVMRoleCredential()
|
5901
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5902
|
+
cred = credential.STSAssumeRoleCredential(
|
5903
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5904
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5905
|
+
)
|
5906
|
+
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):
|
5907
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5908
|
+
else:
|
5909
|
+
cred = credential.Credential(
|
5910
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5911
|
+
)
|
5912
|
+
http_profile = HttpProfile(
|
5913
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5914
|
+
reqMethod="POST",
|
5915
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5916
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5917
|
+
)
|
5918
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5919
|
+
if g_param[OptionsDefine.Language]:
|
5920
|
+
profile.language = g_param[OptionsDefine.Language]
|
5921
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5922
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
5923
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5924
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5925
|
+
model = models.DescribeRabbitMQBindingsRequest()
|
5926
|
+
model.from_json_string(json.dumps(args))
|
5927
|
+
start_time = time.time()
|
5928
|
+
while True:
|
5929
|
+
rsp = client.DescribeRabbitMQBindings(model)
|
5930
|
+
result = rsp.to_json_string()
|
5931
|
+
try:
|
5932
|
+
json_obj = json.loads(result)
|
5933
|
+
except TypeError as e:
|
5934
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5935
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5936
|
+
break
|
5937
|
+
cur_time = time.time()
|
5938
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5939
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5940
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5941
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5942
|
+
else:
|
5943
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5944
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5945
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5946
|
+
|
5947
|
+
|
5896
5948
|
def doDescribeTopicMsgs(args, parsed_globals):
|
5897
5949
|
g_param = parse_global_arg(parsed_globals)
|
5898
5950
|
|
@@ -7089,6 +7141,58 @@ def doDescribeRocketMQPublicAccessPoint(args, parsed_globals):
|
|
7089
7141
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7090
7142
|
|
7091
7143
|
|
7144
|
+
def doDeleteRabbitMQBinding(args, parsed_globals):
|
7145
|
+
g_param = parse_global_arg(parsed_globals)
|
7146
|
+
|
7147
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7148
|
+
cred = credential.CVMRoleCredential()
|
7149
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7150
|
+
cred = credential.STSAssumeRoleCredential(
|
7151
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7152
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7153
|
+
)
|
7154
|
+
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):
|
7155
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7156
|
+
else:
|
7157
|
+
cred = credential.Credential(
|
7158
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7159
|
+
)
|
7160
|
+
http_profile = HttpProfile(
|
7161
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7162
|
+
reqMethod="POST",
|
7163
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7164
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7165
|
+
)
|
7166
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7167
|
+
if g_param[OptionsDefine.Language]:
|
7168
|
+
profile.language = g_param[OptionsDefine.Language]
|
7169
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7170
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
7171
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7172
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7173
|
+
model = models.DeleteRabbitMQBindingRequest()
|
7174
|
+
model.from_json_string(json.dumps(args))
|
7175
|
+
start_time = time.time()
|
7176
|
+
while True:
|
7177
|
+
rsp = client.DeleteRabbitMQBinding(model)
|
7178
|
+
result = rsp.to_json_string()
|
7179
|
+
try:
|
7180
|
+
json_obj = json.loads(result)
|
7181
|
+
except TypeError as e:
|
7182
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7183
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7184
|
+
break
|
7185
|
+
cur_time = time.time()
|
7186
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7187
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7188
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7189
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7190
|
+
else:
|
7191
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7192
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7193
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7194
|
+
|
7195
|
+
|
7092
7196
|
def doModifyRole(args, parsed_globals):
|
7093
7197
|
g_param = parse_global_arg(parsed_globals)
|
7094
7198
|
|
@@ -7577,6 +7681,7 @@ ACTION_MAP = {
|
|
7577
7681
|
"DescribeRocketMQClusters": doDescribeRocketMQClusters,
|
7578
7682
|
"SendMessages": doSendMessages,
|
7579
7683
|
"ModifyTopic": doModifyTopic,
|
7684
|
+
"DescribeRabbitMQBindings": doDescribeRabbitMQBindings,
|
7580
7685
|
"DescribeTopicMsgs": doDescribeTopicMsgs,
|
7581
7686
|
"DescribeNodeHealthOpt": doDescribeNodeHealthOpt,
|
7582
7687
|
"CreateRole": doCreateRole,
|
@@ -7600,6 +7705,7 @@ ACTION_MAP = {
|
|
7600
7705
|
"ClearCmqSubscriptionFilterTags": doClearCmqSubscriptionFilterTags,
|
7601
7706
|
"ModifyEnvironmentRole": doModifyEnvironmentRole,
|
7602
7707
|
"DescribeRocketMQPublicAccessPoint": doDescribeRocketMQPublicAccessPoint,
|
7708
|
+
"DeleteRabbitMQBinding": doDeleteRabbitMQBinding,
|
7603
7709
|
"ModifyRole": doModifyRole,
|
7604
7710
|
"DescribeRabbitMQVirtualHostList": doDescribeRabbitMQVirtualHostList,
|
7605
7711
|
"DeleteRocketMQEnvironmentRoles": doDeleteRocketMQEnvironmentRoles,
|