< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_LogSpecifications()-0%100%
DeserializeServiceSpecification(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\ServiceSpecification.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.Collections.Generic;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.KeyVault.Models
 12{
 13    /// <summary> One property of operation, include log specifications. </summary>
 14    public partial class ServiceSpecification
 15    {
 16        /// <summary> Initializes a new instance of ServiceSpecification. </summary>
 017        internal ServiceSpecification()
 18        {
 019            LogSpecifications = new ChangeTrackingList<LogSpecification>();
 020        }
 21
 22        /// <summary> Initializes a new instance of ServiceSpecification. </summary>
 23        /// <param name="logSpecifications"> Log specifications of operation. </param>
 024        internal ServiceSpecification(IReadOnlyList<LogSpecification> logSpecifications)
 25        {
 026            LogSpecifications = logSpecifications;
 027        }
 28
 29        /// <summary> Log specifications of operation. </summary>
 030        public IReadOnlyList<LogSpecification> LogSpecifications { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\ServiceSpecification.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.KeyVault.Models
 13{
 14    public partial class ServiceSpecification
 15    {
 16        internal static ServiceSpecification DeserializeServiceSpecification(JsonElement element)
 17        {
 018            Optional<IReadOnlyList<LogSpecification>> logSpecifications = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("logSpecifications"))
 22                {
 023                    List<LogSpecification> array = new List<LogSpecification>();
 024                    foreach (var item in property.Value.EnumerateArray())
 25                    {
 026                        array.Add(LogSpecification.DeserializeLogSpecification(item));
 27                    }
 028                    logSpecifications = array;
 29                    continue;
 30                }
 31            }
 032            return new ServiceSpecification(Optional.ToList(logSpecifications));
 33        }
 34    }
 35}