< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_ActionId()-0%100%
get_ActionText()-0%100%
get_ActionUri()-0%100%
get_ActionUriText()-0%100%
DeserializeTroubleshootingRecommendedActions(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TroubleshootingRecommendedActions.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
 8namespace Azure.ResourceManager.Network.Models
 9{
 10    /// <summary> Recommended actions based on discovered issues. </summary>
 11    public partial class TroubleshootingRecommendedActions
 12    {
 13        /// <summary> Initializes a new instance of TroubleshootingRecommendedActions. </summary>
 014        internal TroubleshootingRecommendedActions()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of TroubleshootingRecommendedActions. </summary>
 19        /// <param name="actionId"> ID of the recommended action. </param>
 20        /// <param name="actionText"> Description of recommended actions. </param>
 21        /// <param name="actionUri"> The uri linking to a documentation for the recommended troubleshooting actions. </p
 22        /// <param name="actionUriText"> The information from the URI for the recommended troubleshooting actions. </par
 023        internal TroubleshootingRecommendedActions(string actionId, string actionText, string actionUri, string actionUr
 24        {
 025            ActionId = actionId;
 026            ActionText = actionText;
 027            ActionUri = actionUri;
 028            ActionUriText = actionUriText;
 029        }
 30
 31        /// <summary> ID of the recommended action. </summary>
 032        public string ActionId { get; }
 33        /// <summary> Description of recommended actions. </summary>
 034        public string ActionText { get; }
 35        /// <summary> The uri linking to a documentation for the recommended troubleshooting actions. </summary>
 036        public string ActionUri { get; }
 37        /// <summary> The information from the URI for the recommended troubleshooting actions. </summary>
 038        public string ActionUriText { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\TroubleshootingRecommendedActions.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 TroubleshootingRecommendedActions
 14    {
 15        internal static TroubleshootingRecommendedActions DeserializeTroubleshootingRecommendedActions(JsonElement eleme
 16        {
 017            string actionId = default;
 018            string actionText = default;
 019            string actionUri = default;
 020            string actionUriText = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("actionId"))
 24                {
 025                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 029                    actionId = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("actionText"))
 33                {
 034                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 038                    actionText = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("actionUri"))
 42                {
 043                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 047                    actionUri = property.Value.GetString();
 048                    continue;
 49                }
 050                if (property.NameEquals("actionUriText"))
 51                {
 052                    if (property.Value.ValueKind == JsonValueKind.Null)
 53                    {
 54                        continue;
 55                    }
 056                    actionUriText = property.Value.GetString();
 57                    continue;
 58                }
 59            }
 060            return new TroubleshootingRecommendedActions(actionId, actionText, actionUri, actionUriText);
 61        }
 62    }
 63}