< Summary

Class:Azure.ResourceManager.Network.Models.PrivateLinkServiceVisibility
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PrivateLinkServiceVisibility.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PrivateLinkServiceVisibility.Serialization.cs
Covered lines:10
Uncovered lines:2
Coverable lines:12
Total lines:61
Line coverage:83.3% (10 of 12)
Covered branches:6
Total branches:6
Branch coverage:100% (6 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Visible()-100%100%
DeserializePrivateLinkServiceVisibility(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PrivateLinkServiceVisibility.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> Response for the CheckPrivateLinkServiceVisibility API service call. </summary>
 11    public partial class PrivateLinkServiceVisibility
 12    {
 13        /// <summary> Initializes a new instance of PrivateLinkServiceVisibility. </summary>
 014        internal PrivateLinkServiceVisibility()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of PrivateLinkServiceVisibility. </summary>
 19        /// <param name="visible"> Private Link Service Visibility (True/False). </param>
 420        internal PrivateLinkServiceVisibility(bool? visible)
 21        {
 422            Visible = visible;
 423        }
 24
 25        /// <summary> Private Link Service Visibility (True/False). </summary>
 426        public bool? Visible { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PrivateLinkServiceVisibility.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 PrivateLinkServiceVisibility
 14    {
 15        internal static PrivateLinkServiceVisibility DeserializePrivateLinkServiceVisibility(JsonElement element)
 16        {
 417            bool? visible = default;
 1618            foreach (var property in element.EnumerateObject())
 19            {
 420                if (property.NameEquals("visible"))
 21                {
 422                    if (property.Value.ValueKind == JsonValueKind.Null)
 23                    {
 24                        continue;
 25                    }
 426                    visible = property.Value.GetBoolean();
 27                    continue;
 28                }
 29            }
 430            return new PrivateLinkServiceVisibility(visible);
 31        }
 32    }
 33}