< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PrepareNetworkPoliciesRequest.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> Details of PrepareNetworkPolicies for Subnet. </summary>
 13    public partial class PrepareNetworkPoliciesRequest
 14    {
 15        /// <summary> Initializes a new instance of PrepareNetworkPoliciesRequest. </summary>
 016        public PrepareNetworkPoliciesRequest()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of PrepareNetworkPoliciesRequest. </summary>
 21        /// <param name="serviceName"> The name of the service for which subnet is being prepared for. </param>
 22        /// <param name="networkIntentPolicyConfigurations"> A list of NetworkIntentPolicyConfiguration. </param>
 023        internal PrepareNetworkPoliciesRequest(string serviceName, IList<NetworkIntentPolicyConfiguration> networkIntent
 24        {
 025            ServiceName = serviceName;
 026            NetworkIntentPolicyConfigurations = networkIntentPolicyConfigurations;
 027        }
 28
 29        /// <summary> The name of the service for which subnet is being prepared for. </summary>
 030        public string ServiceName { get; set; }
 31        /// <summary> A list of NetworkIntentPolicyConfiguration. </summary>
 032        public IList<NetworkIntentPolicyConfiguration> NetworkIntentPolicyConfigurations { get; set; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PrepareNetworkPoliciesRequest.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 PrepareNetworkPoliciesRequest : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (ServiceName != null)
 19            {
 020                writer.WritePropertyName("serviceName");
 021                writer.WriteStringValue(ServiceName);
 22            }
 023            if (NetworkIntentPolicyConfigurations != null)
 24            {
 025                writer.WritePropertyName("networkIntentPolicyConfigurations");
 026                writer.WriteStartArray();
 027                foreach (var item in NetworkIntentPolicyConfigurations)
 28                {
 029                    writer.WriteObjectValue(item);
 30                }
 031                writer.WriteEndArray();
 32            }
 033            writer.WriteEndObject();
 034        }
 35    }
 36}