< Summary

Class:Azure.ResourceManager.KeyVault.Models.PrivateLinkResourceListResult
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateLinkResourceListResult.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateLinkResourceListResult.Serialization.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:67
Line coverage:0% (0 of 15)
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_Value()-0%100%
DeserializePrivateLinkResourceListResult(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateLinkResourceListResult.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 Azure.Core;
 10
 11namespace Azure.ResourceManager.KeyVault.Models
 12{
 13    /// <summary> A list of private link resources. </summary>
 14    public partial class PrivateLinkResourceListResult
 15    {
 16        /// <summary> Initializes a new instance of PrivateLinkResourceListResult. </summary>
 017        internal PrivateLinkResourceListResult()
 18        {
 019            Value = new ChangeTrackingList<PrivateLinkResource>();
 020        }
 21
 22        /// <summary> Initializes a new instance of PrivateLinkResourceListResult. </summary>
 23        /// <param name="value"> Array of private link resources. </param>
 024        internal PrivateLinkResourceListResult(IReadOnlyList<PrivateLinkResource> value)
 25        {
 026            Value = value;
 027        }
 28
 29        /// <summary> Array of private link resources. </summary>
 030        public IReadOnlyList<PrivateLinkResource> Value { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateLinkResourceListResult.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.KeyVault.Models
 13{
 14    public partial class PrivateLinkResourceListResult
 15    {
 16        internal static PrivateLinkResourceListResult DeserializePrivateLinkResourceListResult(JsonElement element)
 17        {
 018            Optional<IReadOnlyList<PrivateLinkResource>> value = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("value"))
 22                {
 023                    List<PrivateLinkResource> array = new List<PrivateLinkResource>();
 024                    foreach (var item in property.Value.EnumerateArray())
 25                    {
 026                        array.Add(PrivateLinkResource.DeserializePrivateLinkResource(item));
 27                    }
 028                    value = array;
 29                    continue;
 30                }
 31            }
 032            return new PrivateLinkResourceListResult(Optional.ToList(value));
 33        }
 34    }
 35}