def DeleteGroup(self, request): """删除该人员库及包含的所有的人员。同时,人员对应的所有人脸信息将被删除。若某人员同时存在多个人员库中,该人员不会被删除,但属于该人员库中的自定义描述字段信息会被删除,属于其他人员库的自定义描述字段信息不受影响。 :param request: Request instance for DeleteGroup. :type request: :class:`tencentcloud.iai.v20180301.models.DeleteGroupRequest` :rtype: :class:`tencentcloud.iai.v20180301.models.DeleteGroupResponse` """ try: params = request._serialize() body = self.call("DeleteGroup", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DeleteGroupResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DeleteGroup(self, request): """删除该人员库及包含的所有的人员。若某人员同时存在多个人员库中,该人员不会被删除,但属于该人员库中的自定义描述字段信息会被删除。注:删除人员库的操作为异步执行,删除单张人脸时间约为10ms,即一小时内可以删除36万张。删除期间,无法向该人员库添加人员。 :param request: 调用DeleteGroup所需参数的结构体。 :type request: :class:`tencentcloud.iai.v20180301.models.DeleteGroupRequest` :rtype: :class:`tencentcloud.iai.v20180301.models.DeleteGroupResponse` """ try: params = request._serialize() body = self.call("DeleteGroup", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DeleteGroupResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)