< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\CheckPrivateLinkServiceVisibilityRequest.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> Request body of the CheckPrivateLinkServiceVisibility API service call. </summary>
 11    public partial class CheckPrivateLinkServiceVisibilityRequest
 12    {
 13        /// <summary> Initializes a new instance of CheckPrivateLinkServiceVisibilityRequest. </summary>
 014        public CheckPrivateLinkServiceVisibilityRequest()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of CheckPrivateLinkServiceVisibilityRequest. </summary>
 19        /// <param name="privateLinkServiceAlias"> The alias of the private link service. </param>
 420        internal CheckPrivateLinkServiceVisibilityRequest(string privateLinkServiceAlias)
 21        {
 422            PrivateLinkServiceAlias = privateLinkServiceAlias;
 423        }
 24
 25        /// <summary> The alias of the private link service. </summary>
 2026        public string PrivateLinkServiceAlias { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\CheckPrivateLinkServiceVisibilityRequest.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 CheckPrivateLinkServiceVisibilityRequest : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 817            writer.WriteStartObject();
 818            if (PrivateLinkServiceAlias != null)
 19            {
 820                writer.WritePropertyName("privateLinkServiceAlias");
 821                writer.WriteStringValue(PrivateLinkServiceAlias);
 22            }
 823            writer.WriteEndObject();
 824        }
 25    }
 26}