< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PrivateEndpoint()-0%100%
get_PrivateLinkServiceConnectionState()-0%100%
get_ProvisioningState()-0%100%
DeserializePrivateEndpointConnectionItem(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateEndpointConnectionItem.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 connection item. </summary>
 11    public partial class PrivateEndpointConnectionItem
 12    {
 13        /// <summary> Initializes a new instance of PrivateEndpointConnectionItem. </summary>
 014        internal PrivateEndpointConnectionItem()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of PrivateEndpointConnectionItem. </summary>
 19        /// <param name="privateEndpoint"> Properties of the private endpoint object. </param>
 20        /// <param name="privateLinkServiceConnectionState"> Approval state of the private link connection. </param>
 21        /// <param name="provisioningState"> Provisioning state of the private endpoint connection. </param>
 022        internal PrivateEndpointConnectionItem(PrivateEndpoint privateEndpoint, PrivateLinkServiceConnectionState privat
 23        {
 024            PrivateEndpoint = privateEndpoint;
 025            PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
 026            ProvisioningState = provisioningState;
 027        }
 28
 29        /// <summary> Properties of the private endpoint object. </summary>
 030        public PrivateEndpoint PrivateEndpoint { get; }
 31        /// <summary> Approval state of the private link connection. </summary>
 032        public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; }
 33        /// <summary> Provisioning state of the private endpoint connection. </summary>
 034        public PrivateEndpointConnectionProvisioningState? ProvisioningState { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\PrivateEndpointConnectionItem.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 PrivateEndpointConnectionItem
 14    {
 15        internal static PrivateEndpointConnectionItem DeserializePrivateEndpointConnectionItem(JsonElement element)
 16        {
 017            Optional<PrivateEndpoint> privateEndpoint = default;
 018            Optional<PrivateLinkServiceConnectionState> privateLinkServiceConnectionState = default;
 019            Optional<PrivateEndpointConnectionProvisioningState> provisioningState = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("properties"))
 23                {
 024                    foreach (var property0 in property.Value.EnumerateObject())
 25                    {
 026                        if (property0.NameEquals("privateEndpoint"))
 27                        {
 028                            privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(property0.Value);
 029                            continue;
 30                        }
 031                        if (property0.NameEquals("privateLinkServiceConnectionState"))
 32                        {
 033                            privateLinkServiceConnectionState = PrivateLinkServiceConnectionState.DeserializePrivateLink
 034                            continue;
 35                        }
 036                        if (property0.NameEquals("provisioningState"))
 37                        {
 038                            provisioningState = new PrivateEndpointConnectionProvisioningState(property0.Value.GetString
 39                            continue;
 40                        }
 41                    }
 42                    continue;
 43                }
 44            }
 045            return new PrivateEndpointConnectionItem(privateEndpoint.Value, privateLinkServiceConnectionState.Value, Opt
 46        }
 47    }
 48}