< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Address()-0%100%
get_IpConfiguration()-0%100%
get_Health()-0%100%
get_HealthProbeLog()-0%100%
DeserializeApplicationGatewayBackendHealthServer(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthServer.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
 8namespace Azure.ResourceManager.Network.Models
 9{
 10    /// <summary> Application gateway backendhealth http settings. </summary>
 11    public partial class ApplicationGatewayBackendHealthServer
 12    {
 13        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealthServer. </summary>
 014        internal ApplicationGatewayBackendHealthServer()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealthServer. </summary>
 19        /// <param name="address"> IP address or FQDN of backend server. </param>
 20        /// <param name="ipConfiguration"> Reference to IP configuration of backend server. </param>
 21        /// <param name="health"> Health of backend server. </param>
 22        /// <param name="healthProbeLog"> Health Probe Log. </param>
 023        internal ApplicationGatewayBackendHealthServer(string address, NetworkInterfaceIPConfiguration ipConfiguration, 
 24        {
 025            Address = address;
 026            IpConfiguration = ipConfiguration;
 027            Health = health;
 028            HealthProbeLog = healthProbeLog;
 029        }
 30
 31        /// <summary> IP address or FQDN of backend server. </summary>
 032        public string Address { get; }
 33        /// <summary> Reference to IP configuration of backend server. </summary>
 034        public NetworkInterfaceIPConfiguration IpConfiguration { get; }
 35        /// <summary> Health of backend server. </summary>
 036        public ApplicationGatewayBackendHealthServerHealth? Health { get; }
 37        /// <summary> Health Probe Log. </summary>
 038        public string HealthProbeLog { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthServer.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.Network.Models
 12{
 13    public partial class ApplicationGatewayBackendHealthServer
 14    {
 15        internal static ApplicationGatewayBackendHealthServer DeserializeApplicationGatewayBackendHealthServer(JsonEleme
 16        {
 017            string address = default;
 018            NetworkInterfaceIPConfiguration ipConfiguration = default;
 019            ApplicationGatewayBackendHealthServerHealth? health = default;
 020            string healthProbeLog = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("address"))
 24                {
 025                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 029                    address = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("ipConfiguration"))
 33                {
 034                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 038                    ipConfiguration = NetworkInterfaceIPConfiguration.DeserializeNetworkInterfaceIPConfiguration(propert
 039                    continue;
 40                }
 041                if (property.NameEquals("health"))
 42                {
 043                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 047                    health = new ApplicationGatewayBackendHealthServerHealth(property.Value.GetString());
 048                    continue;
 49                }
 050                if (property.NameEquals("healthProbeLog"))
 51                {
 052                    if (property.Value.ValueKind == JsonValueKind.Null)
 53                    {
 54                        continue;
 55                    }
 056                    healthProbeLog = property.Value.GetString();
 57                    continue;
 58                }
 59            }
 060            return new ApplicationGatewayBackendHealthServer(address, ipConfiguration, health, healthProbeLog);
 61        }
 62    }
 63}