< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkIntentPolicyConfiguration.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> Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest. </summary>
 11    public partial class NetworkIntentPolicyConfiguration
 12    {
 13        /// <summary> Initializes a new instance of NetworkIntentPolicyConfiguration. </summary>
 014        public NetworkIntentPolicyConfiguration()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of NetworkIntentPolicyConfiguration. </summary>
 19        /// <param name="networkIntentPolicyName"> The name of the Network Intent Policy for storing in target subscript
 20        /// <param name="sourceNetworkIntentPolicy"> Source network intent policy. </param>
 021        internal NetworkIntentPolicyConfiguration(string networkIntentPolicyName, NetworkIntentPolicy sourceNetworkInten
 22        {
 023            NetworkIntentPolicyName = networkIntentPolicyName;
 024            SourceNetworkIntentPolicy = sourceNetworkIntentPolicy;
 025        }
 26
 27        /// <summary> The name of the Network Intent Policy for storing in target subscription. </summary>
 028        public string NetworkIntentPolicyName { get; set; }
 29        /// <summary> Source network intent policy. </summary>
 030        public NetworkIntentPolicy SourceNetworkIntentPolicy { get; set; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkIntentPolicyConfiguration.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 NetworkIntentPolicyConfiguration : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (NetworkIntentPolicyName != null)
 19            {
 020                writer.WritePropertyName("networkIntentPolicyName");
 021                writer.WriteStringValue(NetworkIntentPolicyName);
 22            }
 023            if (SourceNetworkIntentPolicy != null)
 24            {
 025                writer.WritePropertyName("sourceNetworkIntentPolicy");
 026                writer.WriteObjectValue(SourceNetworkIntentPolicy);
 27            }
 028            writer.WriteEndObject();
 029        }
 30    }
 31}