< Summary

Class:Azure.ResourceManager.Network.Models.ApplicationGatewayBackendHealth
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealth.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealth.Serialization.cs
Covered lines:0
Uncovered lines:17
Coverable lines:17
Total lines:76
Line coverage:0% (0 of 17)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_BackendAddressPools()-0%100%
DeserializeApplicationGatewayBackendHealth(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealth.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.Network.Models
 11{
 12    /// <summary> Response for ApplicationGatewayBackendHealth API service call. </summary>
 13    public partial class ApplicationGatewayBackendHealth
 14    {
 15        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealth. </summary>
 016        internal ApplicationGatewayBackendHealth()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealth. </summary>
 21        /// <param name="backendAddressPools"> A list of ApplicationGatewayBackendHealthPool resources. </param>
 022        internal ApplicationGatewayBackendHealth(IReadOnlyList<ApplicationGatewayBackendHealthPool> backendAddressPools)
 23        {
 024            BackendAddressPools = backendAddressPools;
 025        }
 26
 27        /// <summary> A list of ApplicationGatewayBackendHealthPool resources. </summary>
 028        public IReadOnlyList<ApplicationGatewayBackendHealthPool> BackendAddressPools { get; }
 29    }
 30}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealth.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.Network.Models
 13{
 14    public partial class ApplicationGatewayBackendHealth
 15    {
 16        internal static ApplicationGatewayBackendHealth DeserializeApplicationGatewayBackendHealth(JsonElement element)
 17        {
 018            IReadOnlyList<ApplicationGatewayBackendHealthPool> backendAddressPools = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("backendAddressPools"))
 22                {
 023                    if (property.Value.ValueKind == JsonValueKind.Null)
 24                    {
 25                        continue;
 26                    }
 027                    List<ApplicationGatewayBackendHealthPool> array = new List<ApplicationGatewayBackendHealthPool>();
 028                    foreach (var item in property.Value.EnumerateArray())
 29                    {
 030                        if (item.ValueKind == JsonValueKind.Null)
 31                        {
 032                            array.Add(null);
 33                        }
 34                        else
 35                        {
 036                            array.Add(ApplicationGatewayBackendHealthPool.DeserializeApplicationGatewayBackendHealthPool
 37                        }
 38                    }
 039                    backendAddressPools = array;
 40                    continue;
 41                }
 42            }
 043            return new ApplicationGatewayBackendHealth(backendAddressPools);
 44        }
 45    }
 46}