| | 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.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// The application settings. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ApplicationSettings |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ApplicationSettings class. |
| | 23 | | /// </summary> |
| 2 | 24 | | public ApplicationSettings() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 2 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ApplicationSettings class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="id">The application ID.</param> |
| | 33 | | /// <param name="isPublic">Setting your application as public allows |
| | 34 | | /// other people to use your application's endpoint using their own |
| | 35 | | /// keys for billing purposes.</param> |
| 0 | 36 | | public ApplicationSettings(System.Guid id, bool isPublic) |
| | 37 | | { |
| 0 | 38 | | Id = id; |
| 0 | 39 | | IsPublic = isPublic; |
| | 40 | | CustomInit(); |
| 0 | 41 | | } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// An initialization method that performs custom operations like setting defaults |
| | 45 | | /// </summary> |
| | 46 | | partial void CustomInit(); |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets or sets the application ID. |
| | 50 | | /// </summary> |
| | 51 | | [JsonProperty(PropertyName = "id")] |
| 3 | 52 | | public System.Guid Id { get; set; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets setting your application as public allows other people |
| | 56 | | /// to use your application's endpoint using their own keys for billing |
| | 57 | | /// purposes. |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "public")] |
| 4 | 60 | | public bool IsPublic { get; set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Validate the object. |
| | 64 | | /// </summary> |
| | 65 | | /// <exception cref="Rest.ValidationException"> |
| | 66 | | /// Thrown if validation fails |
| | 67 | | /// </exception> |
| | 68 | | public virtual void Validate() |
| | 69 | | { |
| | 70 | | //Nothing to validate |
| 0 | 71 | | } |
| | 72 | | } |
| | 73 | | } |