< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_VpnUserNamesFilter()-0%100%
get_OutputBlobSasUrl()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\P2SVpnConnectionHealthRequest.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> List of P2S Vpn connection health request. </summary>
 13    public partial class P2SVpnConnectionHealthRequest
 14    {
 15        /// <summary> Initializes a new instance of P2SVpnConnectionHealthRequest. </summary>
 016        public P2SVpnConnectionHealthRequest()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of P2SVpnConnectionHealthRequest. </summary>
 21        /// <param name="vpnUserNamesFilter"> The list of p2s vpn user names whose p2s vpn connection detailed health to
 22        /// <param name="outputBlobSasUrl"> The sas-url to download the P2S Vpn connection health detail. </param>
 023        internal P2SVpnConnectionHealthRequest(IList<string> vpnUserNamesFilter, string outputBlobSasUrl)
 24        {
 025            VpnUserNamesFilter = vpnUserNamesFilter;
 026            OutputBlobSasUrl = outputBlobSasUrl;
 027        }
 28
 29        /// <summary> The list of p2s vpn user names whose p2s vpn connection detailed health to retrieve for. </summary
 030        public IList<string> VpnUserNamesFilter { get; set; }
 31        /// <summary> The sas-url to download the P2S Vpn connection health detail. </summary>
 032        public string OutputBlobSasUrl { get; set; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\P2SVpnConnectionHealthRequest.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 P2SVpnConnectionHealthRequest : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (VpnUserNamesFilter != null)
 19            {
 020                writer.WritePropertyName("vpnUserNamesFilter");
 021                writer.WriteStartArray();
 022                foreach (var item in VpnUserNamesFilter)
 23                {
 024                    writer.WriteStringValue(item);
 25                }
 026                writer.WriteEndArray();
 27            }
 028            if (OutputBlobSasUrl != null)
 29            {
 030                writer.WritePropertyName("outputBlobSasUrl");
 031                writer.WriteStringValue(OutputBlobSasUrl);
 32            }
 033            writer.WriteEndObject();
 034        }
 35    }
 36}