tccli 3.0.1377.1__py2.py3-none-any.whl → 3.0.1379.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +22 -0
- tccli/services/autoscaling/v20180419/api.json +3 -3
- tccli/services/cls/v20201016/api.json +8 -6
- tccli/services/cynosdb/v20190107/api.json +11 -11
- tccli/services/dlc/v20210125/api.json +1 -1
- tccli/services/dts/v20211206/api.json +78 -1
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +150 -9
- tccli/services/iotexplorer/iotexplorer_client.py +53 -0
- tccli/services/iotexplorer/v20190423/api.json +209 -0
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/ocr/v20181119/api.json +8 -8
- tccli/services/partners/v20180321/api.json +10 -10
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +155 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +16 -5
- tccli/services/tsf/v20180326/api.json +4 -4
- tccli/services/vclm/v20240523/api.json +9 -0
- tccli/services/waf/v20180125/api.json +3 -3
- tccli/services/wedata/v20210820/api.json +926 -555
- tccli/services/wedata/v20210820/examples.json +9 -17
- tccli/services/wedata/wedata_client.py +57 -110
- {tccli-3.0.1377.1.dist-info → tccli-3.0.1379.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1377.1.dist-info → tccli-3.0.1379.1.dist-info}/RECORD +29 -29
- {tccli-3.0.1377.1.dist-info → tccli-3.0.1379.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1377.1.dist-info → tccli-3.0.1379.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1377.1.dist-info → tccli-3.0.1379.1.dist-info}/license_files/LICENSE +0 -0
@@ -6413,6 +6413,58 @@ def doInvokeVideosKeywordsAnalyzer(args, parsed_globals):
|
|
6413
6413
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6414
6414
|
|
6415
6415
|
|
6416
|
+
def doDescribeTWeSeeRecognitionTask(args, parsed_globals):
|
6417
|
+
g_param = parse_global_arg(parsed_globals)
|
6418
|
+
|
6419
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6420
|
+
cred = credential.CVMRoleCredential()
|
6421
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6422
|
+
cred = credential.STSAssumeRoleCredential(
|
6423
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6424
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6425
|
+
)
|
6426
|
+
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):
|
6427
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6428
|
+
else:
|
6429
|
+
cred = credential.Credential(
|
6430
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6431
|
+
)
|
6432
|
+
http_profile = HttpProfile(
|
6433
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6434
|
+
reqMethod="POST",
|
6435
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6436
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6437
|
+
)
|
6438
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6439
|
+
if g_param[OptionsDefine.Language]:
|
6440
|
+
profile.language = g_param[OptionsDefine.Language]
|
6441
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6442
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
6443
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6444
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6445
|
+
model = models.DescribeTWeSeeRecognitionTaskRequest()
|
6446
|
+
model.from_json_string(json.dumps(args))
|
6447
|
+
start_time = time.time()
|
6448
|
+
while True:
|
6449
|
+
rsp = client.DescribeTWeSeeRecognitionTask(model)
|
6450
|
+
result = rsp.to_json_string()
|
6451
|
+
try:
|
6452
|
+
json_obj = json.loads(result)
|
6453
|
+
except TypeError as e:
|
6454
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6455
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6456
|
+
break
|
6457
|
+
cur_time = time.time()
|
6458
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6459
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6460
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6461
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6462
|
+
else:
|
6463
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6464
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6465
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6466
|
+
|
6467
|
+
|
6416
6468
|
def doDescribeBatchProduction(args, parsed_globals):
|
6417
6469
|
g_param = parse_global_arg(parsed_globals)
|
6418
6470
|
|
@@ -8939,6 +8991,7 @@ ACTION_MAP = {
|
|
8939
8991
|
"DescribeProject": doDescribeProject,
|
8940
8992
|
"GetStudioProductList": doGetStudioProductList,
|
8941
8993
|
"InvokeVideosKeywordsAnalyzer": doInvokeVideosKeywordsAnalyzer,
|
8994
|
+
"DescribeTWeSeeRecognitionTask": doDescribeTWeSeeRecognitionTask,
|
8942
8995
|
"DescribeBatchProduction": doDescribeBatchProduction,
|
8943
8996
|
"CreateExternalSourceAIServiceTask": doCreateExternalSourceAIServiceTask,
|
8944
8997
|
"ActivateTWeCallLicense": doActivateTWeCallLicense,
|
@@ -665,6 +665,13 @@
|
|
665
665
|
"output": "DescribeTWeSeeConfigResponse",
|
666
666
|
"status": "online"
|
667
667
|
},
|
668
|
+
"DescribeTWeSeeRecognitionTask": {
|
669
|
+
"document": "查询 TWeSee 语义理解任务",
|
670
|
+
"input": "DescribeTWeSeeRecognitionTaskRequest",
|
671
|
+
"name": "查询 TWeSee 语义理解任务",
|
672
|
+
"output": "DescribeTWeSeeRecognitionTaskResponse",
|
673
|
+
"status": "online"
|
674
|
+
},
|
668
675
|
"DescribeTopicPolicy": {
|
669
676
|
"document": "本接口(DescribeTopicPolicy)用于查看Topic详细信息",
|
670
677
|
"input": "DescribeTopicPolicyRequest",
|
@@ -8915,6 +8922,52 @@
|
|
8915
8922
|
],
|
8916
8923
|
"type": "object"
|
8917
8924
|
},
|
8925
|
+
"DescribeTWeSeeRecognitionTaskRequest": {
|
8926
|
+
"document": "DescribeTWeSeeRecognitionTask请求参数结构体",
|
8927
|
+
"members": [
|
8928
|
+
{
|
8929
|
+
"disabled": false,
|
8930
|
+
"document": "任务 ID",
|
8931
|
+
"example": "01985f3b-1781-75e6-aed5-d6510855f086",
|
8932
|
+
"member": "string",
|
8933
|
+
"name": "TaskId",
|
8934
|
+
"required": true,
|
8935
|
+
"type": "string"
|
8936
|
+
},
|
8937
|
+
{
|
8938
|
+
"disabled": false,
|
8939
|
+
"document": "下载 URL 的过期时间。\n\n若传入该参数,则响应中将包含所有文件的下载 URL",
|
8940
|
+
"example": "1743436800",
|
8941
|
+
"member": "int64",
|
8942
|
+
"name": "FileURLExpireTime",
|
8943
|
+
"required": false,
|
8944
|
+
"type": "int"
|
8945
|
+
}
|
8946
|
+
],
|
8947
|
+
"type": "object"
|
8948
|
+
},
|
8949
|
+
"DescribeTWeSeeRecognitionTaskResponse": {
|
8950
|
+
"document": "DescribeTWeSeeRecognitionTask返回参数结构体",
|
8951
|
+
"members": [
|
8952
|
+
{
|
8953
|
+
"disabled": false,
|
8954
|
+
"document": "任务信息",
|
8955
|
+
"example": "无",
|
8956
|
+
"member": "VisionRecognitionTask",
|
8957
|
+
"name": "TaskInfo",
|
8958
|
+
"output_required": true,
|
8959
|
+
"type": "object",
|
8960
|
+
"value_allowed_null": false
|
8961
|
+
},
|
8962
|
+
{
|
8963
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
8964
|
+
"member": "string",
|
8965
|
+
"name": "RequestId",
|
8966
|
+
"type": "string"
|
8967
|
+
}
|
8968
|
+
],
|
8969
|
+
"type": "object"
|
8970
|
+
},
|
8918
8971
|
"DescribeTopicPolicyRequest": {
|
8919
8972
|
"document": "DescribeTopicPolicy请求参数结构体",
|
8920
8973
|
"members": [
|
@@ -17396,6 +17449,162 @@
|
|
17396
17449
|
],
|
17397
17450
|
"usage": "out"
|
17398
17451
|
},
|
17452
|
+
"VisionRecognitionTask": {
|
17453
|
+
"document": "TWeSee 语义理解任务信息",
|
17454
|
+
"members": [
|
17455
|
+
{
|
17456
|
+
"disabled": false,
|
17457
|
+
"document": "云存 AI 服务任务 ID",
|
17458
|
+
"example": "fb066d7a-baac-4706-acda-058f56f82759",
|
17459
|
+
"member": "string",
|
17460
|
+
"name": "TaskId",
|
17461
|
+
"output_required": true,
|
17462
|
+
"type": "string",
|
17463
|
+
"value_allowed_null": false
|
17464
|
+
},
|
17465
|
+
{
|
17466
|
+
"disabled": false,
|
17467
|
+
"document": "产品 ID",
|
17468
|
+
"example": "TQBDY6RPI9",
|
17469
|
+
"member": "string",
|
17470
|
+
"name": "ProductId",
|
17471
|
+
"output_required": true,
|
17472
|
+
"type": "string",
|
17473
|
+
"value_allowed_null": false
|
17474
|
+
},
|
17475
|
+
{
|
17476
|
+
"disabled": false,
|
17477
|
+
"document": "设备名称",
|
17478
|
+
"example": "cs_112114601_2",
|
17479
|
+
"member": "string",
|
17480
|
+
"name": "DeviceName",
|
17481
|
+
"output_required": true,
|
17482
|
+
"type": "string",
|
17483
|
+
"value_allowed_null": false
|
17484
|
+
},
|
17485
|
+
{
|
17486
|
+
"disabled": false,
|
17487
|
+
"document": "通道 ID",
|
17488
|
+
"example": "0",
|
17489
|
+
"member": "uint64",
|
17490
|
+
"name": "ChannelId",
|
17491
|
+
"output_required": true,
|
17492
|
+
"type": "int",
|
17493
|
+
"value_allowed_null": false
|
17494
|
+
},
|
17495
|
+
{
|
17496
|
+
"disabled": false,
|
17497
|
+
"document": "对应云存视频的起始时间(秒级 UNIX 时间戳)",
|
17498
|
+
"example": "1710487888",
|
17499
|
+
"member": "int64",
|
17500
|
+
"name": "StartTime",
|
17501
|
+
"output_required": true,
|
17502
|
+
"type": "int",
|
17503
|
+
"value_allowed_null": false
|
17504
|
+
},
|
17505
|
+
{
|
17506
|
+
"disabled": false,
|
17507
|
+
"document": "对应云存视频的起始时间(毫秒级 UNIX 时间戳)",
|
17508
|
+
"example": "1710487888270",
|
17509
|
+
"member": "int64",
|
17510
|
+
"name": "StartTimeMs",
|
17511
|
+
"output_required": false,
|
17512
|
+
"type": "int",
|
17513
|
+
"value_allowed_null": false
|
17514
|
+
},
|
17515
|
+
{
|
17516
|
+
"disabled": false,
|
17517
|
+
"document": "对应云存视频的结束时间(秒级 UNIX 时间戳)",
|
17518
|
+
"example": "1710487898",
|
17519
|
+
"member": "int64",
|
17520
|
+
"name": "EndTime",
|
17521
|
+
"output_required": true,
|
17522
|
+
"type": "int",
|
17523
|
+
"value_allowed_null": false
|
17524
|
+
},
|
17525
|
+
{
|
17526
|
+
"disabled": false,
|
17527
|
+
"document": "对应云存视频的结束时间(毫秒级 UNIX 时间戳)",
|
17528
|
+
"example": "1710487898990",
|
17529
|
+
"member": "int64",
|
17530
|
+
"name": "EndTimeMs",
|
17531
|
+
"output_required": false,
|
17532
|
+
"type": "int",
|
17533
|
+
"value_allowed_null": false
|
17534
|
+
},
|
17535
|
+
{
|
17536
|
+
"disabled": false,
|
17537
|
+
"document": "任务状态(1:分析失败;2:下载/读取视频/图片失败;3:成功;4:执行中)",
|
17538
|
+
"example": "3",
|
17539
|
+
"member": "uint64",
|
17540
|
+
"name": "Status",
|
17541
|
+
"output_required": true,
|
17542
|
+
"type": "int",
|
17543
|
+
"value_allowed_null": false
|
17544
|
+
},
|
17545
|
+
{
|
17546
|
+
"disabled": false,
|
17547
|
+
"document": "任务结果",
|
17548
|
+
"example": "无",
|
17549
|
+
"member": "VisionRecognitionResult",
|
17550
|
+
"name": "Result",
|
17551
|
+
"output_required": true,
|
17552
|
+
"type": "object",
|
17553
|
+
"value_allowed_null": false
|
17554
|
+
},
|
17555
|
+
{
|
17556
|
+
"disabled": false,
|
17557
|
+
"document": "创建时间",
|
17558
|
+
"example": "1711338476",
|
17559
|
+
"member": "int64",
|
17560
|
+
"name": "CreateTime",
|
17561
|
+
"output_required": true,
|
17562
|
+
"type": "int",
|
17563
|
+
"value_allowed_null": false
|
17564
|
+
},
|
17565
|
+
{
|
17566
|
+
"disabled": false,
|
17567
|
+
"document": "最后更新时间",
|
17568
|
+
"example": "1711338476",
|
17569
|
+
"member": "int64",
|
17570
|
+
"name": "UpdateTime",
|
17571
|
+
"output_required": true,
|
17572
|
+
"type": "int",
|
17573
|
+
"value_allowed_null": false
|
17574
|
+
},
|
17575
|
+
{
|
17576
|
+
"disabled": false,
|
17577
|
+
"document": "自定义任务 ID",
|
17578
|
+
"example": "your-custom-id",
|
17579
|
+
"member": "string",
|
17580
|
+
"name": "CustomId",
|
17581
|
+
"output_required": false,
|
17582
|
+
"type": "string",
|
17583
|
+
"value_allowed_null": false
|
17584
|
+
},
|
17585
|
+
{
|
17586
|
+
"disabled": false,
|
17587
|
+
"document": "任务输出文件列表",
|
17588
|
+
"example": "[\"thumbnail.jpg\"]",
|
17589
|
+
"member": "string",
|
17590
|
+
"name": "Files",
|
17591
|
+
"output_required": true,
|
17592
|
+
"type": "list",
|
17593
|
+
"value_allowed_null": false
|
17594
|
+
},
|
17595
|
+
{
|
17596
|
+
"disabled": false,
|
17597
|
+
"document": "任务输出文件信息列表",
|
17598
|
+
"example": "无",
|
17599
|
+
"member": "CloudStorageAIServiceTaskFileInfo",
|
17600
|
+
"name": "FilesInfo",
|
17601
|
+
"output_required": false,
|
17602
|
+
"type": "list",
|
17603
|
+
"value_allowed_null": false
|
17604
|
+
}
|
17605
|
+
],
|
17606
|
+
"usage": "out"
|
17607
|
+
},
|
17399
17608
|
"VisionSummaryConfig": {
|
17400
17609
|
"document": "视频摘要配置",
|
17401
17610
|
"members": [
|
@@ -874,6 +874,14 @@
|
|
874
874
|
"title": "查询 TWeSee 配置"
|
875
875
|
}
|
876
876
|
],
|
877
|
+
"DescribeTWeSeeRecognitionTask": [
|
878
|
+
{
|
879
|
+
"document": "",
|
880
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTWeSeeRecognitionTask\n<公共请求参数>\n\n{\n \"TaskId\": \"01985f3b-1781-75e6-aed5-d6510855f086\"\n}",
|
881
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a8632226-fe3c-4f70-86d9-eb995cefeae8\",\n \"TaskInfo\": {\n \"ChannelId\": 0,\n \"CreateTime\": 1753944365,\n \"DeviceName\": \"dev002\",\n \"EndTime\": 1753944365,\n \"EndTimeMs\": 1753944365774,\n \"Files\": [],\n \"FilesInfo\": [],\n \"ProductId\": \"4AHMY9X89Y\",\n \"Result\": {\n \"DetectedClassifications\": [\n \"person\",\n \"vehicle\"\n ],\n \"Status\": 3,\n \"Summary\": \"一穿蓝上衣的人驾驶蓝卡车在道路上行驶。\"\n },\n \"StartTime\": 1753944364,\n \"StartTimeMs\": 1753944364774,\n \"Status\": 3,\n \"TaskId\": \"01985f3b-1781-75e6-aed5-d6510855f086\",\n \"UpdateTime\": 1753944368\n }\n }\n}",
|
882
|
+
"title": "查询 TWeSee 语义理解任务"
|
883
|
+
}
|
884
|
+
],
|
877
885
|
"DescribeTopicPolicy": [
|
878
886
|
{
|
879
887
|
"document": "",
|
@@ -281,9 +281,9 @@
|
|
281
281
|
"status": "online"
|
282
282
|
},
|
283
283
|
"MLIDPassportOCR": {
|
284
|
-
"document": "
|
284
|
+
"document": "本接口支持中国大陆地区及中国港澳台地区、其他国家以及地区的护照识别。识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍、国家地区代码,具备护照人像照片的裁剪功能和翻拍、复印件告警功能。\n本接口支持地区范围:可机读护照国家。包括中国大陆地区、中国港澳台地区、新加坡、马来西亚、泰国、美国、韩国、越南、澳大利亚、缅甸、印度尼西亚、日本、加拿大、老挝、巴基斯坦、哈萨克斯坦、法国、英国、德国、菲律宾、新西兰、印度、意大利、蒙古、孟加拉国、尼日利亚、柬埔寨、西班牙、摩洛哥、吉尔吉斯斯坦、埃及、荷兰、塔吉克斯坦、巴西、乌兹别克斯坦、伊拉克、阿尔及利亚、土耳其、南非、墨西哥、尼泊尔、白俄罗斯、叶门、阿富汗、沙特、肯尼亚、波兰、比利时、瑞典、奥地利、坦桑尼亚、委内瑞拉、阿根廷、喀麦隆、斯里兰卡、衣索比亚、约旦、瑞士、加纳、爱尔兰、哥伦比亚、苏丹、匈牙利、罗马尼亚、阿联酋、文莱、希腊、以色列、巴拿马、丹麦、伊朗、乌干达、挪威、秘鲁、葡萄牙、智利、塞尔维亚、芬兰、尚比亚、亚美尼亚、叙利亚、黎巴嫩、斯洛伐克、卡塔尔、古巴、朝鲜。\n\n默认接口请求频率限制:5次/秒。",
|
285
285
|
"input": "MLIDPassportOCRRequest",
|
286
|
-
"name": "
|
286
|
+
"name": "护照识别(多国多地区护照)",
|
287
287
|
"output": "MLIDPassportOCRResponse",
|
288
288
|
"status": "online"
|
289
289
|
},
|
@@ -9355,7 +9355,7 @@
|
|
9355
9355
|
{
|
9356
9356
|
"disabled": false,
|
9357
9357
|
"document": "出生日期(机读码区的解析结果)",
|
9358
|
-
"example": "
|
9358
|
+
"example": "20230415",
|
9359
9359
|
"member": "string",
|
9360
9360
|
"name": "DateOfBirth",
|
9361
9361
|
"output_required": true,
|
@@ -9445,7 +9445,7 @@
|
|
9445
9445
|
{
|
9446
9446
|
"disabled": false,
|
9447
9447
|
"document": "最下方第二行 MRZ Code 序列",
|
9448
|
-
"example": "
|
9448
|
+
"example": "1357",
|
9449
9449
|
"member": "string",
|
9450
9450
|
"name": "CodeCrc",
|
9451
9451
|
"output_required": true,
|
@@ -9485,7 +9485,7 @@
|
|
9485
9485
|
{
|
9486
9486
|
"disabled": false,
|
9487
9487
|
"document": "信息区证件内容",
|
9488
|
-
"example": "
|
9488
|
+
"example": "无",
|
9489
9489
|
"member": "PassportRecognizeInfos",
|
9490
9490
|
"name": "PassportRecognizeInfos",
|
9491
9491
|
"output_required": true,
|
@@ -11665,7 +11665,7 @@
|
|
11665
11665
|
{
|
11666
11666
|
"disabled": false,
|
11667
11667
|
"document": "护照号",
|
11668
|
-
"example": "
|
11668
|
+
"example": "EQ4024254",
|
11669
11669
|
"member": "string",
|
11670
11670
|
"name": "PassportNo",
|
11671
11671
|
"output_required": true,
|
@@ -11765,7 +11765,7 @@
|
|
11765
11765
|
{
|
11766
11766
|
"disabled": false,
|
11767
11767
|
"document": "最下方第二行 MRZ Code 序列",
|
11768
|
-
"example": "
|
11768
|
+
"example": "EQ65243780C**********************OMAMGLNA878",
|
11769
11769
|
"member": "string",
|
11770
11770
|
"name": "CodeCrc",
|
11771
11771
|
"output_required": true,
|
@@ -11805,7 +11805,7 @@
|
|
11805
11805
|
{
|
11806
11806
|
"disabled": false,
|
11807
11807
|
"document": "头像和坐标信息",
|
11808
|
-
"example": "
|
11808
|
+
"example": "无",
|
11809
11809
|
"member": "PortraitImageInfo",
|
11810
11810
|
"name": "PortraitImageInfo",
|
11811
11811
|
"output_required": false,
|
@@ -612,8 +612,8 @@
|
|
612
612
|
"members": [
|
613
613
|
{
|
614
614
|
"disabled": false,
|
615
|
-
"document": "
|
616
|
-
"example": "
|
615
|
+
"document": " ID【请勿依赖该字段作为唯一标识】",
|
616
|
+
"example": "12231",
|
617
617
|
"member": "string",
|
618
618
|
"name": "DealId",
|
619
619
|
"output_required": true,
|
@@ -623,7 +623,7 @@
|
|
623
623
|
{
|
624
624
|
"disabled": false,
|
625
625
|
"document": "订单号【订单唯一键】",
|
626
|
-
"example": "
|
626
|
+
"example": "2020081592126562",
|
627
627
|
"member": "string",
|
628
628
|
"name": "DealName",
|
629
629
|
"output_required": true,
|
@@ -673,7 +673,7 @@
|
|
673
673
|
{
|
674
674
|
"disabled": false,
|
675
675
|
"document": "价格详情",
|
676
|
-
"example": "
|
676
|
+
"example": "无",
|
677
677
|
"member": "DealGoodsPriceNewElem",
|
678
678
|
"name": "GoodsPrice",
|
679
679
|
"output_required": true,
|
@@ -713,7 +713,7 @@
|
|
713
713
|
{
|
714
714
|
"disabled": false,
|
715
715
|
"document": "扣费流水号",
|
716
|
-
"example": "
|
716
|
+
"example": "2020081592126562",
|
717
717
|
"member": "string",
|
718
718
|
"name": "BillId",
|
719
719
|
"output_required": true,
|
@@ -742,7 +742,7 @@
|
|
742
742
|
},
|
743
743
|
{
|
744
744
|
"disabled": false,
|
745
|
-
"document": "
|
745
|
+
"document": "子订单状态(1-待支付,2-已支付,3-发货中,4-已发货,5-发货失败,6-已退款,7-已取消,8-已过期,9-已失效,12-支付中,13-退款中,30-处理中)\n\n控制台订单状态为大订单状态,是以上状态的聚合:未支付(1) 处理中(2,3,5,12,13,30) 已取消(7) 交易成功(4) 已过期(8) 已退款(6) 订单错误(9)",
|
746
746
|
"example": "1",
|
747
747
|
"member": "string",
|
748
748
|
"name": "Status",
|
@@ -793,7 +793,7 @@
|
|
793
793
|
{
|
794
794
|
"disabled": false,
|
795
795
|
"document": "大订单号",
|
796
|
-
"example": "
|
796
|
+
"example": "20200815921265621",
|
797
797
|
"member": "string",
|
798
798
|
"name": "BigDealId",
|
799
799
|
"output_required": true,
|
@@ -863,7 +863,7 @@
|
|
863
863
|
{
|
864
864
|
"disabled": false,
|
865
865
|
"document": "产品详情",
|
866
|
-
"example": "
|
866
|
+
"example": "无",
|
867
867
|
"member": "ProductInfoElem",
|
868
868
|
"name": "ProductInfo",
|
869
869
|
"output_required": true,
|
@@ -893,7 +893,7 @@
|
|
893
893
|
{
|
894
894
|
"disabled": false,
|
895
895
|
"document": "资源id",
|
896
|
-
"example": "[
|
896
|
+
"example": "[\"700000942629_20240110893045198634\"]",
|
897
897
|
"member": "string",
|
898
898
|
"name": "ResourceIds",
|
899
899
|
"output_required": true,
|
@@ -903,7 +903,7 @@
|
|
903
903
|
{
|
904
904
|
"disabled": false,
|
905
905
|
"document": "退款单的原订单信息。当前仅 DescribeClientDealsByCache 接口会返回该字段",
|
906
|
-
"example": "
|
906
|
+
"example": "无",
|
907
907
|
"member": "RefundMap",
|
908
908
|
"name": "RefundMap",
|
909
909
|
"output_required": false,
|
@@ -1733,6 +1733,58 @@ def doDescribeRocketMQTopicMsgs(args, parsed_globals):
|
|
1733
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1734
|
|
1735
1735
|
|
1736
|
+
def doDescribeRocketMQProducers(args, parsed_globals):
|
1737
|
+
g_param = parse_global_arg(parsed_globals)
|
1738
|
+
|
1739
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1740
|
+
cred = credential.CVMRoleCredential()
|
1741
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1742
|
+
cred = credential.STSAssumeRoleCredential(
|
1743
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1744
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1745
|
+
)
|
1746
|
+
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):
|
1747
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1748
|
+
else:
|
1749
|
+
cred = credential.Credential(
|
1750
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1751
|
+
)
|
1752
|
+
http_profile = HttpProfile(
|
1753
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1754
|
+
reqMethod="POST",
|
1755
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1756
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1757
|
+
)
|
1758
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1759
|
+
if g_param[OptionsDefine.Language]:
|
1760
|
+
profile.language = g_param[OptionsDefine.Language]
|
1761
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1762
|
+
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1764
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
+
model = models.DescribeRocketMQProducersRequest()
|
1766
|
+
model.from_json_string(json.dumps(args))
|
1767
|
+
start_time = time.time()
|
1768
|
+
while True:
|
1769
|
+
rsp = client.DescribeRocketMQProducers(model)
|
1770
|
+
result = rsp.to_json_string()
|
1771
|
+
try:
|
1772
|
+
json_obj = json.loads(result)
|
1773
|
+
except TypeError as e:
|
1774
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1775
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1776
|
+
break
|
1777
|
+
cur_time = time.time()
|
1778
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1779
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1780
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1781
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1782
|
+
else:
|
1783
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1784
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1785
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
|
+
|
1787
|
+
|
1736
1788
|
def doDescribeEnvironmentAttributes(args, parsed_globals):
|
1737
1789
|
g_param = parse_global_arg(parsed_globals)
|
1738
1790
|
|
@@ -7809,6 +7861,7 @@ ACTION_MAP = {
|
|
7809
7861
|
"ModifyRocketMQTopic": doModifyRocketMQTopic,
|
7810
7862
|
"ExecuteDisasterRecovery": doExecuteDisasterRecovery,
|
7811
7863
|
"DescribeRocketMQTopicMsgs": doDescribeRocketMQTopicMsgs,
|
7864
|
+
"DescribeRocketMQProducers": doDescribeRocketMQProducers,
|
7812
7865
|
"DescribeEnvironmentAttributes": doDescribeEnvironmentAttributes,
|
7813
7866
|
"GetTopicList": doGetTopicList,
|
7814
7867
|
"DescribePublisherSummary": doDescribePublisherSummary,
|