| | 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.Language.LUIS.Authoring.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// An Entity Extractor model info. |
| | 20 | | /// </summary> |
| | 21 | | public partial class EntityModelInfo : ModelInfo |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the EntityModelInfo class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public EntityModelInfo() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the EntityModelInfo class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="id">The ID of the Entity Model.</param> |
| | 35 | | /// <param name="readableType">Possible values include: 'Entity |
| | 36 | | /// Extractor', 'Child Entity Extractor', 'Hierarchical Entity |
| | 37 | | /// Extractor', 'Hierarchical Child Entity Extractor', 'Composite |
| | 38 | | /// Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity |
| | 39 | | /// Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', |
| | 40 | | /// 'Closed List Entity Extractor', 'Regex Entity Extractor'</param> |
| | 41 | | /// <param name="name">Name of the Entity Model.</param> |
| | 42 | | /// <param name="typeId">The type ID of the Entity Model.</param> |
| | 43 | | public EntityModelInfo(System.Guid id, string readableType, string name = default(string), int? typeId = default |
| 0 | 44 | | : base(id, readableType, name, typeId) |
| | 45 | | { |
| 0 | 46 | | Roles = roles; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// </summary> |
| | 57 | | [JsonProperty(PropertyName = "roles")] |
| 0 | 58 | | public IList<EntityRole> Roles { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Validate the object. |
| | 62 | | /// </summary> |
| | 63 | | /// <exception cref="Rest.ValidationException"> |
| | 64 | | /// Thrown if validation fails |
| | 65 | | /// </exception> |
| | 66 | | public override void Validate() |
| | 67 | | { |
| 0 | 68 | | base.Validate(); |
| 0 | 69 | | } |
| | 70 | | } |
| | 71 | | } |