< Summary

Class:Microsoft.Azure.Management.Search.Models.AdminKeyResult
Assembly:Microsoft.Azure.Management.Search
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\src\Generated\Models\AdminKeyResult.cs
Covered lines:3
Uncovered lines:5
Coverable lines:8
Total lines:62
Line coverage:37.5% (3 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_PrimaryKey()-100%100%
get_SecondaryKey()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\src\Generated\Models\AdminKeyResult.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.Management.Search.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Response containing the primary and secondary admin API keys for a
 18    /// given Azure Cognitive Search service.
 19    /// </summary>
 20    public partial class AdminKeyResult
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the AdminKeyResult class.
 24        /// </summary>
 60225        public AdminKeyResult()
 26        {
 27            CustomInit();
 60228        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the AdminKeyResult class.
 32        /// </summary>
 33        /// <param name="primaryKey">The primary admin API key of the Search
 34        /// service.</param>
 35        /// <param name="secondaryKey">The secondary admin API key of the
 36        /// Search service.</param>
 037        public AdminKeyResult(string primaryKey = default(string), string secondaryKey = default(string))
 38        {
 039            PrimaryKey = primaryKey;
 040            SecondaryKey = secondaryKey;
 41            CustomInit();
 042        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets the primary admin API key of the Search service.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "primaryKey")]
 120453        public string PrimaryKey { get; private set; }
 54
 55        /// <summary>
 56        /// Gets the secondary admin API key of the Search service.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "secondaryKey")]
 059        public string SecondaryKey { get; private set; }
 60
 61    }
 62}