< Summary

Class:Azure.ResourceManager.KeyVault.Models.LogSpecification
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\LogSpecification.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\LogSpecification.Serialization.cs
Covered lines:0
Uncovered lines:23
Coverable lines:23
Total lines:77
Line coverage:0% (0 of 23)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_DisplayName()-0%100%
get_BlobDuration()-0%100%
DeserializeLogSpecification(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\LogSpecification.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8namespace Azure.ResourceManager.KeyVault.Models
 9{
 10    /// <summary> Log specification of operation. </summary>
 11    public partial class LogSpecification
 12    {
 13        /// <summary> Initializes a new instance of LogSpecification. </summary>
 014        internal LogSpecification()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of LogSpecification. </summary>
 19        /// <param name="name"> Name of log specification. </param>
 20        /// <param name="displayName"> Display name of log specification. </param>
 21        /// <param name="blobDuration"> Blob duration of specification. </param>
 022        internal LogSpecification(string name, string displayName, string blobDuration)
 23        {
 024            Name = name;
 025            DisplayName = displayName;
 026            BlobDuration = blobDuration;
 027        }
 28
 29        /// <summary> Name of log specification. </summary>
 030        public string Name { get; }
 31        /// <summary> Display name of log specification. </summary>
 032        public string DisplayName { get; }
 33        /// <summary> Blob duration of specification. </summary>
 034        public string BlobDuration { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\LogSpecification.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.KeyVault.Models
 12{
 13    public partial class LogSpecification
 14    {
 15        internal static LogSpecification DeserializeLogSpecification(JsonElement element)
 16        {
 017            Optional<string> name = default;
 018            Optional<string> displayName = default;
 019            Optional<string> blobDuration = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("name"))
 23                {
 024                    name = property.Value.GetString();
 025                    continue;
 26                }
 027                if (property.NameEquals("displayName"))
 28                {
 029                    displayName = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("blobDuration"))
 33                {
 034                    blobDuration = property.Value.GetString();
 35                    continue;
 36                }
 37            }
 038            return new LogSpecification(name.Value, displayName.Value, blobDuration.Value);
 39        }
 40    }
 41}