tccli 3.0.860.1__py2.py3-none-any.whl → 3.0.861.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/cwp/v20180228/api.json +2 -2
- tccli/services/ess/ess_client.py +106 -0
- tccli/services/ess/v20201111/api.json +122 -0
- tccli/services/ess/v20201111/examples.json +28 -0
- tccli/services/ims/v20200713/examples.json +1 -1
- tccli/services/ims/v20201229/examples.json +1 -1
- tccli/services/rum/rum_client.py +261 -49
- tccli/services/rum/v20210622/api.json +478 -0
- tccli/services/rum/v20210622/examples.json +32 -0
- tccli/services/trp/trp_client.py +176 -17
- tccli/services/trp/v20210515/api.json +207 -0
- tccli/services/trp/v20210515/examples.json +24 -0
- tccli/services/waf/v20180125/api.json +288 -0
- tccli/services/waf/v20180125/examples.json +16 -0
- tccli/services/waf/waf_client.py +114 -8
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/METADATA +2 -2
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/RECORD +22 -22
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.861.1'
|
@@ -1212,11 +1212,11 @@
|
|
1212
1212
|
"status": "online"
|
1213
1213
|
},
|
1214
1214
|
"DescribeSearchExportList": {
|
1215
|
-
"document": "导出ES查询文档列表",
|
1215
|
+
"document": "旧版日志下载接口下线\n\n导出ES查询文档列表",
|
1216
1216
|
"input": "DescribeSearchExportListRequest",
|
1217
1217
|
"name": "导出ES查询文档列表",
|
1218
1218
|
"output": "DescribeSearchExportListResponse",
|
1219
|
-
"status": "
|
1219
|
+
"status": "deprecated"
|
1220
1220
|
},
|
1221
1221
|
"DescribeSearchLogs": {
|
1222
1222
|
"document": "获取历史搜索记录",
|
tccli/services/ess/ess_client.py
CHANGED
@@ -537,6 +537,58 @@ def doVerifyPdf(args, parsed_globals):
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
538
|
|
539
539
|
|
540
|
+
def doUnbindEmployeeUserIdWithClientOpenId(args, parsed_globals):
|
541
|
+
g_param = parse_global_arg(parsed_globals)
|
542
|
+
|
543
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
544
|
+
cred = credential.CVMRoleCredential()
|
545
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
546
|
+
cred = credential.STSAssumeRoleCredential(
|
547
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
548
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
549
|
+
)
|
550
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
551
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
552
|
+
else:
|
553
|
+
cred = credential.Credential(
|
554
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
555
|
+
)
|
556
|
+
http_profile = HttpProfile(
|
557
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
558
|
+
reqMethod="POST",
|
559
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
560
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
561
|
+
)
|
562
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
563
|
+
if g_param[OptionsDefine.Language]:
|
564
|
+
profile.language = g_param[OptionsDefine.Language]
|
565
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
566
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
567
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
568
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
+
model = models.UnbindEmployeeUserIdWithClientOpenIdRequest()
|
570
|
+
model.from_json_string(json.dumps(args))
|
571
|
+
start_time = time.time()
|
572
|
+
while True:
|
573
|
+
rsp = client.UnbindEmployeeUserIdWithClientOpenId(model)
|
574
|
+
result = rsp.to_json_string()
|
575
|
+
try:
|
576
|
+
json_obj = json.loads(result)
|
577
|
+
except TypeError as e:
|
578
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
579
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
580
|
+
break
|
581
|
+
cur_time = time.time()
|
582
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
583
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
584
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
585
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
586
|
+
else:
|
587
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
588
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
589
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
|
+
|
591
|
+
|
540
592
|
def doCreateBatchCancelFlowUrl(args, parsed_globals):
|
541
593
|
g_param = parse_global_arg(parsed_globals)
|
542
594
|
|
@@ -589,6 +641,58 @@ def doCreateBatchCancelFlowUrl(args, parsed_globals):
|
|
589
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
642
|
|
591
643
|
|
644
|
+
def doBindEmployeeUserIdWithClientOpenId(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
653
|
+
)
|
654
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.BindEmployeeUserIdWithClientOpenIdRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.BindEmployeeUserIdWithClientOpenId(model)
|
678
|
+
result = rsp.to_json_string()
|
679
|
+
try:
|
680
|
+
json_obj = json.loads(result)
|
681
|
+
except TypeError as e:
|
682
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
683
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
684
|
+
break
|
685
|
+
cur_time = time.time()
|
686
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
687
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
688
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
689
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
690
|
+
else:
|
691
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
692
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
693
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
|
+
|
695
|
+
|
592
696
|
def doCreatePreparedPersonalEsign(args, parsed_globals):
|
593
697
|
g_param = parse_global_arg(parsed_globals)
|
594
698
|
|
@@ -2274,7 +2378,9 @@ ACTION_MAP = {
|
|
2274
2378
|
"CreateUserAutoSignEnableUrl": doCreateUserAutoSignEnableUrl,
|
2275
2379
|
"CreateFlowEvidenceReport": doCreateFlowEvidenceReport,
|
2276
2380
|
"VerifyPdf": doVerifyPdf,
|
2381
|
+
"UnbindEmployeeUserIdWithClientOpenId": doUnbindEmployeeUserIdWithClientOpenId,
|
2277
2382
|
"CreateBatchCancelFlowUrl": doCreateBatchCancelFlowUrl,
|
2383
|
+
"BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
|
2278
2384
|
"CreatePreparedPersonalEsign": doCreatePreparedPersonalEsign,
|
2279
2385
|
"CreateFlowApprovers": doCreateFlowApprovers,
|
2280
2386
|
"DeleteIntegrationRoleUsers": doDeleteIntegrationRoleUsers,
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"BindEmployeeUserIdWithClientOpenId": {
|
4
|
+
"document": "将电子签系统员工userId与客户系统员工openId进行绑定",
|
5
|
+
"input": "BindEmployeeUserIdWithClientOpenIdRequest",
|
6
|
+
"name": "员工userid与客户系统openid绑定",
|
7
|
+
"output": "BindEmployeeUserIdWithClientOpenIdResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"CancelFlow": {
|
4
11
|
"document": "用于撤销签署流程\n适用场景:如果某个合同流程当前至少还有一方没有签署,则可通过该接口取消该合同流程。常用于合同发错、内容填错,需要及时撤销的场景。\n注:如果合同流程中的参与方均已签署完毕,则无法通过该接口撤销合同。",
|
5
12
|
"input": "CancelFlowRequest",
|
@@ -280,6 +287,13 @@
|
|
280
287
|
"output": "StartFlowResponse",
|
281
288
|
"status": "online"
|
282
289
|
},
|
290
|
+
"UnbindEmployeeUserIdWithClientOpenId": {
|
291
|
+
"document": "将存在绑定关系的电子签系统员工userId与客户系统员工openId进行解绑",
|
292
|
+
"input": "UnbindEmployeeUserIdWithClientOpenIdRequest",
|
293
|
+
"name": "员工userid与客户系统openid解绑",
|
294
|
+
"output": "UnbindEmployeeUserIdWithClientOpenIdResponse",
|
295
|
+
"status": "online"
|
296
|
+
},
|
283
297
|
"UpdateIntegrationEmployees": {
|
284
298
|
"document": "更新员工信息(姓名,手机号,邮件),用户实名后无法更改姓名与手机号",
|
285
299
|
"input": "UpdateIntegrationEmployeesRequest",
|
@@ -682,6 +696,60 @@
|
|
682
696
|
],
|
683
697
|
"usage": "in"
|
684
698
|
},
|
699
|
+
"BindEmployeeUserIdWithClientOpenIdRequest": {
|
700
|
+
"document": "BindEmployeeUserIdWithClientOpenId请求参数结构体",
|
701
|
+
"members": [
|
702
|
+
{
|
703
|
+
"default": "",
|
704
|
+
"document": "OpenId与UserId二选一必填一个,当传入客户系统openId,传入的openId需与电子签员工userId绑定,且渠道channel必填,channel值为INTEGRATE,否则传入userId",
|
705
|
+
"example": "无",
|
706
|
+
"member": "UserInfo",
|
707
|
+
"name": "Operator",
|
708
|
+
"required": true,
|
709
|
+
"type": "object"
|
710
|
+
},
|
711
|
+
{
|
712
|
+
"default": "",
|
713
|
+
"document": "电子签系统员工UserId",
|
714
|
+
"example": "无",
|
715
|
+
"member": "string",
|
716
|
+
"name": "UserId",
|
717
|
+
"required": true,
|
718
|
+
"type": "string"
|
719
|
+
},
|
720
|
+
{
|
721
|
+
"default": "",
|
722
|
+
"document": "客户系统OpenId",
|
723
|
+
"example": "无",
|
724
|
+
"member": "string",
|
725
|
+
"name": "OpenId",
|
726
|
+
"required": true,
|
727
|
+
"type": "string"
|
728
|
+
}
|
729
|
+
],
|
730
|
+
"type": "object"
|
731
|
+
},
|
732
|
+
"BindEmployeeUserIdWithClientOpenIdResponse": {
|
733
|
+
"document": "BindEmployeeUserIdWithClientOpenId返回参数结构体",
|
734
|
+
"members": [
|
735
|
+
{
|
736
|
+
"document": "绑定是否成功,1表示成功,0表示失败",
|
737
|
+
"example": "无",
|
738
|
+
"member": "int64",
|
739
|
+
"name": "Status",
|
740
|
+
"required": true,
|
741
|
+
"type": "int",
|
742
|
+
"value_allowed_null": false
|
743
|
+
},
|
744
|
+
{
|
745
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
746
|
+
"member": "string",
|
747
|
+
"name": "RequestId",
|
748
|
+
"type": "string"
|
749
|
+
}
|
750
|
+
],
|
751
|
+
"type": "object"
|
752
|
+
},
|
685
753
|
"CallbackInfo": {
|
686
754
|
"document": "应用回调信息",
|
687
755
|
"members": [
|
@@ -6177,6 +6245,60 @@
|
|
6177
6245
|
],
|
6178
6246
|
"usage": "both"
|
6179
6247
|
},
|
6248
|
+
"UnbindEmployeeUserIdWithClientOpenIdRequest": {
|
6249
|
+
"document": "UnbindEmployeeUserIdWithClientOpenId请求参数结构体",
|
6250
|
+
"members": [
|
6251
|
+
{
|
6252
|
+
"default": "",
|
6253
|
+
"document": "OpenId与UserId二选一必填一个,当传入客户系统openId,传入的openId需与电子签员工userId绑定,且渠道channel必填,channel值为INTEGRATE,否则传入userId",
|
6254
|
+
"example": "无",
|
6255
|
+
"member": "UserInfo",
|
6256
|
+
"name": "Operator",
|
6257
|
+
"required": true,
|
6258
|
+
"type": "object"
|
6259
|
+
},
|
6260
|
+
{
|
6261
|
+
"default": "",
|
6262
|
+
"document": "电子签系统员工UserId",
|
6263
|
+
"example": "无",
|
6264
|
+
"member": "string",
|
6265
|
+
"name": "UserId",
|
6266
|
+
"required": true,
|
6267
|
+
"type": "string"
|
6268
|
+
},
|
6269
|
+
{
|
6270
|
+
"default": "",
|
6271
|
+
"document": "客户系统OpenId",
|
6272
|
+
"example": "无",
|
6273
|
+
"member": "string",
|
6274
|
+
"name": "OpenId",
|
6275
|
+
"required": true,
|
6276
|
+
"type": "string"
|
6277
|
+
}
|
6278
|
+
],
|
6279
|
+
"type": "object"
|
6280
|
+
},
|
6281
|
+
"UnbindEmployeeUserIdWithClientOpenIdResponse": {
|
6282
|
+
"document": "UnbindEmployeeUserIdWithClientOpenId返回参数结构体",
|
6283
|
+
"members": [
|
6284
|
+
{
|
6285
|
+
"document": "解绑是否成功,1表示成功,0表示失败",
|
6286
|
+
"example": "无",
|
6287
|
+
"member": "int64",
|
6288
|
+
"name": "Status",
|
6289
|
+
"required": true,
|
6290
|
+
"type": "int",
|
6291
|
+
"value_allowed_null": false
|
6292
|
+
},
|
6293
|
+
{
|
6294
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
6295
|
+
"member": "string",
|
6296
|
+
"name": "RequestId",
|
6297
|
+
"type": "string"
|
6298
|
+
}
|
6299
|
+
],
|
6300
|
+
"type": "object"
|
6301
|
+
},
|
6180
6302
|
"UpdateIntegrationEmployeesRequest": {
|
6181
6303
|
"document": "UpdateIntegrationEmployees请求参数结构体",
|
6182
6304
|
"members": [
|
@@ -1,5 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"BindEmployeeUserIdWithClientOpenId": [
|
4
|
+
{
|
5
|
+
"document": "",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindEmployeeUserIdWithClientOpenId\n<公共请求参数>\n\n{\n \"Operator\": {\n \"ProxyIp\": \"\",\n \"ClientIp\": \"0.0.0.1\",\n \"UserId\": \"\",\n \"Channel\": \"CLOUD_API\",\n \"OpenId\": \"12345\"\n },\n \"UserId\": \"************\",\n \"OpenId\": \"***********\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"s1665218505798774974\",\n \"Status\": 1\n }\n}",
|
8
|
+
"title": "示例1"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"document": "",
|
12
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindEmployeeUserIdWithClientOpenId\n<公共请求参数>\n\n{\n \"Operator\": {\n \"ProxyIp\": \"\",\n \"ClientIp\": \"0.0.0.1\",\n \"UserId\": \"**************\",\n \"Channel\": \"\",\n \"OpenId\": \"\"\n },\n \"UserId\": \"************\",\n \"OpenId\": \"***********\"\n}",
|
13
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"s1665218590874024539\",\n \"Status\": 1\n }\n}",
|
14
|
+
"title": "示例2"
|
15
|
+
}
|
16
|
+
],
|
3
17
|
"CancelFlow": [
|
4
18
|
{
|
5
19
|
"document": "撤销单个签署流程",
|
@@ -374,6 +388,20 @@
|
|
374
388
|
"title": "发起流程"
|
375
389
|
}
|
376
390
|
],
|
391
|
+
"UnbindEmployeeUserIdWithClientOpenId": [
|
392
|
+
{
|
393
|
+
"document": "",
|
394
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnbindEmployeeUserIdWithClientOpenId\n<公共请求参数>\n\n{\n \"Operator\": {\n \"ProxyIp\": \"\",\n \"ClientIp\": \"0.0.0.1\",\n \"UserId\": \"\",\n \"Channel\": \"CLOUD_API\",\n \"OpenId\": \"12345\"\n },\n \"UserId\": \"************\",\n \"OpenId\": \"***********\"\n}",
|
395
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"s1665384640598336866\",\n \"Status\": 1\n }\n}",
|
396
|
+
"title": "示例1"
|
397
|
+
},
|
398
|
+
{
|
399
|
+
"document": "",
|
400
|
+
"input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnbindEmployeeUserIdWithClientOpenId\n<公共请求参数>\n\n{\n \"Operator\": {\n \"ProxyIp\": \"\",\n \"ClientIp\": \"0.0.0.1\",\n \"UserId\": \"**************\",\n \"Channel\": \"\",\n \"OpenId\": \"\"\n },\n \"UserId\": \"************\",\n \"OpenId\": \"***********\"\n}",
|
401
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"s1665218558695032958\",\n \"Status\": 1\n }\n}",
|
402
|
+
"title": "示例2"
|
403
|
+
}
|
404
|
+
],
|
377
405
|
"UpdateIntegrationEmployees": [
|
378
406
|
{
|
379
407
|
"document": "更新员工名称,手机号",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
{
|
5
5
|
"document": "图片同步检测",
|
6
6
|
"input": "POST / HTTP/1.1\nHost: ims.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageModeration\n<公共请求参数>\n\n{\n \"BizType\": \"test_1001\",\n \"DataId\": \"1213\",\n \"FileUrl\": \"https://xxx.jpg\"\n}",
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"DataId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"BizType\": \"test_1001\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"HitFlag\": 1,\n \"LabelResults\": [\n {\n \"Scene\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"Details\": [\n {\n \"Id\": 0,\n \"Name\": \"SexBehavior\",\n \"Score\": 90\n }\n ]\n }\n ],\n \"ObjectResults\": [\n {\n \"Scene\": \"QrCode\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Score\": 100,\n \"Names\": [\n \"QRCODE\"\n ],\n \"Details\": [\n {\n \"Id\": 0,\n \"Name\": \"QRCODE\",\n \"Score\": 100,\n \"Location\": {\n \"X\": 155.01746,\n \"Y\": 396.01746,\n \"Width\": 769.9824,\n \"Height\": 769.98254,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"OcrResults\": [\n {\n \"HitFlag\": 0,\n \"Scene\": \"OCR\",\n \"Suggestion\": \"Pass\",\n \"Label\": \"Normal\",\n \"SubLabel\": \"\",\n \"Score\": 0,\n \"Text\": \"hello world\",\n \"Details\": [\n {\n \"Text\": \"hello world\",\n \"Label\": \"\",\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Keywords\": [],\n \"Rate\": 0,\n \"Score\": 0,\n \"Location\": {\n \"X\": 8,\n \"Y\": 0,\n \"Width\": 111,\n \"Height\": 19,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"LibResults\": [\n {\n \"Scene\": \"Similar\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"\",\n \"Score\": 99,\n \"Details\": [\n {\n \"LibName\": \"123\",\n \"Score\": 99,\n \"Label\": \"Porn\",\n \"Tag\": \"\",\n \"ImageId\": \"111\",\n \"Id\": 0,\n \"LibId\": \"\"\n }\n ],\n \"Suggestion\": \"Block\"\n }\n ],\n \"Extra\": \"\"\n }\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"DataId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"BizType\": \"test_1001\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"HitFlag\": 1,\n \"LabelResults\": [\n {\n \"Scene\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"Details\": [\n {\n \"Id\": 0,\n \"Name\": \"SexBehavior\",\n \"Score\": 90\n }\n ]\n }\n ],\n \"ObjectResults\": [\n {\n \"Scene\": \"QrCode\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Score\": 100,\n \"Names\": [\n \"QRCODE\"\n ],\n \"Details\": [\n {\n \"Id\": 0,\n \"Name\": \"QRCODE\",\n \"Value\": \"https://test.com/test\",\n \"Score\": 100,\n \"Location\": {\n \"X\": 155.01746,\n \"Y\": 396.01746,\n \"Width\": 769.9824,\n \"Height\": 769.98254,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"OcrResults\": [\n {\n \"HitFlag\": 0,\n \"Scene\": \"OCR\",\n \"Suggestion\": \"Pass\",\n \"Label\": \"Normal\",\n \"SubLabel\": \"\",\n \"Score\": 0,\n \"Text\": \"hello world\",\n \"Details\": [\n {\n \"Text\": \"hello world\",\n \"Label\": \"\",\n \"LibId\": \"\",\n \"LibName\": \"\",\n \"Keywords\": [],\n \"Rate\": 0,\n \"Score\": 0,\n \"Location\": {\n \"X\": 8,\n \"Y\": 0,\n \"Width\": 111,\n \"Height\": 19,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"LibResults\": [\n {\n \"Scene\": \"Similar\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"\",\n \"Score\": 99,\n \"Details\": [\n {\n \"LibName\": \"123\",\n \"Score\": 99,\n \"Label\": \"Porn\",\n \"Tag\": \"\",\n \"ImageId\": \"111\",\n \"Id\": 0,\n \"LibId\": \"\"\n }\n ],\n \"Suggestion\": \"Block\"\n }\n ],\n \"Extra\": \"\"\n }\n}",
|
8
8
|
"title": "图片同步检测"
|
9
9
|
}
|
10
10
|
]
|
@@ -12,7 +12,7 @@
|
|
12
12
|
{
|
13
13
|
"document": "图片同步检测",
|
14
14
|
"input": "POST / HTTP/1.1\nHost: ims.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImageModeration\n<公共请求参数>\n\n{\n \"BizType\": \"test_1001\",\n \"DataId\": \"1213\",\n \"FileUrl\": \"https://xxx.jpg\"\n}",
|
15
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"DataId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"BizType\": \"test_1001\",\n \"Suggestion\": \"Block\",\n \"FileMD5\": \"\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"LabelResults\": [\n {\n \"Scene\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"Details\": []\n }\n ],\n \"ObjectResults\": [\n {\n \"Scene\": \"QrCode\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Score\": 100,\n \"Names\": [\n \"QRCODE\"\n ],\n \"Details\": [\n {\n \"Id\": 0,\n \"Name\": \"QRCODE\",\n \"Score\": 100,\n \"Location\": {\n \"X\": 155.01746,\n \"Y\": 396.01746,\n \"Width\": 769.9824,\n \"Height\": 769.98254,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"OcrResults\": [],\n \"LibResults\": [],\n \"RecognitionResults\": [\n {\n \"Label\": \"Scene\",\n \"Tags\": [\n {\n \"Name\": \"MedicalImage\",\n \"Score\": 30,\n \"Location\": {\n \"X\": 0,\n \"Y\": 0,\n \"Width\": 0,\n \"Height\": 0,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"Extra\": \"\"\n }\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"DataId\": \"a61237dd-c2a0-43e7-a3da-d27022d39ba7\",\n \"BizType\": \"test_1001\",\n \"Suggestion\": \"Block\",\n \"FileMD5\": \"\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"LabelResults\": [\n {\n \"Scene\": \"Porn\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Porn\",\n \"SubLabel\": \"SexBehavior\",\n \"Score\": 90,\n \"Details\": []\n }\n ],\n \"ObjectResults\": [\n {\n \"Scene\": \"QrCode\",\n \"Suggestion\": \"Block\",\n \"Label\": \"Ad\",\n \"SubLabel\": \"\",\n \"Score\": 100,\n \"Names\": [\n \"QRCODE\"\n ],\n \"Details\": [\n {\n \"Id\": 0,\n \"Name\": \"QRCODE\",\n \"Value\": \"https://test.com/test\",\n \"SubLabel\": \"QRCODE\",\n \"Score\": 100,\n \"Location\": {\n \"X\": 155.01746,\n \"Y\": 396.01746,\n \"Width\": 769.9824,\n \"Height\": 769.98254,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"OcrResults\": [],\n \"LibResults\": [],\n \"RecognitionResults\": [\n {\n \"Label\": \"Scene\",\n \"Tags\": [\n {\n \"Name\": \"MedicalImage\",\n \"Score\": 30,\n \"Location\": {\n \"X\": 0,\n \"Y\": 0,\n \"Width\": 0,\n \"Height\": 0,\n \"Rotate\": 0\n }\n }\n ]\n }\n ],\n \"Extra\": \"\"\n }\n}",
|
16
16
|
"title": "图片同步检测"
|
17
17
|
}
|
18
18
|
]
|