Source code for azure.cognitiveservices.vision.face.models.persisted_face_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class PersistedFace(Model): """PersonFace object. All required parameters must be populated in order to send to Azure. :param persisted_face_id: Required. The persistedFaceId of the target face, which is persisted and will not expire. Different from faceId created by Face - Detect and will expire in 24 hours after the detection call. :type persisted_face_id: str :param user_data: User-provided data attached to the face. The size limit is 1KB. :type user_data: str """ _validation = { 'persisted_face_id': {'required': True}, 'user_data': {'max_length': 1024}, } _attribute_map = { 'persisted_face_id': {'key': 'persistedFaceId', 'type': 'str'}, 'user_data': {'key': 'userData', 'type': 'str'}, } def __init__(self, *, persisted_face_id: str, user_data: str=None, **kwargs) -> None: super(PersistedFace, self).__init__(**kwargs) self.persisted_face_id = persisted_face_id self.user_data = user_data