< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TroubleshootingParameters.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 troubleshoot. </summary>
 13    public partial class TroubleshootingParameters
 14    {
 15        /// <summary> Initializes a new instance of TroubleshootingParameters. </summary>
 16        /// <param name="targetResourceId"> The target resource to troubleshoot. </param>
 17        /// <param name="storageId"> The ID for the storage account to save the troubleshoot result. </param>
 18        /// <param name="storagePath"> The path to the blob to save the troubleshoot result in. </param>
 019        public TroubleshootingParameters(string targetResourceId, string storageId, string storagePath)
 20        {
 021            if (targetResourceId == null)
 22            {
 023                throw new ArgumentNullException(nameof(targetResourceId));
 24            }
 025            if (storageId == null)
 26            {
 027                throw new ArgumentNullException(nameof(storageId));
 28            }
 029            if (storagePath == null)
 30            {
 031                throw new ArgumentNullException(nameof(storagePath));
 32            }
 33
 034            TargetResourceId = targetResourceId;
 035            StorageId = storageId;
 036            StoragePath = storagePath;
 037        }
 38
 39        /// <summary> The target resource to troubleshoot. </summary>
 040        public string TargetResourceId { get; }
 41        /// <summary> The ID for the storage account to save the troubleshoot result. </summary>
 042        public string StorageId { get; }
 43        /// <summary> The path to the blob to save the troubleshoot result in. </summary>
 044        public string StoragePath { get; }
 45    }
 46}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TroubleshootingParameters.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 TroubleshootingParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("targetResourceId");
 019            writer.WriteStringValue(TargetResourceId);
 020            writer.WritePropertyName("properties");
 021            writer.WriteStartObject();
 022            writer.WritePropertyName("storageId");
 023            writer.WriteStringValue(StorageId);
 024            writer.WritePropertyName("storagePath");
 025            writer.WriteStringValue(StoragePath);
 026            writer.WriteEndObject();
 027            writer.WriteEndObject();
 028        }
 29    }
 30}