Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# 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 .name_and_user_data_contract import NameAndUserDataContract
class Person(NameAndUserDataContract):
"""Person object.
All required parameters must be populated in order to send to Azure.
:param name: User defined name, maximum length is 128.
:type name: str
:param user_data: User specified data. Length should not exceed 16KB.
:type user_data: str
:param person_id: Required. PersonId of the target face list.
:type person_id: str
:param persisted_face_ids: PersistedFaceIds of registered faces in the
person. These persistedFaceIds are returned from Person - Add a Person
Face, and will not expire.
:type persisted_face_ids: list[str]
"""
def __init__(self, **kwargs):
super(NameAndUserDataContract, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.user_data = kwargs.get('user_data', None)