< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_BackendAddressPool()-0%100%
get_BackendHttpSettingsCollection()-0%100%
DeserializeApplicationGatewayBackendHealthPool(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthPool.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> Application gateway BackendHealth pool. </summary>
 13    public partial class ApplicationGatewayBackendHealthPool
 14    {
 15        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealthPool. </summary>
 016        internal ApplicationGatewayBackendHealthPool()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealthPool. </summary>
 21        /// <param name="backendAddressPool"> Reference to an ApplicationGatewayBackendAddressPool resource. </param>
 22        /// <param name="backendHttpSettingsCollection"> List of ApplicationGatewayBackendHealthHttpSettings resources. 
 023        internal ApplicationGatewayBackendHealthPool(ApplicationGatewayBackendAddressPool backendAddressPool, IReadOnlyL
 24        {
 025            BackendAddressPool = backendAddressPool;
 026            BackendHttpSettingsCollection = backendHttpSettingsCollection;
 027        }
 28
 29        /// <summary> Reference to an ApplicationGatewayBackendAddressPool resource. </summary>
 030        public ApplicationGatewayBackendAddressPool BackendAddressPool { get; }
 31        /// <summary> List of ApplicationGatewayBackendHealthHttpSettings resources. </summary>
 032        public IReadOnlyList<ApplicationGatewayBackendHealthHttpSettings> BackendHttpSettingsCollection { get; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthPool.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 ApplicationGatewayBackendHealthPool
 15    {
 16        internal static ApplicationGatewayBackendHealthPool DeserializeApplicationGatewayBackendHealthPool(JsonElement e
 17        {
 018            ApplicationGatewayBackendAddressPool backendAddressPool = default;
 019            IReadOnlyList<ApplicationGatewayBackendHealthHttpSettings> backendHttpSettingsCollection = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("backendAddressPool"))
 23                {
 024                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 028                    backendAddressPool = ApplicationGatewayBackendAddressPool.DeserializeApplicationGatewayBackendAddres
 029                    continue;
 30                }
 031                if (property.NameEquals("backendHttpSettingsCollection"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    List<ApplicationGatewayBackendHealthHttpSettings> array = new List<ApplicationGatewayBackendHealthHt
 038                    foreach (var item in property.Value.EnumerateArray())
 39                    {
 040                        if (item.ValueKind == JsonValueKind.Null)
 41                        {
 042                            array.Add(null);
 43                        }
 44                        else
 45                        {
 046                            array.Add(ApplicationGatewayBackendHealthHttpSettings.DeserializeApplicationGatewayBackendHe
 47                        }
 48                    }
 049                    backendHttpSettingsCollection = array;
 50                    continue;
 51                }
 52            }
 053            return new ApplicationGatewayBackendHealthPool(backendAddressPool, backendHttpSettingsCollection);
 54        }
 55    }
 56}