< Summary

Class:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models.EndpointInfo
Assembly:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\EndpointInfo.cs
Covered lines:5
Uncovered lines:15
Coverable lines:20
Total lines:114
Line coverage:25% (5 of 20)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_VersionId()-0%100%
get_IsStaging()-100%100%
get_EndpointUrl()-100%100%
get_Region()-0%100%
get_AssignedEndpointKey()-0%100%
get_EndpointRegion()-100%100%
get_FailedRegions()-0%100%
get_PublishedDateTime()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\EndpointInfo.cs

#LineLine coverage
 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
 11namespace 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>
 124        public EndpointInfo()
 25        {
 26            CustomInit();
 127        }
 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>
 045        public EndpointInfo(string versionId = default(string), bool? isStaging = default(bool?), string endpointUrl = d
 46        {
 047            VersionId = versionId;
 048            IsStaging = isStaging;
 049            EndpointUrl = endpointUrl;
 050            Region = region;
 051            AssignedEndpointKey = assignedEndpointKey;
 052            EndpointRegion = endpointRegion;
 053            FailedRegions = failedRegions;
 054            PublishedDateTime = publishedDateTime;
 55            CustomInit();
 056        }
 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")]
 067        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")]
 274        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")]
 280        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")]
 087        public string Region { get; set; }
 88
 89        /// <summary>
 90        /// Gets or sets the endpoint key.
 91        /// </summary>
 92        [JsonProperty(PropertyName = "assignedEndpointKey")]
 093        public string AssignedEndpointKey { get; set; }
 94
 95        /// <summary>
 96        /// Gets or sets the endpoint's region.
 97        /// </summary>
 98        [JsonProperty(PropertyName = "endpointRegion")]
 299        public string EndpointRegion { get; set; }
 100
 101        /// <summary>
 102        /// Gets or sets regions where publishing failed.
 103        /// </summary>
 104        [JsonProperty(PropertyName = "failedRegions")]
 0105        public string FailedRegions { get; set; }
 106
 107        /// <summary>
 108        /// Gets or sets timestamp when was last published.
 109        /// </summary>
 110        [JsonProperty(PropertyName = "publishedDateTime")]
 0111        public string PublishedDateTime { get; set; }
 112
 113    }
 114}