< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PublicIPPrefixSku.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> SKU of a public IP prefix. </summary>
 11    public partial class PublicIPPrefixSku
 12    {
 13        /// <summary> Initializes a new instance of PublicIPPrefixSku. </summary>
 014        public PublicIPPrefixSku()
 15        {
 016            Name = "Standard";
 017        }
 18
 19        /// <summary> Initializes a new instance of PublicIPPrefixSku. </summary>
 20        /// <param name="name"> Name of a public IP prefix SKU. </param>
 021        internal PublicIPPrefixSku(string name)
 22        {
 023            Name = name;
 024        }
 25
 26        /// <summary> Name of a public IP prefix SKU. </summary>
 027        public string Name { get; set; }
 28    }
 29}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PublicIPPrefixSku.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 PublicIPPrefixSku : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Name != null)
 19            {
 020                writer.WritePropertyName("name");
 021                writer.WriteStringValue(Name);
 22            }
 023            writer.WriteEndObject();
 024        }
 25
 26        internal static PublicIPPrefixSku DeserializePublicIPPrefixSku(JsonElement element)
 27        {
 028            string name = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("name"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    name = property.Value.GetString();
 38                    continue;
 39                }
 40            }
 041            return new PublicIPPrefixSku(name);
 42        }
 43    }
 44}