| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.CognitiveServices.Vision.Face.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// A combination of user defined name and user specified data and |
| | | 18 | | /// recognition model name for largePersonGroup/personGroup, and |
| | | 19 | | /// largeFaceList/faceList. |
| | | 20 | | /// </summary> |
| | | 21 | | public partial class MetaDataContract : NameAndUserDataContract |
| | | 22 | | { |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the MetaDataContract class. |
| | | 25 | | /// </summary> |
| | 32 | 26 | | public MetaDataContract() |
| | | 27 | | { |
| | | 28 | | CustomInit(); |
| | 32 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of the MetaDataContract class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="name">User defined name, maximum length is |
| | | 35 | | /// 128.</param> |
| | | 36 | | /// <param name="userData">User specified data. Length should not |
| | | 37 | | /// exceed 16KB.</param> |
| | | 38 | | /// <param name="recognitionModel">Possible values include: |
| | | 39 | | /// 'recognition_01', 'recognition_02'</param> |
| | | 40 | | public MetaDataContract(string name = default(string), string userData = default(string), string recognitionMode |
| | 0 | 41 | | : base(name, userData) |
| | | 42 | | { |
| | 0 | 43 | | RecognitionModel = recognitionModel; |
| | | 44 | | CustomInit(); |
| | 0 | 45 | | } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// An initialization method that performs custom operations like setting defaults |
| | | 49 | | /// </summary> |
| | | 50 | | partial void CustomInit(); |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// Gets or sets possible values include: 'recognition_01', |
| | | 54 | | /// 'recognition_02' |
| | | 55 | | /// </summary> |
| | | 56 | | [JsonProperty(PropertyName = "recognitionModel")] |
| | 48 | 57 | | public string RecognitionModel { get; set; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Validate the object. |
| | | 61 | | /// </summary> |
| | | 62 | | /// <exception cref="Rest.ValidationException"> |
| | | 63 | | /// Thrown if validation fails |
| | | 64 | | /// </exception> |
| | | 65 | | public override void Validate() |
| | | 66 | | { |
| | 0 | 67 | | base.Validate(); |
| | 0 | 68 | | } |
| | | 69 | | } |
| | | 70 | | } |