< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%0%
get_TargetResourceId()-0%100%
get_VerbosityLevel()-0%100%
get_Profiles()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkConfigurationDiagnosticParameters.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;
 10using System.Linq;
 11
 12namespace Azure.ResourceManager.Network.Models
 13{
 14    /// <summary> Parameters to get network configuration diagnostic. </summary>
 15    public partial class NetworkConfigurationDiagnosticParameters
 16    {
 17        /// <summary> Initializes a new instance of NetworkConfigurationDiagnosticParameters. </summary>
 18        /// <param name="targetResourceId"> The ID of the target resource to perform network configuration diagnostic. V
 19        /// <param name="profiles"> List of network configuration diagnostic profiles. </param>
 020        public NetworkConfigurationDiagnosticParameters(string targetResourceId, IEnumerable<NetworkConfigurationDiagnos
 21        {
 022            if (targetResourceId == null)
 23            {
 024                throw new ArgumentNullException(nameof(targetResourceId));
 25            }
 026            if (profiles == null)
 27            {
 028                throw new ArgumentNullException(nameof(profiles));
 29            }
 30
 031            TargetResourceId = targetResourceId;
 032            Profiles = profiles.ToList();
 033        }
 34
 35        /// <summary> Initializes a new instance of NetworkConfigurationDiagnosticParameters. </summary>
 36        /// <param name="targetResourceId"> The ID of the target resource to perform network configuration diagnostic. V
 37        /// <param name="verbosityLevel"> Verbosity level. </param>
 38        /// <param name="profiles"> List of network configuration diagnostic profiles. </param>
 039        internal NetworkConfigurationDiagnosticParameters(string targetResourceId, VerbosityLevel? verbosityLevel, IList
 40        {
 041            TargetResourceId = targetResourceId;
 042            VerbosityLevel = verbosityLevel;
 043            Profiles = profiles ?? new List<NetworkConfigurationDiagnosticProfile>();
 044        }
 45
 46        /// <summary> The ID of the target resource to perform network configuration diagnostic. Valid options are VM, N
 047        public string TargetResourceId { get; }
 48        /// <summary> Verbosity level. </summary>
 049        public VerbosityLevel? VerbosityLevel { get; set; }
 50        /// <summary> List of network configuration diagnostic profiles. </summary>
 051        public IList<NetworkConfigurationDiagnosticProfile> Profiles { get; }
 52    }
 53}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkConfigurationDiagnosticParameters.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 NetworkConfigurationDiagnosticParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("targetResourceId");
 019            writer.WriteStringValue(TargetResourceId);
 020            if (VerbosityLevel != null)
 21            {
 022                writer.WritePropertyName("verbosityLevel");
 023                writer.WriteStringValue(VerbosityLevel.Value.ToString());
 24            }
 025            writer.WritePropertyName("profiles");
 026            writer.WriteStartArray();
 027            foreach (var item in Profiles)
 28            {
 029                writer.WriteObjectValue(item);
 30            }
 031            writer.WriteEndArray();
 032            writer.WriteEndObject();
 033        }
 34    }
 35}