< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\QueryTroubleshootingParameters.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;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> Parameters that define the resource to query the troubleshooting result. </summary>
 13    public partial class QueryTroubleshootingParameters
 14    {
 15        /// <summary> Initializes a new instance of QueryTroubleshootingParameters. </summary>
 16        /// <param name="targetResourceId"> The target resource ID to query the troubleshooting result. </param>
 017        public QueryTroubleshootingParameters(string targetResourceId)
 18        {
 019            if (targetResourceId == null)
 20            {
 021                throw new ArgumentNullException(nameof(targetResourceId));
 22            }
 23
 024            TargetResourceId = targetResourceId;
 025        }
 26
 27        /// <summary> The target resource ID to query the troubleshooting result. </summary>
 028        public string TargetResourceId { get; }
 29    }
 30}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\QueryTroubleshootingParameters.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 QueryTroubleshootingParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("targetResourceId");
 019            writer.WriteStringValue(TargetResourceId);
 020            writer.WriteEndObject();
 021        }
 22    }
 23}