< Summary

Class:Azure.ResourceManager.Resources.Models.DebugSetting
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DebugSetting.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DebugSetting.Serialization.cs
Covered lines:0
Uncovered lines:18
Coverable lines:18
Total lines:72
Line coverage:0% (0 of 18)
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_DetailLevel()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeDebugSetting(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DebugSetting.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.Resources.Models
 9{
 10    /// <summary> The debug setting. </summary>
 11    public partial class DebugSetting
 12    {
 13        /// <summary> Initializes a new instance of DebugSetting. </summary>
 014        public DebugSetting()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of DebugSetting. </summary>
 19        /// <param name="detailLevel"> Specifies the type of information to log for debugging. The permitted values are 
 020        internal DebugSetting(string detailLevel)
 21        {
 022            DetailLevel = detailLevel;
 023        }
 24
 25        /// <summary> Specifies the type of information to log for debugging. The permitted values are none, requestCont
 026        public string DetailLevel { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DebugSetting.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.Resources.Models
 12{
 13    public partial class DebugSetting : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (DetailLevel != null)
 19            {
 020                writer.WritePropertyName("detailLevel");
 021                writer.WriteStringValue(DetailLevel);
 22            }
 023            writer.WriteEndObject();
 024        }
 25
 26        internal static DebugSetting DeserializeDebugSetting(JsonElement element)
 27        {
 028            string detailLevel = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("detailLevel"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    detailLevel = property.Value.GetString();
 38                    continue;
 39                }
 40            }
 041            return new DebugSetting(detailLevel);
 42        }
 43    }
 44}