< Summary

Class:Azure.ResourceManager.Network.Models.ApplicationGatewayBackendHealthHttpSettings
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthHttpSettings.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthHttpSettings.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_BackendHttpSettings()-0%100%
get_Servers()-0%100%
DeserializeApplicationGatewayBackendHealthHttpSettings(...)-0%0%

File(s)

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

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthHttpSettings.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 ApplicationGatewayBackendHealthHttpSettings
 15    {
 16        internal static ApplicationGatewayBackendHealthHttpSettings DeserializeApplicationGatewayBackendHealthHttpSettin
 17        {
 018            ApplicationGatewayBackendHttpSettings backendHttpSettings = default;
 019            IReadOnlyList<ApplicationGatewayBackendHealthServer> servers = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("backendHttpSettings"))
 23                {
 024                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 028                    backendHttpSettings = ApplicationGatewayBackendHttpSettings.DeserializeApplicationGatewayBackendHttp
 029                    continue;
 30                }
 031                if (property.NameEquals("servers"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    List<ApplicationGatewayBackendHealthServer> array = new List<ApplicationGatewayBackendHealthServer>(
 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(ApplicationGatewayBackendHealthServer.DeserializeApplicationGatewayBackendHealthSe
 47                        }
 48                    }
 049                    servers = array;
 50                    continue;
 51                }
 52            }
 053            return new ApplicationGatewayBackendHealthHttpSettings(backendHttpSettings, servers);
 54        }
 55    }
 56}