< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Protocol()-0%100%
get_Host()-0%100%
get_Path()-0%100%
get_Timeout()-0%100%
get_PickHostNameFromBackendHttpSettings()-0%100%
get_Match()-0%100%
get_BackendAddressPool()-0%100%
get_BackendHttpSettings()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayOnDemandProbe.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> Details of on demand test probe request. </summary>
 11    public partial class ApplicationGatewayOnDemandProbe
 12    {
 13        /// <summary> Initializes a new instance of ApplicationGatewayOnDemandProbe. </summary>
 014        public ApplicationGatewayOnDemandProbe()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ApplicationGatewayOnDemandProbe. </summary>
 19        /// <param name="protocol"> The protocol used for the probe. </param>
 20        /// <param name="host"> Host name to send the probe to. </param>
 21        /// <param name="path"> Relative path of probe. Valid path starts from &apos;/&apos;. Probe is sent to &lt;Proto
 22        /// <param name="timeout"> The probe timeout in seconds. Probe marked as failed if valid response is not receive
 23        /// <param name="pickHostNameFromBackendHttpSettings"> Whether the host header should be picked from the backend
 24        /// <param name="match"> Criterion for classifying a healthy probe response. </param>
 25        /// <param name="backendAddressPool"> Reference to backend pool of application gateway to which probe request wi
 26        /// <param name="backendHttpSettings"> Reference to backend http setting of application gateway to be used for t
 027        internal ApplicationGatewayOnDemandProbe(ApplicationGatewayProtocol? protocol, string host, string path, int? ti
 28        {
 029            Protocol = protocol;
 030            Host = host;
 031            Path = path;
 032            Timeout = timeout;
 033            PickHostNameFromBackendHttpSettings = pickHostNameFromBackendHttpSettings;
 034            Match = match;
 035            BackendAddressPool = backendAddressPool;
 036            BackendHttpSettings = backendHttpSettings;
 037        }
 38
 39        /// <summary> The protocol used for the probe. </summary>
 040        public ApplicationGatewayProtocol? Protocol { get; set; }
 41        /// <summary> Host name to send the probe to. </summary>
 042        public string Host { get; set; }
 43        /// <summary> Relative path of probe. Valid path starts from &apos;/&apos;. Probe is sent to &lt;Protocol&gt;://
 044        public string Path { get; set; }
 45        /// <summary> The probe timeout in seconds. Probe marked as failed if valid response is not received with this t
 046        public int? Timeout { get; set; }
 47        /// <summary> Whether the host header should be picked from the backend http settings. Default value is false. <
 048        public bool? PickHostNameFromBackendHttpSettings { get; set; }
 49        /// <summary> Criterion for classifying a healthy probe response. </summary>
 050        public ApplicationGatewayProbeHealthResponseMatch Match { get; set; }
 51        /// <summary> Reference to backend pool of application gateway to which probe request will be sent. </summary>
 052        public SubResource BackendAddressPool { get; set; }
 53        /// <summary> Reference to backend http setting of application gateway to be used for test probe. </summary>
 054        public SubResource BackendHttpSettings { get; set; }
 55    }
 56}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ApplicationGatewayOnDemandProbe.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 ApplicationGatewayOnDemandProbe : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Protocol != null)
 19            {
 020                writer.WritePropertyName("protocol");
 021                writer.WriteStringValue(Protocol.Value.ToString());
 22            }
 023            if (Host != null)
 24            {
 025                writer.WritePropertyName("host");
 026                writer.WriteStringValue(Host);
 27            }
 028            if (Path != null)
 29            {
 030                writer.WritePropertyName("path");
 031                writer.WriteStringValue(Path);
 32            }
 033            if (Timeout != null)
 34            {
 035                writer.WritePropertyName("timeout");
 036                writer.WriteNumberValue(Timeout.Value);
 37            }
 038            if (PickHostNameFromBackendHttpSettings != null)
 39            {
 040                writer.WritePropertyName("pickHostNameFromBackendHttpSettings");
 041                writer.WriteBooleanValue(PickHostNameFromBackendHttpSettings.Value);
 42            }
 043            if (Match != null)
 44            {
 045                writer.WritePropertyName("match");
 046                writer.WriteObjectValue(Match);
 47            }
 048            if (BackendAddressPool != null)
 49            {
 050                writer.WritePropertyName("backendAddressPool");
 051                writer.WriteObjectValue(BackendAddressPool);
 52            }
 053            if (BackendHttpSettings != null)
 54            {
 055                writer.WritePropertyName("backendHttpSettings");
 056                writer.WriteObjectValue(BackendHttpSettings);
 57            }
 058            writer.WriteEndObject();
 059        }
 60    }
 61}