< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_GroupId()-0%100%
get_RequiredMemberName()-0%100%
get_Fqdns()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeNetworkInterfaceIPConfigurationPrivateLinkConnectionProperties(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties.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> PrivateLinkConnection properties for the network interface. </summary>
 13    public partial class NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties
 14    {
 15        /// <summary> Initializes a new instance of NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties. </su
 016        public NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties. </su
 21        /// <param name="groupId"> The group ID for current private link connection. </param>
 22        /// <param name="requiredMemberName"> The required member name for current private link connection. </param>
 23        /// <param name="fqdns"> List of FQDNs for current private link connection. </param>
 024        internal NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties(string groupId, string requiredMemberNam
 25        {
 026            GroupId = groupId;
 027            RequiredMemberName = requiredMemberName;
 028            Fqdns = fqdns;
 029        }
 30
 31        /// <summary> The group ID for current private link connection. </summary>
 032        public string GroupId { get; }
 33        /// <summary> The required member name for current private link connection. </summary>
 034        public string RequiredMemberName { get; }
 35        /// <summary> List of FQDNs for current private link connection. </summary>
 036        public IList<string> Fqdns { get; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.Network.Models
 13{
 14    public partial class NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            if (GroupId != null)
 20            {
 021                writer.WritePropertyName("groupId");
 022                writer.WriteStringValue(GroupId);
 23            }
 024            if (RequiredMemberName != null)
 25            {
 026                writer.WritePropertyName("requiredMemberName");
 027                writer.WriteStringValue(RequiredMemberName);
 28            }
 029            if (Fqdns != null)
 30            {
 031                writer.WritePropertyName("fqdns");
 032                writer.WriteStartArray();
 033                foreach (var item in Fqdns)
 34                {
 035                    writer.WriteStringValue(item);
 36                }
 037                writer.WriteEndArray();
 38            }
 039            writer.WriteEndObject();
 040        }
 41
 42        internal static NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties DeserializeNetworkInterfaceIPConf
 43        {
 044            string groupId = default;
 045            string requiredMemberName = default;
 046            IList<string> fqdns = default;
 047            foreach (var property in element.EnumerateObject())
 48            {
 049                if (property.NameEquals("groupId"))
 50                {
 051                    if (property.Value.ValueKind == JsonValueKind.Null)
 52                    {
 53                        continue;
 54                    }
 055                    groupId = property.Value.GetString();
 056                    continue;
 57                }
 058                if (property.NameEquals("requiredMemberName"))
 59                {
 060                    if (property.Value.ValueKind == JsonValueKind.Null)
 61                    {
 62                        continue;
 63                    }
 064                    requiredMemberName = property.Value.GetString();
 065                    continue;
 66                }
 067                if (property.NameEquals("fqdns"))
 68                {
 069                    if (property.Value.ValueKind == JsonValueKind.Null)
 70                    {
 71                        continue;
 72                    }
 073                    List<string> array = new List<string>();
 074                    foreach (var item in property.Value.EnumerateArray())
 75                    {
 076                        if (item.ValueKind == JsonValueKind.Null)
 77                        {
 078                            array.Add(null);
 79                        }
 80                        else
 81                        {
 082                            array.Add(item.GetString());
 83                        }
 84                    }
 085                    fqdns = array;
 86                    continue;
 87                }
 88            }
 089            return new NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties(groupId, requiredMemberName, fqdns
 90        }
 91    }
 92}