< Summary

Class:Azure.ResourceManager.Compute.Models.DiagnosticsProfile
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\DiagnosticsProfile.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\DiagnosticsProfile.Serialization.cs
Covered lines:18
Uncovered lines:0
Coverable lines:18
Total lines:72
Line coverage:100% (18 of 18)
Covered branches:8
Total branches:8
Branch coverage:100% (8 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_BootDiagnostics()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%
DeserializeDiagnosticsProfile(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\DiagnosticsProfile.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.Compute.Models
 9{
 10    /// <summary> Specifies the boot diagnostic settings state. &lt;br&gt;&lt;br&gt;Minimum api-version: 2015-06-15. </s
 11    public partial class DiagnosticsProfile
 12    {
 13        /// <summary> Initializes a new instance of DiagnosticsProfile. </summary>
 414        public DiagnosticsProfile()
 15        {
 416        }
 17
 18        /// <summary> Initializes a new instance of DiagnosticsProfile. </summary>
 19        /// <param name="bootDiagnostics"> Boot Diagnostics is a debugging feature which allows you to view Console Outp
 3220        internal DiagnosticsProfile(BootDiagnostics bootDiagnostics)
 21        {
 3222            BootDiagnostics = bootDiagnostics;
 3223        }
 24
 25        /// <summary> Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to 
 7226        public BootDiagnostics BootDiagnostics { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\DiagnosticsProfile.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.Compute.Models
 12{
 13    public partial class DiagnosticsProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 1617            writer.WriteStartObject();
 1618            if (BootDiagnostics != null)
 19            {
 1620                writer.WritePropertyName("bootDiagnostics");
 1621                writer.WriteObjectValue(BootDiagnostics);
 22            }
 1623            writer.WriteEndObject();
 1624        }
 25
 26        internal static DiagnosticsProfile DeserializeDiagnosticsProfile(JsonElement element)
 27        {
 2828            BootDiagnostics bootDiagnostics = default;
 11229            foreach (var property in element.EnumerateObject())
 30            {
 2831                if (property.NameEquals("bootDiagnostics"))
 32                {
 2833                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 2837                    bootDiagnostics = BootDiagnostics.DeserializeBootDiagnostics(property.Value);
 38                    continue;
 39                }
 40            }
 2841            return new DiagnosticsProfile(bootDiagnostics);
 42        }
 43    }
 44}