< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_VpnSites()-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\GetVpnSitesConfigurationRequest.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;
 9using System.Collections.Generic;
 10
 11namespace Azure.ResourceManager.Network.Models
 12{
 13    /// <summary> List of Vpn-Sites. </summary>
 14    public partial class GetVpnSitesConfigurationRequest
 15    {
 16        /// <summary> Initializes a new instance of GetVpnSitesConfigurationRequest. </summary>
 17        /// <param name="outputBlobSasUrl"> The sas-url to download the configurations for vpn-sites. </param>
 018        public GetVpnSitesConfigurationRequest(string outputBlobSasUrl)
 19        {
 020            if (outputBlobSasUrl == null)
 21            {
 022                throw new ArgumentNullException(nameof(outputBlobSasUrl));
 23            }
 24
 025            OutputBlobSasUrl = outputBlobSasUrl;
 026        }
 27
 28        /// <summary> Initializes a new instance of GetVpnSitesConfigurationRequest. </summary>
 29        /// <param name="vpnSites"> List of resource-ids of the vpn-sites for which config is to be downloaded. </param>
 30        /// <param name="outputBlobSasUrl"> The sas-url to download the configurations for vpn-sites. </param>
 031        internal GetVpnSitesConfigurationRequest(IList<string> vpnSites, string outputBlobSasUrl)
 32        {
 033            VpnSites = vpnSites;
 034            OutputBlobSasUrl = outputBlobSasUrl;
 035        }
 36
 37        /// <summary> List of resource-ids of the vpn-sites for which config is to be downloaded. </summary>
 038        public IList<string> VpnSites { get; set; }
 39        /// <summary> The sas-url to download the configurations for vpn-sites. </summary>
 040        public string OutputBlobSasUrl { get; }
 41    }
 42}

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