< Summary

Class:Azure.ResourceManager.Network.Models.ApplicationGatewayBackendHealthOnDemand
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthOnDemand.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthOnDemand.Serialization.cs
Covered lines:0
Uncovered lines:19
Coverable lines:19
Total lines:75
Line coverage:0% (0 of 19)
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_BackendAddressPool()-0%100%
get_BackendHealthHttpSettings()-0%100%
DeserializeApplicationGatewayBackendHealthOnDemand(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthOnDemand.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> Result of on demand test probe. </summary>
 11    public partial class ApplicationGatewayBackendHealthOnDemand
 12    {
 13        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealthOnDemand. </summary>
 014        internal ApplicationGatewayBackendHealthOnDemand()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ApplicationGatewayBackendHealthOnDemand. </summary>
 19        /// <param name="backendAddressPool"> Reference to an ApplicationGatewayBackendAddressPool resource. </param>
 20        /// <param name="backendHealthHttpSettings"> Application gateway BackendHealthHttp settings. </param>
 021        internal ApplicationGatewayBackendHealthOnDemand(ApplicationGatewayBackendAddressPool backendAddressPool, Applic
 22        {
 023            BackendAddressPool = backendAddressPool;
 024            BackendHealthHttpSettings = backendHealthHttpSettings;
 025        }
 26
 27        /// <summary> Reference to an ApplicationGatewayBackendAddressPool resource. </summary>
 028        public ApplicationGatewayBackendAddressPool BackendAddressPool { get; }
 29        /// <summary> Application gateway BackendHealthHttp settings. </summary>
 030        public ApplicationGatewayBackendHealthHttpSettings BackendHealthHttpSettings { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayBackendHealthOnDemand.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 ApplicationGatewayBackendHealthOnDemand
 14    {
 15        internal static ApplicationGatewayBackendHealthOnDemand DeserializeApplicationGatewayBackendHealthOnDemand(JsonE
 16        {
 017            ApplicationGatewayBackendAddressPool backendAddressPool = default;
 018            ApplicationGatewayBackendHealthHttpSettings backendHealthHttpSettings = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("backendAddressPool"))
 22                {
 023                    if (property.Value.ValueKind == JsonValueKind.Null)
 24                    {
 25                        continue;
 26                    }
 027                    backendAddressPool = ApplicationGatewayBackendAddressPool.DeserializeApplicationGatewayBackendAddres
 028                    continue;
 29                }
 030                if (property.NameEquals("backendHealthHttpSettings"))
 31                {
 032                    if (property.Value.ValueKind == JsonValueKind.Null)
 33                    {
 34                        continue;
 35                    }
 036                    backendHealthHttpSettings = ApplicationGatewayBackendHealthHttpSettings.DeserializeApplicationGatewa
 37                    continue;
 38                }
 39            }
 040            return new ApplicationGatewayBackendHealthOnDemand(backendAddressPool, backendHealthHttpSettings);
 41        }
 42    }
 43}