< Summary

Class:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.EndpointKeysDTO
Assembly:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\EndpointKeysDTO.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:83
Line coverage:0% (0 of 14)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PrimaryEndpointKey()-0%100%
get_SecondaryEndpointKey()-0%100%
get_InstalledVersion()-0%100%
get_LastStableVersion()-0%100%
get_Language()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\EndpointKeysDTO.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.Knowledge.QnAMaker.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Schema for EndpointKeys generate/refresh operations.
 18    /// </summary>
 19    public partial class EndpointKeysDTO
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the EndpointKeysDTO class.
 23        /// </summary>
 024        public EndpointKeysDTO()
 25        {
 26            CustomInit();
 027        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the EndpointKeysDTO class.
 31        /// </summary>
 32        /// <param name="primaryEndpointKey">Primary Access Key.</param>
 33        /// <param name="secondaryEndpointKey">Secondary Access Key.</param>
 34        /// <param name="installedVersion">Current version of runtime.</param>
 35        /// <param name="lastStableVersion">Latest version of runtime.</param>
 36        /// <param name="language">Language setting of runtime.</param>
 037        public EndpointKeysDTO(string primaryEndpointKey = default(string), string secondaryEndpointKey = default(string
 38        {
 039            PrimaryEndpointKey = primaryEndpointKey;
 040            SecondaryEndpointKey = secondaryEndpointKey;
 041            InstalledVersion = installedVersion;
 042            LastStableVersion = lastStableVersion;
 043            Language = language;
 44            CustomInit();
 045        }
 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 primary Access Key.
 54        /// </summary>
 55        [JsonProperty(PropertyName = "primaryEndpointKey")]
 056        public string PrimaryEndpointKey { get; set; }
 57
 58        /// <summary>
 59        /// Gets or sets secondary Access Key.
 60        /// </summary>
 61        [JsonProperty(PropertyName = "secondaryEndpointKey")]
 062        public string SecondaryEndpointKey { get; set; }
 63
 64        /// <summary>
 65        /// Gets or sets current version of runtime.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "installedVersion")]
 068        public string InstalledVersion { get; set; }
 69
 70        /// <summary>
 71        /// Gets or sets latest version of runtime.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "lastStableVersion")]
 074        public string LastStableVersion { get; set; }
 75
 76        /// <summary>
 77        /// Gets or sets language setting of runtime.
 78        /// </summary>
 79        [JsonProperty(PropertyName = "language")]
 080        public string Language { get; set; }
 81
 82    }
 83}