tccli 3.0.1016.1__py2.py3-none-any.whl → 3.0.1018.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/examples/bi/v20220105/CreateEmbedToken.md +4 -2
- tccli/examples/cls/v20201016/CreateDeliverCloudFunction.md +6 -7
- tccli/examples/cls/v20201016/DescribeConfigExtras.md +69 -41
- tccli/examples/cls/v20201016/DescribeConfigMachineGroups.md +13 -6
- tccli/examples/cls/v20201016/DescribeDashboards.md +18 -23
- tccli/examples/cls/v20201016/DescribeMachineGroupConfigs.md +33 -27
- tccli/examples/cls/v20201016/GetAlarmLog.md +2 -0
- tccli/examples/es/v20180416/InquirePriceRenewInstance.md +24 -0
- tccli/examples/faceid/v20180301/ImageRecognitionV2.md +25 -0
- tccli/examples/monitor/v20180724/UpdateGrafanaNotificationChannel.md +2 -2
- tccli/examples/ms/v20180408/DestroyResourceInstances.md +50 -0
- tccli/examples/ocr/v20181119/BizLicenseOCR.md +1 -0
- tccli/services/bi/v20220105/api.json +37 -0
- tccli/services/bi/v20220105/examples.json +2 -2
- tccli/services/car/v20220110/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +4 -2
- tccli/services/cdc/v20201214/api.json +12 -12
- tccli/services/clb/v20180317/api.json +4 -4
- tccli/services/cls/v20201016/api.json +17 -7
- tccli/services/cls/v20201016/examples.json +13 -13
- tccli/services/cme/v20191029/api.json +6 -9
- tccli/services/cynosdb/v20190107/api.json +10 -0
- tccli/services/dts/v20211206/api.json +39 -8
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +77 -3
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/faceid/faceid_client.py +53 -0
- tccli/services/faceid/v20180301/api.json +100 -0
- tccli/services/faceid/v20180301/examples.json +8 -0
- tccli/services/gme/v20180711/api.json +4 -4
- tccli/services/lighthouse/v20200324/api.json +85 -83
- tccli/services/monitor/v20180724/api.json +125 -45
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/ms/ms_client.py +53 -0
- tccli/services/ms/v20180408/api.json +83 -0
- tccli/services/ms/v20180408/examples.json +14 -0
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +75 -8
- tccli/services/weilingwith/v20230427/api.json +83 -83
- {tccli-3.0.1016.1.dist-info → tccli-3.0.1018.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1016.1.dist-info → tccli-3.0.1018.1.dist-info}/RECORD +48 -45
- {tccli-3.0.1016.1.dist-info → tccli-3.0.1018.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1016.1.dist-info → tccli-3.0.1018.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1016.1.dist-info → tccli-3.0.1018.1.dist-info}/license_files/LICENSE +0 -0
@@ -589,6 +589,58 @@ def doBankCardVerification(args, parsed_globals):
|
|
589
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
590
|
|
591
591
|
|
592
|
+
def doImageRecognitionV2(args, parsed_globals):
|
593
|
+
g_param = parse_global_arg(parsed_globals)
|
594
|
+
|
595
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
596
|
+
cred = credential.CVMRoleCredential()
|
597
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
598
|
+
cred = credential.STSAssumeRoleCredential(
|
599
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
600
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
601
|
+
)
|
602
|
+
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):
|
603
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
604
|
+
else:
|
605
|
+
cred = credential.Credential(
|
606
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
607
|
+
)
|
608
|
+
http_profile = HttpProfile(
|
609
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
610
|
+
reqMethod="POST",
|
611
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
612
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
613
|
+
)
|
614
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
615
|
+
if g_param[OptionsDefine.Language]:
|
616
|
+
profile.language = g_param[OptionsDefine.Language]
|
617
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
618
|
+
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
619
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
620
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
621
|
+
model = models.ImageRecognitionV2Request()
|
622
|
+
model.from_json_string(json.dumps(args))
|
623
|
+
start_time = time.time()
|
624
|
+
while True:
|
625
|
+
rsp = client.ImageRecognitionV2(model)
|
626
|
+
result = rsp.to_json_string()
|
627
|
+
try:
|
628
|
+
json_obj = json.loads(result)
|
629
|
+
except TypeError as e:
|
630
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
631
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
632
|
+
break
|
633
|
+
cur_time = time.time()
|
634
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
635
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
636
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
637
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
638
|
+
else:
|
639
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
640
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
641
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
|
+
|
643
|
+
|
592
644
|
def doLivenessCompare(args, parsed_globals):
|
593
645
|
g_param = parse_global_arg(parsed_globals)
|
594
646
|
|
@@ -1807,6 +1859,7 @@ ACTION_MAP = {
|
|
1807
1859
|
"GetFaceIdToken": doGetFaceIdToken,
|
1808
1860
|
"CheckPhoneAndName": doCheckPhoneAndName,
|
1809
1861
|
"BankCardVerification": doBankCardVerification,
|
1862
|
+
"ImageRecognitionV2": doImageRecognitionV2,
|
1810
1863
|
"LivenessCompare": doLivenessCompare,
|
1811
1864
|
"DetectAuth": doDetectAuth,
|
1812
1865
|
"BankCard4EVerification": doBankCard4EVerification,
|
@@ -161,6 +161,13 @@
|
|
161
161
|
"output": "ImageRecognitionResponse",
|
162
162
|
"status": "online"
|
163
163
|
},
|
164
|
+
"ImageRecognitionV2": {
|
165
|
+
"document": "传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。",
|
166
|
+
"input": "ImageRecognitionV2Request",
|
167
|
+
"name": "照片人脸核身(V2.0)",
|
168
|
+
"output": "ImageRecognitionV2Response",
|
169
|
+
"status": "online"
|
170
|
+
},
|
164
171
|
"Liveness": {
|
165
172
|
"document": "活体检测",
|
166
173
|
"input": "LivenessRequest",
|
@@ -3223,6 +3230,99 @@
|
|
3223
3230
|
],
|
3224
3231
|
"type": "object"
|
3225
3232
|
},
|
3233
|
+
"ImageRecognitionV2Request": {
|
3234
|
+
"document": "ImageRecognitionV2请求参数结构体",
|
3235
|
+
"members": [
|
3236
|
+
{
|
3237
|
+
"disabled": false,
|
3238
|
+
"document": "身份证号",
|
3239
|
+
"example": "11204416541220243X",
|
3240
|
+
"member": "string",
|
3241
|
+
"name": "IdCard",
|
3242
|
+
"required": true,
|
3243
|
+
"type": "string"
|
3244
|
+
},
|
3245
|
+
{
|
3246
|
+
"disabled": false,
|
3247
|
+
"document": "姓名。中文请使用UTF-8编码。",
|
3248
|
+
"example": "韦小宝",
|
3249
|
+
"member": "string",
|
3250
|
+
"name": "Name",
|
3251
|
+
"required": true,
|
3252
|
+
"type": "string"
|
3253
|
+
},
|
3254
|
+
{
|
3255
|
+
"disabled": false,
|
3256
|
+
"document": "用于人脸比对的照片,图片的Base64值;\nBase64编码后的图片数据大小不超过3M,仅支持jpg、png格式。\n请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。",
|
3257
|
+
"example": "<ImageBase64>",
|
3258
|
+
"member": "string",
|
3259
|
+
"name": "ImageBase64",
|
3260
|
+
"required": true,
|
3261
|
+
"type": "string"
|
3262
|
+
},
|
3263
|
+
{
|
3264
|
+
"disabled": false,
|
3265
|
+
"document": "本接口不需要传递此参数。",
|
3266
|
+
"example": "无",
|
3267
|
+
"member": "string",
|
3268
|
+
"name": "Optional",
|
3269
|
+
"required": false,
|
3270
|
+
"type": "string"
|
3271
|
+
},
|
3272
|
+
{
|
3273
|
+
"disabled": false,
|
3274
|
+
"document": "敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。",
|
3275
|
+
"example": "无",
|
3276
|
+
"member": "Encryption",
|
3277
|
+
"name": "Encryption",
|
3278
|
+
"required": false,
|
3279
|
+
"type": "object"
|
3280
|
+
}
|
3281
|
+
],
|
3282
|
+
"type": "object"
|
3283
|
+
},
|
3284
|
+
"ImageRecognitionV2Response": {
|
3285
|
+
"document": "ImageRecognitionV2返回参数结构体",
|
3286
|
+
"members": [
|
3287
|
+
{
|
3288
|
+
"disabled": false,
|
3289
|
+
"document": "相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)",
|
3290
|
+
"example": "89.88",
|
3291
|
+
"member": "float",
|
3292
|
+
"name": "Sim",
|
3293
|
+
"output_required": true,
|
3294
|
+
"type": "float",
|
3295
|
+
"value_allowed_null": false
|
3296
|
+
},
|
3297
|
+
{
|
3298
|
+
"disabled": false,
|
3299
|
+
"document": "业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分",
|
3300
|
+
"example": "Success",
|
3301
|
+
"member": "string",
|
3302
|
+
"name": "Result",
|
3303
|
+
"output_required": true,
|
3304
|
+
"type": "string",
|
3305
|
+
"value_allowed_null": false
|
3306
|
+
},
|
3307
|
+
{
|
3308
|
+
"disabled": false,
|
3309
|
+
"document": "业务结果描述。",
|
3310
|
+
"example": "成功",
|
3311
|
+
"member": "string",
|
3312
|
+
"name": "Description",
|
3313
|
+
"output_required": true,
|
3314
|
+
"type": "string",
|
3315
|
+
"value_allowed_null": false
|
3316
|
+
},
|
3317
|
+
{
|
3318
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
3319
|
+
"member": "string",
|
3320
|
+
"name": "RequestId",
|
3321
|
+
"type": "string"
|
3322
|
+
}
|
3323
|
+
],
|
3324
|
+
"type": "object"
|
3325
|
+
},
|
3226
3326
|
"IntentionActionConfig": {
|
3227
3327
|
"document": "意愿核身(点头确认模式)配置",
|
3228
3328
|
"members": [
|
@@ -238,6 +238,14 @@
|
|
238
238
|
"title": "照片人脸核身 [前往调试工具](https://console.cloud.tencent.com/api/explorer?Product=faceid&Version=2018-03-01&Action=ImageRecognition)"
|
239
239
|
}
|
240
240
|
],
|
241
|
+
"ImageRecognitionV2": [
|
242
|
+
{
|
243
|
+
"document": "",
|
244
|
+
"input": "https://faceid.tencentcloudapi.com/?Action=ImageRecognitionV2\n&IdCard=11204416541220243X\n&Name=韦小宝\n&ImageBase64=<ImageBase64>\n&<公共请求参数>",
|
245
|
+
"output": "{\n \"Response\": {\n \"Result\": \"Success\",\n \"Description\": \"成功\",\n \"Sim\": 89.88,\n \"RequestId\": \"f904f4cf-75db-4f8f-a5ec-dc4f942c7f7a\"\n }\n}",
|
246
|
+
"title": "照片人脸核身 [前往调试工具](https://console.cloud.tencent.com/api/explorer?Product=faceid&Version=2018-03-01&Action=ImageRecognitionV2)"
|
247
|
+
}
|
248
|
+
],
|
241
249
|
"Liveness": [
|
242
250
|
{
|
243
251
|
"document": "",
|
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"CreateAgeDetectTask": {
|
4
|
-
"document": "用于创建年龄语音识别任务的接口,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。\n</br>\n<h4><b>接口功能说明:</b></h4>\n<li>支持对语音文件进行检测,判断是否为未成年人。</li>\n<li>支持批量提交检测子任务。检测子任务列表最多支持100个。</li>\n</br>\n<h4><b>音频文件限制说明:</b></h4>\n<li>音频文件大小限制:10 M</li>\n<li>音频文件时长限制:3分钟</li>\n<li>音频文件格式支持的类型:.wav、.m4a、.amr、.mp3、.aac、.wma、.ogg</li>\n</br>",
|
4
|
+
"document": "目前该功能底层能力已不具备,不对外提供,目前需要下线,走预下线流程。\n\n用于创建年龄语音识别任务的接口,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。\n</br>\n<h4><b>接口功能说明:</b></h4>\n<li>支持对语音文件进行检测,判断是否为未成年人。</li>\n<li>支持批量提交检测子任务。检测子任务列表最多支持100个。</li>\n</br>\n<h4><b>音频文件限制说明:</b></h4>\n<li>音频文件大小限制:10 M</li>\n<li>音频文件时长限制:3分钟</li>\n<li>音频文件格式支持的类型:.wav、.m4a、.amr、.mp3、.aac、.wma、.ogg</li>\n</br>",
|
5
5
|
"input": "CreateAgeDetectTaskRequest",
|
6
6
|
"name": "提交年龄语音识别任务",
|
7
7
|
"output": "CreateAgeDetectTaskResponse",
|
8
|
-
"status": "
|
8
|
+
"status": "deprecated"
|
9
9
|
},
|
10
10
|
"CreateApp": {
|
11
11
|
"document": "本接口(CreateApp)用于创建一个GME应用。",
|
@@ -50,11 +50,11 @@
|
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
52
|
"DescribeAgeDetectTask": {
|
53
|
-
"document": "查询年龄语音识别任务结果,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。",
|
53
|
+
"document": "目前该功能底层能力已不具备,不对外提供,目前需要下线,走预下线流程。\n\n查询年龄语音识别任务结果,请求频率10次/秒。该接口目前通过白名单开放试用,如有需求,请提交工单申请。",
|
54
54
|
"input": "DescribeAgeDetectTaskRequest",
|
55
55
|
"name": "查询年龄语音识别任务结果",
|
56
56
|
"output": "DescribeAgeDetectTaskResponse",
|
57
|
-
"status": "
|
57
|
+
"status": "deprecated"
|
58
58
|
},
|
59
59
|
"DescribeAppStatistics": {
|
60
60
|
"document": "本接口(DescribeAppStatistics)用于获取某个GME应用的用量数据。包括实时语音,语音消息及转文本,语音分析等。最长查询周期为最近60天。",
|