tccli 3.0.1135.1__py2.py3-none-any.whl → 3.0.1137.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/command.py +4 -1
- tccli/help_command.py +4 -1
- tccli/services/__init__.py +3 -0
- tccli/services/asr/asr_client.py +53 -0
- tccli/services/asr/v20190614/api.json +193 -1
- tccli/services/asr/v20190614/examples.json +8 -0
- tccli/services/batch/v20170312/api.json +8 -5
- tccli/services/batch/v20170312/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +3 -3
- tccli/services/ckafka/v20190819/api.json +1 -1
- tccli/services/cls/v20201016/api.json +93 -0
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +0 -43
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +10 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +157 -23
- tccli/services/dlc/v20210125/examples.json +14 -6
- tccli/services/dsgc/v20190723/api.json +35 -35
- tccli/services/dts/v20211206/api.json +3 -3
- tccli/services/eiam/v20210420/api.json +4 -4
- tccli/services/eiam/v20210420/examples.json +4 -4
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/ioa/ioa_client.py +159 -0
- tccli/services/ioa/v20220601/api.json +897 -80
- tccli/services/ioa/v20220601/examples.json +24 -0
- tccli/services/iotexplorer/iotexplorer_client.py +231 -19
- tccli/services/iotexplorer/v20190423/api.json +332 -0
- tccli/services/iotexplorer/v20190423/examples.json +32 -0
- tccli/services/lighthouse/v20200324/api.json +14 -14
- tccli/services/lighthouse/v20200324/examples.json +7 -7
- tccli/services/live/v20180801/api.json +12 -6
- tccli/services/lke/lke_client.py +175 -16
- tccli/services/lke/v20231130/api.json +429 -4
- tccli/services/lke/v20231130/examples.json +24 -0
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/partners/v20180321/api.json +26 -16
- tccli/services/tcr/v20190924/api.json +57 -35
- tccli/services/tcr/v20190924/examples.json +4 -4
- tccli/services/tcss/v20201101/api.json +123 -13
- tccli/services/tcss/v20201101/examples.json +3 -3
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +301 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/tem/v20210701/api.json +8 -5
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/tke/v20180525/api.json +13 -3
- tccli/services/trocket/trocket_client.py +65 -12
- tccli/services/trocket/v20230308/api.json +196 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +45 -63
- tccli/services/tsi/__init__.py +4 -0
- tccli/services/tsi/tsi_client.py +301 -0
- tccli/services/tsi/v20210325/api.json +373 -0
- tccli/services/tsi/v20210325/examples.json +29 -0
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +36 -16
- tccli/services/vpc/v20170312/examples.json +9 -3
- tccli/services/waf/v20180125/api.json +70 -0
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +377 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +61 -8
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/RECORD +72 -68
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/license_files/LICENSE +0 -0
@@ -225,6 +225,58 @@ def doDescribeRocketMQNamespaces(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
+
def doDescribeRabbitMQExchanges(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.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.DescribeRabbitMQExchangesRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.DescribeRabbitMQExchanges(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 doModifyAMQPCluster(args, parsed_globals):
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
230
282
|
|
@@ -7208,6 +7260,7 @@ ACTION_MAP = {
|
|
7208
7260
|
"CreateCluster": doCreateCluster,
|
7209
7261
|
"DescribeRocketMQConsumeStats": doDescribeRocketMQConsumeStats,
|
7210
7262
|
"DescribeRocketMQNamespaces": doDescribeRocketMQNamespaces,
|
7263
|
+
"DescribeRabbitMQExchanges": doDescribeRabbitMQExchanges,
|
7211
7264
|
"ModifyAMQPCluster": doModifyAMQPCluster,
|
7212
7265
|
"DescribeRocketMQMsgTrace": doDescribeRocketMQMsgTrace,
|
7213
7266
|
"CreateRocketMQRole": doCreateRocketMQRole,
|
@@ -469,6 +469,13 @@
|
|
469
469
|
"output": "DescribePulsarProInstancesResponse",
|
470
470
|
"status": "online"
|
471
471
|
},
|
472
|
+
"DescribeRabbitMQExchanges": {
|
473
|
+
"document": "查询RabbitMQ exchange 列表",
|
474
|
+
"input": "DescribeRabbitMQExchangesRequest",
|
475
|
+
"name": "查询RabbitMQ exchange 列表",
|
476
|
+
"output": "DescribeRabbitMQExchangesResponse",
|
477
|
+
"status": "online"
|
478
|
+
},
|
472
479
|
"DescribeRabbitMQNodeList": {
|
473
480
|
"document": "RabbitMQ专享版查询节点列表",
|
474
481
|
"input": "DescribeRabbitMQNodeListRequest",
|
@@ -7319,6 +7326,134 @@
|
|
7319
7326
|
],
|
7320
7327
|
"type": "object"
|
7321
7328
|
},
|
7329
|
+
"DescribeRabbitMQExchangesRequest": {
|
7330
|
+
"document": "DescribeRabbitMQExchanges请求参数结构体",
|
7331
|
+
"members": [
|
7332
|
+
{
|
7333
|
+
"disabled": false,
|
7334
|
+
"document": "实例 id",
|
7335
|
+
"example": "amqp-xxx",
|
7336
|
+
"member": "string",
|
7337
|
+
"name": "InstanceId",
|
7338
|
+
"required": true,
|
7339
|
+
"type": "string"
|
7340
|
+
},
|
7341
|
+
{
|
7342
|
+
"disabled": false,
|
7343
|
+
"document": "vhost 参数",
|
7344
|
+
"example": "testVhost",
|
7345
|
+
"member": "string",
|
7346
|
+
"name": "VirtualHost",
|
7347
|
+
"required": true,
|
7348
|
+
"type": "string"
|
7349
|
+
},
|
7350
|
+
{
|
7351
|
+
"disabled": false,
|
7352
|
+
"document": "分页 offset",
|
7353
|
+
"example": "0",
|
7354
|
+
"member": "int64",
|
7355
|
+
"name": "Offset",
|
7356
|
+
"required": false,
|
7357
|
+
"type": "int"
|
7358
|
+
},
|
7359
|
+
{
|
7360
|
+
"disabled": false,
|
7361
|
+
"document": "分页 limit",
|
7362
|
+
"example": "20",
|
7363
|
+
"member": "int64",
|
7364
|
+
"name": "Limit",
|
7365
|
+
"required": false,
|
7366
|
+
"type": "int"
|
7367
|
+
},
|
7368
|
+
{
|
7369
|
+
"disabled": false,
|
7370
|
+
"document": "搜索关键词, 支持模糊匹配 ",
|
7371
|
+
"example": "testSearchWord",
|
7372
|
+
"member": "string",
|
7373
|
+
"name": "SearchWord",
|
7374
|
+
"required": false,
|
7375
|
+
"type": "string"
|
7376
|
+
},
|
7377
|
+
{
|
7378
|
+
"disabled": false,
|
7379
|
+
"document": "筛选 exchange 类型, 数组中每个元素为选中的过滤类型",
|
7380
|
+
"example": "[\"fanout\",\"direct\"]",
|
7381
|
+
"member": "string",
|
7382
|
+
"name": "ExchangeTypeFilters",
|
7383
|
+
"required": false,
|
7384
|
+
"type": "list"
|
7385
|
+
},
|
7386
|
+
{
|
7387
|
+
"disabled": false,
|
7388
|
+
"document": "筛选 exchange 创建来源, \"system\":\"系统创建\", \"user\":\"用户创建\"",
|
7389
|
+
"example": "[\"system\"]",
|
7390
|
+
"member": "string",
|
7391
|
+
"name": "ExchangeCreatorFilters",
|
7392
|
+
"required": false,
|
7393
|
+
"type": "list"
|
7394
|
+
},
|
7395
|
+
{
|
7396
|
+
"disabled": false,
|
7397
|
+
"document": "exchange 名称,用于精确匹配",
|
7398
|
+
"example": "exchange1",
|
7399
|
+
"member": "string",
|
7400
|
+
"name": "ExchangeName",
|
7401
|
+
"required": false,
|
7402
|
+
"type": "string"
|
7403
|
+
},
|
7404
|
+
{
|
7405
|
+
"disabled": false,
|
7406
|
+
"document": "排序依据的字段:\nMessageRateInOut - 生产消费速率之和;\nMessageRateIn - 生产速率;\nMessageRateOut - 消费速率;",
|
7407
|
+
"example": "MessageRateInOut",
|
7408
|
+
"member": "string",
|
7409
|
+
"name": "SortElement",
|
7410
|
+
"required": false,
|
7411
|
+
"type": "string"
|
7412
|
+
},
|
7413
|
+
{
|
7414
|
+
"disabled": false,
|
7415
|
+
"document": "排序顺序,ascend 或 descend",
|
7416
|
+
"example": "descend",
|
7417
|
+
"member": "string",
|
7418
|
+
"name": "SortOrder",
|
7419
|
+
"required": false,
|
7420
|
+
"type": "string"
|
7421
|
+
}
|
7422
|
+
],
|
7423
|
+
"type": "object"
|
7424
|
+
},
|
7425
|
+
"DescribeRabbitMQExchangesResponse": {
|
7426
|
+
"document": "DescribeRabbitMQExchanges返回参数结构体",
|
7427
|
+
"members": [
|
7428
|
+
{
|
7429
|
+
"disabled": false,
|
7430
|
+
"document": "策略列表信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
7431
|
+
"example": "无",
|
7432
|
+
"member": "RabbitMQExchangeListInfo",
|
7433
|
+
"name": "ExchangeInfoList",
|
7434
|
+
"output_required": true,
|
7435
|
+
"type": "list",
|
7436
|
+
"value_allowed_null": true
|
7437
|
+
},
|
7438
|
+
{
|
7439
|
+
"disabled": false,
|
7440
|
+
"document": "策略结果总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
7441
|
+
"example": "无",
|
7442
|
+
"member": "int64",
|
7443
|
+
"name": "TotalCount",
|
7444
|
+
"output_required": true,
|
7445
|
+
"type": "int",
|
7446
|
+
"value_allowed_null": true
|
7447
|
+
},
|
7448
|
+
{
|
7449
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7450
|
+
"member": "string",
|
7451
|
+
"name": "RequestId",
|
7452
|
+
"type": "string"
|
7453
|
+
}
|
7454
|
+
],
|
7455
|
+
"type": "object"
|
7456
|
+
},
|
7322
7457
|
"DescribeRabbitMQNodeListRequest": {
|
7323
7458
|
"document": "DescribeRabbitMQNodeList请求参数结构体",
|
7324
7459
|
"members": [
|
@@ -14702,6 +14837,172 @@
|
|
14702
14837
|
],
|
14703
14838
|
"usage": "out"
|
14704
14839
|
},
|
14840
|
+
"RabbitMQExchangeListInfo": {
|
14841
|
+
"document": "RabbitMQ exchange列表成员信息",
|
14842
|
+
"members": [
|
14843
|
+
{
|
14844
|
+
"disabled": false,
|
14845
|
+
"document": "exchange 名",
|
14846
|
+
"example": "testExchangeName",
|
14847
|
+
"member": "string",
|
14848
|
+
"name": "ExchangeName",
|
14849
|
+
"output_required": true,
|
14850
|
+
"type": "string",
|
14851
|
+
"value_allowed_null": false
|
14852
|
+
},
|
14853
|
+
{
|
14854
|
+
"disabled": false,
|
14855
|
+
"document": "备注说明\n注意:此字段可能返回 null,表示取不到有效值。",
|
14856
|
+
"example": "testRemark",
|
14857
|
+
"member": "string",
|
14858
|
+
"name": "Remark",
|
14859
|
+
"output_required": true,
|
14860
|
+
"type": "string",
|
14861
|
+
"value_allowed_null": true
|
14862
|
+
},
|
14863
|
+
{
|
14864
|
+
"disabled": false,
|
14865
|
+
"document": "exchange 类型, 支持 \"fanout\",\"direct\",\"topic\",\"headers\"",
|
14866
|
+
"example": "fanout",
|
14867
|
+
"member": "string",
|
14868
|
+
"name": "ExchangeType",
|
14869
|
+
"output_required": true,
|
14870
|
+
"type": "string",
|
14871
|
+
"value_allowed_null": false
|
14872
|
+
},
|
14873
|
+
{
|
14874
|
+
"disabled": false,
|
14875
|
+
"document": "VHost参数\n注意:此字段可能返回 null,表示取不到有效值。",
|
14876
|
+
"example": "testVhost",
|
14877
|
+
"member": "string",
|
14878
|
+
"name": "VirtualHost",
|
14879
|
+
"output_required": true,
|
14880
|
+
"type": "string",
|
14881
|
+
"value_allowed_null": true
|
14882
|
+
},
|
14883
|
+
{
|
14884
|
+
"disabled": false,
|
14885
|
+
"document": "exchange 创建者, \"system\":\"系统创建\", \"user\":\"用户创建\"\n注意:此字段可能返回 null,表示取不到有效值。",
|
14886
|
+
"example": "user",
|
14887
|
+
"member": "string",
|
14888
|
+
"name": "ExchangeCreator",
|
14889
|
+
"output_required": true,
|
14890
|
+
"type": "string",
|
14891
|
+
"value_allowed_null": true
|
14892
|
+
},
|
14893
|
+
{
|
14894
|
+
"disabled": false,
|
14895
|
+
"document": "exchange 创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
14896
|
+
"example": "2016-11-09 11:44:44",
|
14897
|
+
"member": "string",
|
14898
|
+
"name": "CreateTimeStamp",
|
14899
|
+
"output_required": true,
|
14900
|
+
"type": "string",
|
14901
|
+
"value_allowed_null": true
|
14902
|
+
},
|
14903
|
+
{
|
14904
|
+
"disabled": false,
|
14905
|
+
"document": "exchange 修改时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
14906
|
+
"example": "2016-11-09 11:44:44",
|
14907
|
+
"member": "string",
|
14908
|
+
"name": "ModTimeStamp",
|
14909
|
+
"output_required": true,
|
14910
|
+
"type": "string",
|
14911
|
+
"value_allowed_null": true
|
14912
|
+
},
|
14913
|
+
{
|
14914
|
+
"disabled": false,
|
14915
|
+
"document": "输入消息速率\n注意:此字段可能返回 null,表示取不到有效值。",
|
14916
|
+
"example": "0.0",
|
14917
|
+
"member": "float",
|
14918
|
+
"name": "MessageRateIn",
|
14919
|
+
"output_required": false,
|
14920
|
+
"type": "float",
|
14921
|
+
"value_allowed_null": true
|
14922
|
+
},
|
14923
|
+
{
|
14924
|
+
"disabled": false,
|
14925
|
+
"document": "输出消息速率\n注意:此字段可能返回 null,表示取不到有效值。",
|
14926
|
+
"example": "0.0",
|
14927
|
+
"member": "float",
|
14928
|
+
"name": "MessageRateOut",
|
14929
|
+
"output_required": false,
|
14930
|
+
"type": "float",
|
14931
|
+
"value_allowed_null": true
|
14932
|
+
},
|
14933
|
+
{
|
14934
|
+
"disabled": false,
|
14935
|
+
"document": "是否为持久化交换机,true 为持久化,false 为非持久化\n注意:此字段可能返回 null,表示取不到有效值。",
|
14936
|
+
"example": "true",
|
14937
|
+
"member": "bool",
|
14938
|
+
"name": "Durable",
|
14939
|
+
"output_required": false,
|
14940
|
+
"type": "bool",
|
14941
|
+
"value_allowed_null": true
|
14942
|
+
},
|
14943
|
+
{
|
14944
|
+
"disabled": false,
|
14945
|
+
"document": "是否为自动删除交换机,true 为自动删除,false 为非自动删除\n注意:此字段可能返回 null,表示取不到有效值。",
|
14946
|
+
"example": "true",
|
14947
|
+
"member": "bool",
|
14948
|
+
"name": "AutoDelete",
|
14949
|
+
"output_required": false,
|
14950
|
+
"type": "bool",
|
14951
|
+
"value_allowed_null": true
|
14952
|
+
},
|
14953
|
+
{
|
14954
|
+
"disabled": false,
|
14955
|
+
"document": "是否为内部交换机,true 为内部交换机\n注意:此字段可能返回 null,表示取不到有效值。",
|
14956
|
+
"example": "true",
|
14957
|
+
"member": "bool",
|
14958
|
+
"name": "Internal",
|
14959
|
+
"output_required": false,
|
14960
|
+
"type": "bool",
|
14961
|
+
"value_allowed_null": true
|
14962
|
+
},
|
14963
|
+
{
|
14964
|
+
"disabled": false,
|
14965
|
+
"document": "交换机所属实例 ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
14966
|
+
"example": "amqp-xxx",
|
14967
|
+
"member": "string",
|
14968
|
+
"name": "InstanceId",
|
14969
|
+
"output_required": false,
|
14970
|
+
"type": "string",
|
14971
|
+
"value_allowed_null": true
|
14972
|
+
},
|
14973
|
+
{
|
14974
|
+
"disabled": false,
|
14975
|
+
"document": "生效的策略名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
14976
|
+
"example": "test-policy",
|
14977
|
+
"member": "string",
|
14978
|
+
"name": "Policy",
|
14979
|
+
"output_required": false,
|
14980
|
+
"type": "string",
|
14981
|
+
"value_allowed_null": true
|
14982
|
+
},
|
14983
|
+
{
|
14984
|
+
"disabled": false,
|
14985
|
+
"document": "扩展参数 key-value 对象\n注意:此字段可能返回 null,表示取不到有效值。",
|
14986
|
+
"example": "{}",
|
14987
|
+
"member": "string",
|
14988
|
+
"name": "Arguments",
|
14989
|
+
"output_required": false,
|
14990
|
+
"type": "string",
|
14991
|
+
"value_allowed_null": true
|
14992
|
+
},
|
14993
|
+
{
|
14994
|
+
"disabled": false,
|
14995
|
+
"document": "未调度的延时消息数量\n注意:此字段可能返回 null,表示取不到有效值。",
|
14996
|
+
"example": "0",
|
14997
|
+
"member": "uint64",
|
14998
|
+
"name": "MessagesDelayed",
|
14999
|
+
"output_required": false,
|
15000
|
+
"type": "int",
|
15001
|
+
"value_allowed_null": true
|
15002
|
+
}
|
15003
|
+
],
|
15004
|
+
"usage": "out"
|
15005
|
+
},
|
14705
15006
|
"RabbitMQPrivateNode": {
|
14706
15007
|
"document": "RabbitMQ节点信息",
|
14707
15008
|
"members": [
|
@@ -548,6 +548,14 @@
|
|
548
548
|
"title": "获取实例列表"
|
549
549
|
}
|
550
550
|
],
|
551
|
+
"DescribeRabbitMQExchanges": [
|
552
|
+
{
|
553
|
+
"document": "查询RabbitMQ exchange 列表",
|
554
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRabbitMQExchanges\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-44w9928j\",\n \"VirtualHost\": \"vhost1\"\n}",
|
555
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"request1\",\n \"ExchangeInfoList\": [\n {\n \"ExchangeName\": \"test1\",\n \"ExchangeType\": \"fanout\",\n \"Remark\": \"test1\",\n \"VirtualHost\": \"vhost1\",\n \"ExchangeCreator\": \"user\",\n \"CreateTimeStamp\": \"2022-12-04 01:08:43\",\n \"ModTimeStamp\": \"2022-12-04 01:08:43\"\n },\n {\n \"ExchangeName\": \"test2\",\n \"ExchangeType\": \"direct\",\n \"Remark\": \"test2\",\n \"VirtualHost\": \"vhost1\",\n \"ExchangeCreator\": \"user\",\n \"CreateTimeStamp\": \"2022-12-04 01:08:43\",\n \"ModTimeStamp\": \"2022-12-04 01:08:43\"\n }\n ],\n \"TotalCount\": 2\n }\n}",
|
556
|
+
"title": "查询RabbitMQ exchange 列表"
|
557
|
+
}
|
558
|
+
],
|
551
559
|
"DescribeRabbitMQNodeList": [
|
552
560
|
{
|
553
561
|
"document": "RabbitMQ专享版查询节点列表 在查询节点的时候使用。",
|
@@ -821,7 +821,7 @@
|
|
821
821
|
"example": "service-3gn56p6v",
|
822
822
|
"member": "string",
|
823
823
|
"name": "Result",
|
824
|
-
"
|
824
|
+
"output_required": true,
|
825
825
|
"type": "string",
|
826
826
|
"value_allowed_null": false
|
827
827
|
},
|
@@ -8629,7 +8629,8 @@
|
|
8629
8629
|
"example": "test",
|
8630
8630
|
"member": "string",
|
8631
8631
|
"name": "EnterpriseInstanceName",
|
8632
|
-
"
|
8632
|
+
"output_required": true,
|
8633
|
+
"required": false,
|
8633
8634
|
"type": "string",
|
8634
8635
|
"value_allowed_null": true
|
8635
8636
|
},
|
@@ -8639,7 +8640,8 @@
|
|
8639
8640
|
"example": "0",
|
8640
8641
|
"member": "int64",
|
8641
8642
|
"name": "EnterpriseInstanceChargeType",
|
8642
|
-
"
|
8643
|
+
"output_required": true,
|
8644
|
+
"required": false,
|
8643
8645
|
"type": "int",
|
8644
8646
|
"value_allowed_null": true
|
8645
8647
|
},
|
@@ -8649,12 +8651,13 @@
|
|
8649
8651
|
"example": "basic",
|
8650
8652
|
"member": "string",
|
8651
8653
|
"name": "EnterpriseInstanceType",
|
8652
|
-
"
|
8654
|
+
"output_required": true,
|
8655
|
+
"required": false,
|
8653
8656
|
"type": "string",
|
8654
8657
|
"value_allowed_null": true
|
8655
8658
|
}
|
8656
8659
|
],
|
8657
|
-
"usage": "
|
8660
|
+
"usage": "both"
|
8658
8661
|
},
|
8659
8662
|
"WorkloadInfo": {
|
8660
8663
|
"document": "工作负载详情",
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"CreateApplication": [
|
4
4
|
{
|
5
5
|
"document": "创建应用",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: tem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateApplication\n<公共请求参数>\n\n{\n \"ApplicationName\": \"
|
7
|
-
"output": "{\n \"Response\": {\n \"Result\": \"
|
6
|
+
"input": "POST / HTTP/1.1\nHost: tem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateApplication\n<公共请求参数>\n\n{\n \"ApplicationName\": \"abc\",\n \"Description\": \"abc\",\n \"UseDefaultImageService\": 0,\n \"RepoType\": 0,\n \"InstanceId\": \"abc\",\n \"RepoServer\": \"abc\",\n \"RepoName\": \"abc\",\n \"SourceChannel\": 0,\n \"SubnetList\": [\n \"abc\"\n ],\n \"CodingLanguage\": \"abc\",\n \"DeployMode\": \"abc\",\n \"EnableTracing\": 0,\n \"UseDefaultImageServiceParameters\": {\n \"EnterpriseInstanceName\": \"abc\",\n \"EnterpriseInstanceChargeType\": 0,\n \"EnterpriseInstanceType\": \"abc\"\n },\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Result\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
8
8
|
"title": "创建应用"
|
9
9
|
}
|
10
10
|
],
|
@@ -20099,7 +20099,7 @@
|
|
20099
20099
|
{
|
20100
20100
|
"disabled": false,
|
20101
20101
|
"document": "集群类型",
|
20102
|
-
"example": "",
|
20102
|
+
"example": "无",
|
20103
20103
|
"member": "string",
|
20104
20104
|
"name": "ClusterType",
|
20105
20105
|
"required": true,
|
@@ -20109,7 +20109,7 @@
|
|
20109
20109
|
{
|
20110
20110
|
"disabled": false,
|
20111
20111
|
"document": "集群id",
|
20112
|
-
"example": "",
|
20112
|
+
"example": "无",
|
20113
20113
|
"member": "string",
|
20114
20114
|
"name": "ClusterId",
|
20115
20115
|
"required": true,
|
@@ -20119,12 +20119,22 @@
|
|
20119
20119
|
{
|
20120
20120
|
"disabled": false,
|
20121
20121
|
"document": "备注",
|
20122
|
-
"example": "",
|
20122
|
+
"example": "无",
|
20123
20123
|
"member": "string",
|
20124
20124
|
"name": "Describe",
|
20125
20125
|
"required": false,
|
20126
20126
|
"type": "string",
|
20127
20127
|
"value_allowed_null": false
|
20128
|
+
},
|
20129
|
+
{
|
20130
|
+
"disabled": false,
|
20131
|
+
"document": "集群所在地域",
|
20132
|
+
"example": "无",
|
20133
|
+
"member": "string",
|
20134
|
+
"name": "Region",
|
20135
|
+
"required": false,
|
20136
|
+
"type": "string",
|
20137
|
+
"value_allowed_null": false
|
20128
20138
|
}
|
20129
20139
|
],
|
20130
20140
|
"usage": "in"
|
@@ -693,6 +693,58 @@ def doDeleteConsumerGroup(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
+
def doDescribeMQTTMessage(args, parsed_globals):
|
697
|
+
g_param = parse_global_arg(parsed_globals)
|
698
|
+
|
699
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
700
|
+
cred = credential.CVMRoleCredential()
|
701
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
|
+
cred = credential.STSAssumeRoleCredential(
|
703
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
705
|
+
)
|
706
|
+
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):
|
707
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
708
|
+
else:
|
709
|
+
cred = credential.Credential(
|
710
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
711
|
+
)
|
712
|
+
http_profile = HttpProfile(
|
713
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
714
|
+
reqMethod="POST",
|
715
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
716
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
717
|
+
)
|
718
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
719
|
+
if g_param[OptionsDefine.Language]:
|
720
|
+
profile.language = g_param[OptionsDefine.Language]
|
721
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
722
|
+
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
723
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
724
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
+
model = models.DescribeMQTTMessageRequest()
|
726
|
+
model.from_json_string(json.dumps(args))
|
727
|
+
start_time = time.time()
|
728
|
+
while True:
|
729
|
+
rsp = client.DescribeMQTTMessage(model)
|
730
|
+
result = rsp.to_json_string()
|
731
|
+
try:
|
732
|
+
json_obj = json.loads(result)
|
733
|
+
except TypeError as e:
|
734
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
735
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
736
|
+
break
|
737
|
+
cur_time = time.time()
|
738
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
739
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
740
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
741
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
742
|
+
else:
|
743
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
744
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
745
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
|
+
|
747
|
+
|
696
748
|
def doModifyConsumerGroup(args, parsed_globals):
|
697
749
|
g_param = parse_global_arg(parsed_globals)
|
698
750
|
|
@@ -901,7 +953,7 @@ def doDeleteMQTTInstance(args, parsed_globals):
|
|
901
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
954
|
|
903
955
|
|
904
|
-
def
|
956
|
+
def doDescribeProductSKUs(args, parsed_globals):
|
905
957
|
g_param = parse_global_arg(parsed_globals)
|
906
958
|
|
907
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -930,11 +982,11 @@ def doDescribeMQTTMessage(args, parsed_globals):
|
|
930
982
|
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
931
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
932
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
-
model = models.
|
985
|
+
model = models.DescribeProductSKUsRequest()
|
934
986
|
model.from_json_string(json.dumps(args))
|
935
987
|
start_time = time.time()
|
936
988
|
while True:
|
937
|
-
rsp = client.
|
989
|
+
rsp = client.DescribeProductSKUs(model)
|
938
990
|
result = rsp.to_json_string()
|
939
991
|
try:
|
940
992
|
json_obj = json.loads(result)
|
@@ -1057,7 +1109,7 @@ def doModifyMQTTInstance(args, parsed_globals):
|
|
1057
1109
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
1110
|
|
1059
1111
|
|
1060
|
-
def
|
1112
|
+
def doDescribeMQTTTopic(args, parsed_globals):
|
1061
1113
|
g_param = parse_global_arg(parsed_globals)
|
1062
1114
|
|
1063
1115
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1086,11 +1138,11 @@ def doImportSourceClusterTopics(args, parsed_globals):
|
|
1086
1138
|
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
1087
1139
|
client._sdkVersion += ("_CLI_" + __version__)
|
1088
1140
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1089
|
-
model = models.
|
1141
|
+
model = models.DescribeMQTTTopicRequest()
|
1090
1142
|
model.from_json_string(json.dumps(args))
|
1091
1143
|
start_time = time.time()
|
1092
1144
|
while True:
|
1093
|
-
rsp = client.
|
1145
|
+
rsp = client.DescribeMQTTTopic(model)
|
1094
1146
|
result = rsp.to_json_string()
|
1095
1147
|
try:
|
1096
1148
|
json_obj = json.loads(result)
|
@@ -1837,7 +1889,7 @@ def doDescribeMQTTInstanceList(args, parsed_globals):
|
|
1837
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1890
|
|
1839
1891
|
|
1840
|
-
def
|
1892
|
+
def doImportSourceClusterTopics(args, parsed_globals):
|
1841
1893
|
g_param = parse_global_arg(parsed_globals)
|
1842
1894
|
|
1843
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1918,11 @@ def doDescribeMQTTTopic(args, parsed_globals):
|
|
1866
1918
|
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1921
|
+
model = models.ImportSourceClusterTopicsRequest()
|
1870
1922
|
model.from_json_string(json.dumps(args))
|
1871
1923
|
start_time = time.time()
|
1872
1924
|
while True:
|
1873
|
-
rsp = client.
|
1925
|
+
rsp = client.ImportSourceClusterTopics(model)
|
1874
1926
|
result = rsp.to_json_string()
|
1875
1927
|
try:
|
1876
1928
|
json_obj = json.loads(result)
|
@@ -2485,14 +2537,15 @@ ACTION_MAP = {
|
|
2485
2537
|
"DeleteMQTTInsPublicEndpoint": doDeleteMQTTInsPublicEndpoint,
|
2486
2538
|
"DescribeRoleList": doDescribeRoleList,
|
2487
2539
|
"DeleteConsumerGroup": doDeleteConsumerGroup,
|
2540
|
+
"DescribeMQTTMessage": doDescribeMQTTMessage,
|
2488
2541
|
"ModifyConsumerGroup": doModifyConsumerGroup,
|
2489
2542
|
"DescribeMQTTInsVPCEndpoints": doDescribeMQTTInsVPCEndpoints,
|
2490
2543
|
"DeleteRole": doDeleteRole,
|
2491
2544
|
"DeleteMQTTInstance": doDeleteMQTTInstance,
|
2492
|
-
"
|
2545
|
+
"DescribeProductSKUs": doDescribeProductSKUs,
|
2493
2546
|
"ImportSourceClusterConsumerGroups": doImportSourceClusterConsumerGroups,
|
2494
2547
|
"ModifyMQTTInstance": doModifyMQTTInstance,
|
2495
|
-
"
|
2548
|
+
"DescribeMQTTTopic": doDescribeMQTTTopic,
|
2496
2549
|
"ModifyMQTTInsPublicEndpoint": doModifyMQTTInsPublicEndpoint,
|
2497
2550
|
"DescribeConsumerGroup": doDescribeConsumerGroup,
|
2498
2551
|
"CreateTopic": doCreateTopic,
|
@@ -2507,7 +2560,7 @@ ACTION_MAP = {
|
|
2507
2560
|
"DescribeMQTTInstanceCert": doDescribeMQTTInstanceCert,
|
2508
2561
|
"ModifyMQTTInstanceCertBinding": doModifyMQTTInstanceCertBinding,
|
2509
2562
|
"DescribeMQTTInstanceList": doDescribeMQTTInstanceList,
|
2510
|
-
"
|
2563
|
+
"ImportSourceClusterTopics": doImportSourceClusterTopics,
|
2511
2564
|
"CreateMQTTInstance": doCreateMQTTInstance,
|
2512
2565
|
"DescribeInstanceList": doDescribeInstanceList,
|
2513
2566
|
"DescribeMQTTInsPublicEndpoints": doDescribeMQTTInsPublicEndpoints,
|