tccli 3.0.1240.1__py2.py3-none-any.whl → 3.0.1242.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +276 -279
  3. tccli/services/apm/v20210622/examples.json +30 -30
  4. tccli/services/autoscaling/v20180419/api.json +12 -1
  5. tccli/services/batch/v20170312/api.json +11 -11
  6. tccli/services/bh/v20230418/api.json +9 -0
  7. tccli/services/bh/v20230418/examples.json +2 -2
  8. tccli/services/billing/v20180709/api.json +20 -0
  9. tccli/services/cam/v20190116/api.json +1 -1
  10. tccli/services/car/v20220110/api.json +1 -1
  11. tccli/services/car/v20220110/examples.json +3 -3
  12. tccli/services/cdb/v20170320/api.json +582 -579
  13. tccli/services/cdb/v20170320/examples.json +9 -9
  14. tccli/services/cdwdoris/v20211228/api.json +40 -0
  15. tccli/services/cfg/v20210820/api.json +11 -0
  16. tccli/services/cfs/v20190719/api.json +20 -20
  17. tccli/services/cfs/v20190719/examples.json +5 -5
  18. tccli/services/chdfs/v20201112/api.json +10 -10
  19. tccli/services/chdfs/v20201112/examples.json +1 -1
  20. tccli/services/ckafka/v20190819/api.json +27 -0
  21. tccli/services/clb/v20180317/api.json +84 -64
  22. tccli/services/cls/cls_client.py +220 -8
  23. tccli/services/cls/v20201016/api.json +418 -40
  24. tccli/services/cls/v20201016/examples.json +89 -45
  25. tccli/services/cmq/v20190304/api.json +77 -77
  26. tccli/services/cvm/cvm_client.py +60 -325
  27. tccli/services/cvm/v20170312/api.json +618 -1401
  28. tccli/services/cvm/v20170312/examples.json +8 -48
  29. tccli/services/cwp/cwp_client.py +0 -53
  30. tccli/services/cwp/v20180228/api.json +3 -37
  31. tccli/services/cwp/v20180228/examples.json +2 -10
  32. tccli/services/cynosdb/v20190107/api.json +470 -476
  33. tccli/services/cynosdb/v20190107/examples.json +23 -23
  34. tccli/services/dbbrain/v20191016/api.json +16 -4
  35. tccli/services/dbbrain/v20191016/examples.json +5 -5
  36. tccli/services/dbbrain/v20210527/api.json +45 -45
  37. tccli/services/dbbrain/v20210527/examples.json +8 -8
  38. tccli/services/dnspod/v20210323/api.json +173 -119
  39. tccli/services/dnspod/v20210323/examples.json +18 -18
  40. tccli/services/dts/v20180330/api.json +30 -30
  41. tccli/services/dts/v20180330/examples.json +4 -4
  42. tccli/services/dts/v20211206/api.json +19 -9
  43. tccli/services/dts/v20211206/examples.json +5 -5
  44. tccli/services/ecm/v20190719/api.json +55 -48
  45. tccli/services/ecm/v20190719/examples.json +7 -7
  46. tccli/services/emr/emr_client.py +493 -16
  47. tccli/services/emr/v20190103/api.json +1323 -246
  48. tccli/services/emr/v20190103/examples.json +72 -0
  49. tccli/services/ess/v20201111/api.json +29 -11
  50. tccli/services/ess/v20201111/examples.json +6 -0
  51. tccli/services/essbasic/v20210526/api.json +89 -2
  52. tccli/services/essbasic/v20210526/examples.json +12 -0
  53. tccli/services/faceid/v20180301/api.json +3 -3
  54. tccli/services/gaap/v20180529/api.json +194 -196
  55. tccli/services/gaap/v20180529/examples.json +31 -37
  56. tccli/services/goosefs/v20220519/api.json +17 -17
  57. tccli/services/goosefs/v20220519/examples.json +4 -4
  58. tccli/services/gs/v20191118/api.json +3 -3
  59. tccli/services/gs/v20191118/examples.json +3 -3
  60. tccli/services/iai/iai_client.py +53 -0
  61. tccli/services/iai/v20200303/api.json +80 -0
  62. tccli/services/iai/v20200303/examples.json +14 -0
  63. tccli/services/iotexplorer/v20190423/api.json +10 -0
  64. tccli/services/iotvideoindustry/v20201201/api.json +84 -84
  65. tccli/services/iotvideoindustry/v20201201/examples.json +29 -29
  66. tccli/services/keewidb/v20220308/api.json +188 -190
  67. tccli/services/live/v20180801/api.json +324 -223
  68. tccli/services/live/v20180801/examples.json +79 -79
  69. tccli/services/mna/v20210119/api.json +52 -49
  70. tccli/services/mna/v20210119/examples.json +49 -49
  71. tccli/services/mps/v20190612/api.json +49 -0
  72. tccli/services/oceanus/v20190422/api.json +407 -39
  73. tccli/services/oceanus/v20190422/examples.json +1 -1
  74. tccli/services/ocr/ocr_client.py +110 -4
  75. tccli/services/ocr/v20181119/api.json +410 -6
  76. tccli/services/ocr/v20181119/examples.json +18 -2
  77. tccli/services/pts/v20210728/api.json +1 -1
  78. tccli/services/pts/v20210728/examples.json +1 -1
  79. tccli/services/sqlserver/v20180328/api.json +273 -144
  80. tccli/services/sqlserver/v20180328/examples.json +2 -2
  81. tccli/services/ssl/v20191205/api.json +829 -829
  82. tccli/services/ssl/v20191205/examples.json +14 -14
  83. tccli/services/tbaas/v20180416/api.json +127 -88
  84. tccli/services/tbaas/v20180416/examples.json +9 -9
  85. tccli/services/tcb/v20180608/api.json +229 -189
  86. tccli/services/tcb/v20180608/examples.json +23 -23
  87. tccli/services/tcm/v20210413/api.json +6 -6
  88. tccli/services/tcm/v20210413/examples.json +3 -3
  89. tccli/services/tcr/v20190924/api.json +25 -20
  90. tccli/services/tcr/v20190924/examples.json +4 -4
  91. tccli/services/tdmq/tdmq_client.py +167 -8
  92. tccli/services/tdmq/v20200217/api.json +325 -0
  93. tccli/services/tdmq/v20200217/examples.json +24 -0
  94. tccli/services/tem/v20210701/api.json +439 -280
  95. tccli/services/tem/v20210701/examples.json +39 -39
  96. tccli/services/teo/v20220901/api.json +2 -2
  97. tccli/services/teo/v20220901/examples.json +3 -3
  98. tccli/services/thpc/v20211109/api.json +46 -58
  99. tccli/services/thpc/v20211109/examples.json +2 -2
  100. tccli/services/thpc/v20220401/api.json +168 -181
  101. tccli/services/thpc/v20220401/examples.json +1 -1
  102. tccli/services/thpc/v20230321/api.json +99 -102
  103. tccli/services/thpc/v20230321/examples.json +3 -3
  104. tccli/services/tke/v20180525/api.json +50 -39
  105. tccli/services/tke/v20180525/examples.json +51 -21
  106. tccli/services/tke/v20220501/api.json +146 -97
  107. tccli/services/tke/v20220501/examples.json +15 -21
  108. tccli/services/trocket/trocket_client.py +53 -0
  109. tccli/services/trocket/v20230308/api.json +219 -0
  110. tccli/services/trocket/v20230308/examples.json +8 -0
  111. tccli/services/trro/v20220325/api.json +27 -27
  112. tccli/services/trro/v20220325/examples.json +1 -1
  113. tccli/services/trtc/v20190722/api.json +31 -20
  114. tccli/services/trtc/v20190722/examples.json +11 -11
  115. tccli/services/tse/v20201207/api.json +187 -122
  116. tccli/services/tse/v20201207/examples.json +36 -36
  117. tccli/services/tsf/v20180326/api.json +448 -434
  118. tccli/services/tsf/v20180326/examples.json +122 -122
  119. tccli/services/tts/v20190823/api.json +1 -1
  120. tccli/services/vpc/v20170312/api.json +582 -291
  121. tccli/services/vpc/v20170312/examples.json +75 -27
  122. tccli/services/vpc/vpc_client.py +159 -0
  123. tccli/services/waf/v20180125/api.json +305 -6
  124. tccli/services/waf/v20180125/examples.json +25 -1
  125. tccli/services/waf/waf_client.py +163 -4
  126. {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/METADATA +2 -2
  127. {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/RECORD +130 -130
  128. {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/WHEEL +0 -0
  129. {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/entry_points.txt +0 -0
  130. {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/license_files/LICENSE +0 -0
@@ -1163,6 +1163,58 @@ def doGetUpgradeGroupFaceModelVersionJobList(args, parsed_globals):
1163
1163
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1164
1164
 
1165
1165
 
1166
+ def doDetectFaceSimilarity(args, parsed_globals):
1167
+ g_param = parse_global_arg(parsed_globals)
1168
+
1169
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1170
+ cred = credential.CVMRoleCredential()
1171
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1172
+ cred = credential.STSAssumeRoleCredential(
1173
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1174
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1175
+ )
1176
+ 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):
1177
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1178
+ else:
1179
+ cred = credential.Credential(
1180
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1181
+ )
1182
+ http_profile = HttpProfile(
1183
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1184
+ reqMethod="POST",
1185
+ endpoint=g_param[OptionsDefine.Endpoint],
1186
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1187
+ )
1188
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1189
+ if g_param[OptionsDefine.Language]:
1190
+ profile.language = g_param[OptionsDefine.Language]
1191
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1192
+ client = mod.IaiClient(cred, g_param[OptionsDefine.Region], profile)
1193
+ client._sdkVersion += ("_CLI_" + __version__)
1194
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1195
+ model = models.DetectFaceSimilarityRequest()
1196
+ model.from_json_string(json.dumps(args))
1197
+ start_time = time.time()
1198
+ while True:
1199
+ rsp = client.DetectFaceSimilarity(model)
1200
+ result = rsp.to_json_string()
1201
+ try:
1202
+ json_obj = json.loads(result)
1203
+ except TypeError as e:
1204
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1205
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1206
+ break
1207
+ cur_time = time.time()
1208
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1209
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1210
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1211
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1212
+ else:
1213
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1214
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1215
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1216
+
1217
+
1166
1218
  def doGetGroupInfo(args, parsed_globals):
1167
1219
  g_param = parse_global_arg(parsed_globals)
1168
1220
 
@@ -1874,6 +1926,7 @@ ACTION_MAP = {
1874
1926
  "CreatePerson": doCreatePerson,
1875
1927
  "CompareMaskFace": doCompareMaskFace,
1876
1928
  "GetUpgradeGroupFaceModelVersionJobList": doGetUpgradeGroupFaceModelVersionJobList,
1929
+ "DetectFaceSimilarity": doDetectFaceSimilarity,
1877
1930
  "GetGroupInfo": doGetGroupInfo,
1878
1931
  "DetectFace": doDetectFace,
1879
1932
  "GetPersonList": doGetPersonList,
@@ -98,6 +98,13 @@
98
98
  "output": "DetectFaceAttributesResponse",
99
99
  "status": "online"
100
100
  },
101
+ "DetectFaceSimilarity": {
102
+ "document": "对两张图片中的人脸进行相似度比对,返回人脸相似度分数。\n\n若您需要判断 “此人是否是某人”,即验证某张图片中的人是否是已知身份的某人,如常见的人脸登录场景,建议使用[人脸验证](https://www.tencentcloud.com/document/product/1059/36972)或[人员验证](https://www.tencentcloud.com/document/product/1059/36971)接口。\n\n> \n- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。",
103
+ "input": "DetectFaceSimilarityRequest",
104
+ "name": "人脸相似度检测",
105
+ "output": "DetectFaceSimilarityResponse",
106
+ "status": "online"
107
+ },
101
108
  "DetectLiveFace": {
102
109
  "document": "用于对用户上传的静态图片进行人脸活体检测。与动态活体检测的区别是:静态活体检测中,用户不需要通过唇语或摇头眨眼等动作来识别。\n\n静态活体检测适用于手机自拍的场景,或对防攻击要求不高的场景。如果对活体检测有更高安全性要求,请使用[人脸核身·云智慧眼](https://cloud.tencent.com/product/faceid)产品。\n\n> \n- 图片的宽高比请接近3:4,不符合宽高比的图片返回的分值不具备参考意义。本接口适用于类手机自拍场景,非类手机自拍照返回的分值不具备参考意义。\n\n>\n- 使用过程中建议正对摄像头,不要距离太远,使面部可以完整地显示在识别的框内,识别过程中不要移动设备或遮挡面部。不要选择光线过强或过弱的环境进行面部识别,识别时不要添加任何滤镜。\n\n> \n- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。",
103
110
  "input": "DetectLiveFaceRequest",
@@ -1727,6 +1734,79 @@
1727
1734
  ],
1728
1735
  "type": "object"
1729
1736
  },
1737
+ "DetectFaceSimilarityRequest": {
1738
+ "document": "DetectFaceSimilarity请求参数结构体",
1739
+ "members": [
1740
+ {
1741
+ "disabled": false,
1742
+ "document": "A 图片 base64 数据。\n- base64 编码后大小不可超过5M。\n- jpg格式长边像素不可超过4000,其他格式图片长边像素不可超2000。所有格式的图片短边像素不小于64。\n- 若图片中包含多张人脸,只选取其中置信度最高的人脸。\n- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1743
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
1744
+ "member": "string",
1745
+ "name": "ImageA",
1746
+ "required": false,
1747
+ "type": "string"
1748
+ },
1749
+ {
1750
+ "disabled": false,
1751
+ "document": "B 图片 base64 数据。\n- base64 编码后大小不可超过5M。\n- jpg格式长边像素不可超过4000,其他格式图片长边像素不可超2000。所有格式的图片短边像素不小于64。\n- 若图片中包含多张人脸,只选取其中置信度最高的人脸。\n- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1752
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
1753
+ "member": "string",
1754
+ "name": "ImageB",
1755
+ "required": false,
1756
+ "type": "string"
1757
+ },
1758
+ {
1759
+ "disabled": false,
1760
+ "document": "A 图片的 Url。\n- 对应图片 base64 编码后大小不可超过5M。\n- jpg格式长边像素不可超过4000,其他格式图片长边像素不可超2000。所有格式的图片短边像素不小于64。\n- A 图片的 Url、Image必须提供一个,如果都提供,只使用 Url。 \n- 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。 \n- 非腾讯云存储的Url速度和稳定性可能受一定影响。\n- 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。\n- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1761
+ "example": "http://test.image.myqcloud.com/testA.jpg",
1762
+ "member": "string",
1763
+ "name": "UrlA",
1764
+ "required": false,
1765
+ "type": "string"
1766
+ },
1767
+ {
1768
+ "disabled": false,
1769
+ "document": "B 图片的 Url 。\n- 对应图片 base64 编码后大小不可超过5M。\n- jpg格式长边像素不可超过4000,其他格式图片长边像素不可超2000。所有格式的图片短边像素不小于64。\n- B 图片的 Url、Image必须提供一个,如果都提供,只使用 Url。 \n- 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。 \n- 非腾讯云存储的Url速度和稳定性可能受一定影响。\n- 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。\n- 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
1770
+ "example": "http://test.image.myqcloud.com/testB.jpg",
1771
+ "member": "string",
1772
+ "name": "UrlB",
1773
+ "required": false,
1774
+ "type": "string"
1775
+ },
1776
+ {
1777
+ "disabled": false,
1778
+ "document": "图片质量控制。 \n- 取值范围:\n0: 不进行控制; \n1: 较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况; \n2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况; \n3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况; \n4: 很高的质量要求,各个维度均为最好或最多,在某一维度上存在轻微问题; \n默认 0。 \n\n- 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。",
1779
+ "example": "0",
1780
+ "member": "uint64",
1781
+ "name": "QualityControl",
1782
+ "required": false,
1783
+ "type": "int"
1784
+ }
1785
+ ],
1786
+ "type": "object"
1787
+ },
1788
+ "DetectFaceSimilarityResponse": {
1789
+ "document": "DetectFaceSimilarity返回参数结构体",
1790
+ "members": [
1791
+ {
1792
+ "disabled": false,
1793
+ "document": "取值范围 [0.00, 100.00]。\n推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。",
1794
+ "example": "0.999",
1795
+ "member": "float",
1796
+ "name": "Score",
1797
+ "output_required": true,
1798
+ "type": "float",
1799
+ "value_allowed_null": false
1800
+ },
1801
+ {
1802
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1803
+ "member": "string",
1804
+ "name": "RequestId",
1805
+ "type": "string"
1806
+ }
1807
+ ],
1808
+ "type": "object"
1809
+ },
1730
1810
  "DetectLiveFaceAccurateRequest": {
1731
1811
  "document": "DetectLiveFaceAccurate请求参数结构体",
1732
1812
  "members": [
@@ -214,6 +214,20 @@
214
214
  "title": "人脸检测与属性分析失败示例"
215
215
  }
216
216
  ],
217
+ "DetectFaceSimilarity": [
218
+ {
219
+ "document": "",
220
+ "input": "POST / HTTP/1.1\nHost: iai.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CompareFace\n<公共请求参数>\n\n{\n \"UrlA\": \"http://test.image.myqcloud.com/testA.jpg\",\n \"UrlB\": \"http://test.image.myqcloud.com/testB.jpg\"\n}",
221
+ "output": "{\n \"Response\": {\n \"Score\": 0.999,\n \"RequestId\": \"a8eb4545-a154-4f86-9510-57a8be9cae0c\"\n }\n}",
222
+ "title": "人脸相似度检测接口成功示例"
223
+ },
224
+ {
225
+ "document": "",
226
+ "input": "POST / HTTP/1.1\nHost: iai.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CompareFace\n<公共请求参数>\n\n{\n \"UrlA\": \"http://test.image.myqcloud.com/testA.jpg\",\n \"UrlB\": \"http://test.image.myqcloud.com/testB.jpg\"\n}",
227
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"FailedOperation.FaceQualityNotQualified\",\n \"Message\": \"人脸图片质量不符要求。\"\n },\n \"RequestId\": \"788270e8-91b7-4c59-bd00-1af257b1e482\"\n }\n}",
228
+ "title": "人脸相似度检测接口异常示例"
229
+ }
230
+ ],
217
231
  "DetectLiveFace": [
218
232
  {
219
233
  "document": "",
@@ -13766,6 +13766,16 @@
13766
13766
  "output_required": false,
13767
13767
  "type": "int",
13768
13768
  "value_allowed_null": true
13769
+ },
13770
+ {
13771
+ "disabled": false,
13772
+ "document": "类型",
13773
+ "example": "1",
13774
+ "member": "int64",
13775
+ "name": "PkgType",
13776
+ "output_required": false,
13777
+ "type": "int",
13778
+ "value_allowed_null": false
13769
13779
  }
13770
13780
  ],
13771
13781
  "usage": "out"