< Summary

Class:Azure.ResourceManager.KeyVault.Models.PrivateEndpoint
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateEndpoint.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateEndpoint.Serialization.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:63
Line coverage:0% (0 of 14)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateEndpoint.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.KeyVault.Models
 9{
 10    /// <summary> Private endpoint object properties. </summary>
 11    public partial class PrivateEndpoint
 12    {
 13        /// <summary> Initializes a new instance of PrivateEndpoint. </summary>
 014        public PrivateEndpoint()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of PrivateEndpoint. </summary>
 19        /// <param name="id"> Full identifier of the private endpoint resource. </param>
 020        internal PrivateEndpoint(string id)
 21        {
 022            Id = id;
 023        }
 24
 25        /// <summary> Full identifier of the private endpoint resource. </summary>
 026        public string Id { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateEndpoint.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.KeyVault.Models
 12{
 13    public partial class PrivateEndpoint : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WriteEndObject();
 019        }
 20
 21        internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element)
 22        {
 023            Optional<string> id = default;
 024            foreach (var property in element.EnumerateObject())
 25            {
 026                if (property.NameEquals("id"))
 27                {
 028                    id = property.Value.GetString();
 29                    continue;
 30                }
 31            }
 032            return new PrivateEndpoint(id.Value);
 33        }
 34    }
 35}