< Summary

Class:Azure.ResourceManager.Network.Models.AvailablePrivateEndpointType
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AvailablePrivateEndpointType.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AvailablePrivateEndpointType.Serialization.cs
Covered lines:0
Uncovered lines:33
Coverable lines:33
Total lines:103
Line coverage:0% (0 of 33)
Covered branches:0
Total branches:18
Branch coverage:0% (0 of 18)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_Id()-0%100%
get_Type()-0%100%
get_ResourceName()-0%100%
DeserializeAvailablePrivateEndpointType(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AvailablePrivateEndpointType.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> The information of an AvailablePrivateEndpointType. </summary>
 11    public partial class AvailablePrivateEndpointType
 12    {
 13        /// <summary> Initializes a new instance of AvailablePrivateEndpointType. </summary>
 014        internal AvailablePrivateEndpointType()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of AvailablePrivateEndpointType. </summary>
 19        /// <param name="name"> The name of the service and resource. </param>
 20        /// <param name="id"> A unique identifier of the AvailablePrivateEndpoint Type resource. </param>
 21        /// <param name="type"> Resource type. </param>
 22        /// <param name="resourceName"> The name of the service and resource. </param>
 023        internal AvailablePrivateEndpointType(string name, string id, string type, string resourceName)
 24        {
 025            Name = name;
 026            Id = id;
 027            Type = type;
 028            ResourceName = resourceName;
 029        }
 30
 31        /// <summary> The name of the service and resource. </summary>
 032        public string Name { get; }
 33        /// <summary> A unique identifier of the AvailablePrivateEndpoint Type resource. </summary>
 034        public string Id { get; }
 35        /// <summary> Resource type. </summary>
 036        public string Type { get; }
 37        /// <summary> The name of the service and resource. </summary>
 038        public string ResourceName { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AvailablePrivateEndpointType.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 AvailablePrivateEndpointType
 14    {
 15        internal static AvailablePrivateEndpointType DeserializeAvailablePrivateEndpointType(JsonElement element)
 16        {
 017            string name = default;
 018            string id = default;
 019            string type = default;
 020            string resourceName = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("name"))
 24                {
 025                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 029                    name = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("id"))
 33                {
 034                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 038                    id = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("type"))
 42                {
 043                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 047                    type = property.Value.GetString();
 048                    continue;
 49                }
 050                if (property.NameEquals("resourceName"))
 51                {
 052                    if (property.Value.ValueKind == JsonValueKind.Null)
 53                    {
 54                        continue;
 55                    }
 056                    resourceName = property.Value.GetString();
 57                    continue;
 58                }
 59            }
 060            return new AvailablePrivateEndpointType(name, id, type, resourceName);
 61        }
 62    }
 63}