< Summary

Class:Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdateNetworkProfile
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateNetworkProfile.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateNetworkProfile.Serialization.cs
Covered lines:0
Uncovered lines:20
Coverable lines:20
Total lines:70
Line coverage:0% (0 of 20)
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_HealthProbe()-0%100%
get_NetworkInterfaceConfigurations()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateNetworkProfile.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;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> Describes a virtual machine scale set network profile. </summary>
 13    public partial class VirtualMachineScaleSetUpdateNetworkProfile
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateNetworkProfile. </summary>
 016        public VirtualMachineScaleSetUpdateNetworkProfile()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateNetworkProfile. </summary>
 21        /// <param name="healthProbe"> A reference to a load balancer probe used to determine the health of an instance 
 22        /// <param name="networkInterfaceConfigurations"> The list of network configurations. </param>
 023        internal VirtualMachineScaleSetUpdateNetworkProfile(ApiEntityReference healthProbe, IList<VirtualMachineScaleSet
 24        {
 025            HealthProbe = healthProbe;
 026            NetworkInterfaceConfigurations = networkInterfaceConfigurations;
 027        }
 28
 29        /// <summary> A reference to a load balancer probe used to determine the health of an instance in the virtual ma
 030        public ApiEntityReference HealthProbe { get; set; }
 31        /// <summary> The list of network configurations. </summary>
 032        public IList<VirtualMachineScaleSetUpdateNetworkConfiguration> NetworkInterfaceConfigurations { get; set; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateNetworkProfile.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 VirtualMachineScaleSetUpdateNetworkProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (HealthProbe != null)
 19            {
 020                writer.WritePropertyName("healthProbe");
 021                writer.WriteObjectValue(HealthProbe);
 22            }
 023            if (NetworkInterfaceConfigurations != null)
 24            {
 025                writer.WritePropertyName("networkInterfaceConfigurations");
 026                writer.WriteStartArray();
 027                foreach (var item in NetworkInterfaceConfigurations)
 28                {
 029                    writer.WriteObjectValue(item);
 30                }
 031                writer.WriteEndArray();
 32            }
 033            writer.WriteEndObject();
 034        }
 35    }
 36}