< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_VmDiagnostics()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%100%
DeserializeContainerServiceDiagnosticsProfile(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ContainerServiceDiagnosticsProfile.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;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> The ContainerServiceDiagnosticsProfile. </summary>
 13    public partial class ContainerServiceDiagnosticsProfile
 14    {
 15        /// <summary> Initializes a new instance of ContainerServiceDiagnosticsProfile. </summary>
 16        /// <param name="vmDiagnostics"> Profile for the container service VM diagnostic agent. </param>
 017        public ContainerServiceDiagnosticsProfile(ContainerServiceVMDiagnostics vmDiagnostics)
 18        {
 019            if (vmDiagnostics == null)
 20            {
 021                throw new ArgumentNullException(nameof(vmDiagnostics));
 22            }
 23
 024            VmDiagnostics = vmDiagnostics;
 025        }
 26
 27        /// <summary> Profile for the container service VM diagnostic agent. </summary>
 028        public ContainerServiceVMDiagnostics VmDiagnostics { get; set; }
 29    }
 30}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ContainerServiceDiagnosticsProfile.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 ContainerServiceDiagnosticsProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("vmDiagnostics");
 019            writer.WriteObjectValue(VmDiagnostics);
 020            writer.WriteEndObject();
 021        }
 22
 23        internal static ContainerServiceDiagnosticsProfile DeserializeContainerServiceDiagnosticsProfile(JsonElement ele
 24        {
 025            ContainerServiceVMDiagnostics vmDiagnostics = default;
 026            foreach (var property in element.EnumerateObject())
 27            {
 028                if (property.NameEquals("vmDiagnostics"))
 29                {
 030                    vmDiagnostics = ContainerServiceVMDiagnostics.DeserializeContainerServiceVMDiagnostics(property.Valu
 31                    continue;
 32                }
 33            }
 034            return new ContainerServiceDiagnosticsProfile(vmDiagnostics);
 35        }
 36    }
 37}