< Summary

Class:Microsoft.Azure.KeyVault.Models.KeyOperationResult
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\KeyOperationResult.cs
Covered lines:4
Uncovered lines:4
Coverable lines:8
Total lines:60
Line coverage:50% (4 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Kid()-100%100%
get_Result()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Generated\Models\KeyOperationResult.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.KeyVault.Models
 12{
 13    using Microsoft.Rest;
 14    using Microsoft.Rest.Serialization;
 15    using Newtonsoft.Json;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// The key operation result.
 20    /// </summary>
 21    public partial class KeyOperationResult
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the KeyOperationResult class.
 25        /// </summary>
 5026        public KeyOperationResult()
 27        {
 28            CustomInit();
 5029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the KeyOperationResult class.
 33        /// </summary>
 34        /// <param name="kid">Key identifier</param>
 035        public KeyOperationResult(string kid = default(string), byte[] result = default(byte[]))
 36        {
 037            Kid = kid;
 038            Result = result;
 39            CustomInit();
 040        }
 41
 42        /// <summary>
 43        /// An initialization method that performs custom operations like setting defaults
 44        /// </summary>
 45        partial void CustomInit();
 46
 47        /// <summary>
 48        /// Gets key identifier
 49        /// </summary>
 50        [JsonProperty(PropertyName = "kid")]
 11251        public string Kid { get; private set; }
 52
 53        /// <summary>
 54        /// </summary>
 55        [JsonConverter(typeof(Base64UrlJsonConverter))]
 56        [JsonProperty(PropertyName = "value")]
 15657        public byte[] Result { get; private set; }
 58
 59    }
 60}