| | 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 base class "ProductionOrStagingEndpointInfo" inherits from. |
| | 18 | | /// </summary> |
| | 19 | | public partial class EndpointInfo |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the EndpointInfo class. |
| | 23 | | /// </summary> |
| 1 | 24 | | public EndpointInfo() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 1 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the EndpointInfo class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="versionId">The version ID to publish.</param> |
| | 33 | | /// <param name="isStaging">Indicates if the staging slot should be |
| | 34 | | /// used, instead of the Production one.</param> |
| | 35 | | /// <param name="endpointUrl">The Runtime endpoint URL for this model |
| | 36 | | /// version.</param> |
| | 37 | | /// <param name="region">The target region that the application is |
| | 38 | | /// published to.</param> |
| | 39 | | /// <param name="assignedEndpointKey">The endpoint key.</param> |
| | 40 | | /// <param name="endpointRegion">The endpoint's region.</param> |
| | 41 | | /// <param name="failedRegions">Regions where publishing |
| | 42 | | /// failed.</param> |
| | 43 | | /// <param name="publishedDateTime">Timestamp when was last |
| | 44 | | /// published.</param> |
| 0 | 45 | | public EndpointInfo(string versionId = default(string), bool? isStaging = default(bool?), string endpointUrl = d |
| | 46 | | { |
| 0 | 47 | | VersionId = versionId; |
| 0 | 48 | | IsStaging = isStaging; |
| 0 | 49 | | EndpointUrl = endpointUrl; |
| 0 | 50 | | Region = region; |
| 0 | 51 | | AssignedEndpointKey = assignedEndpointKey; |
| 0 | 52 | | EndpointRegion = endpointRegion; |
| 0 | 53 | | FailedRegions = failedRegions; |
| 0 | 54 | | PublishedDateTime = publishedDateTime; |
| | 55 | | CustomInit(); |
| 0 | 56 | | } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// An initialization method that performs custom operations like setting defaults |
| | 60 | | /// </summary> |
| | 61 | | partial void CustomInit(); |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the version ID to publish. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "versionId")] |
| 0 | 67 | | public string VersionId { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets indicates if the staging slot should be used, instead |
| | 71 | | /// of the Production one. |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "isStaging")] |
| 2 | 74 | | public bool? IsStaging { get; set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets or sets the Runtime endpoint URL for this model version. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "endpointUrl")] |
| 2 | 80 | | public string EndpointUrl { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the target region that the application is published |
| | 84 | | /// to. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "region")] |
| 0 | 87 | | public string Region { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the endpoint key. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "assignedEndpointKey")] |
| 0 | 93 | | public string AssignedEndpointKey { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets or sets the endpoint's region. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "endpointRegion")] |
| 2 | 99 | | public string EndpointRegion { get; set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets or sets regions where publishing failed. |
| | 103 | | /// </summary> |
| | 104 | | [JsonProperty(PropertyName = "failedRegions")] |
| 0 | 105 | | public string FailedRegions { get; set; } |
| | 106 | |
|
| | 107 | | /// <summary> |
| | 108 | | /// Gets or sets timestamp when was last published. |
| | 109 | | /// </summary> |
| | 110 | | [JsonProperty(PropertyName = "publishedDateTime")] |
| 0 | 111 | | public string PublishedDateTime { get; set; } |
| | 112 | |
|
| | 113 | | } |
| | 114 | | } |