< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_Type()-0%100%
get_Etag()-0%100%
get_ProvisioningState()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeContainerNetworkInterfaceIpConfiguration(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ContainerNetworkInterfaceIpConfiguration.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 ip configuration for a container network interface. </summary>
 11    public partial class ContainerNetworkInterfaceIpConfiguration
 12    {
 13        /// <summary> Initializes a new instance of ContainerNetworkInterfaceIpConfiguration. </summary>
 014        public ContainerNetworkInterfaceIpConfiguration()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ContainerNetworkInterfaceIpConfiguration. </summary>
 19        /// <param name="name"> The name of the resource. This name can be used to access the resource. </param>
 20        /// <param name="type"> Sub Resource type. </param>
 21        /// <param name="etag"> A unique read-only string that changes whenever the resource is updated. </param>
 22        /// <param name="provisioningState"> The provisioning state of the container network interface IP configuration 
 023        internal ContainerNetworkInterfaceIpConfiguration(string name, string type, string etag, ProvisioningState? prov
 24        {
 025            Name = name;
 026            Type = type;
 027            Etag = etag;
 028            ProvisioningState = provisioningState;
 029        }
 30
 31        /// <summary> The name of the resource. This name can be used to access the resource. </summary>
 032        public string Name { get; set; }
 33        /// <summary> Sub Resource type. </summary>
 034        public string Type { get; }
 35        /// <summary> A unique read-only string that changes whenever the resource is updated. </summary>
 036        public string Etag { get; }
 37        /// <summary> The provisioning state of the container network interface IP configuration resource. </summary>
 038        public ProvisioningState? ProvisioningState { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ContainerNetworkInterfaceIpConfiguration.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 ContainerNetworkInterfaceIpConfiguration : 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            if (Type != null)
 24            {
 025                writer.WritePropertyName("type");
 026                writer.WriteStringValue(Type);
 27            }
 028            if (Etag != null)
 29            {
 030                writer.WritePropertyName("etag");
 031                writer.WriteStringValue(Etag);
 32            }
 033            writer.WritePropertyName("properties");
 034            writer.WriteStartObject();
 035            if (ProvisioningState != null)
 36            {
 037                writer.WritePropertyName("provisioningState");
 038                writer.WriteStringValue(ProvisioningState.Value.ToString());
 39            }
 040            writer.WriteEndObject();
 041            writer.WriteEndObject();
 042        }
 43
 44        internal static ContainerNetworkInterfaceIpConfiguration DeserializeContainerNetworkInterfaceIpConfiguration(Jso
 45        {
 046            string name = default;
 047            string type = default;
 048            string etag = default;
 049            ProvisioningState? provisioningState = default;
 050            foreach (var property in element.EnumerateObject())
 51            {
 052                if (property.NameEquals("name"))
 53                {
 054                    if (property.Value.ValueKind == JsonValueKind.Null)
 55                    {
 56                        continue;
 57                    }
 058                    name = property.Value.GetString();
 059                    continue;
 60                }
 061                if (property.NameEquals("type"))
 62                {
 063                    if (property.Value.ValueKind == JsonValueKind.Null)
 64                    {
 65                        continue;
 66                    }
 067                    type = property.Value.GetString();
 068                    continue;
 69                }
 070                if (property.NameEquals("etag"))
 71                {
 072                    if (property.Value.ValueKind == JsonValueKind.Null)
 73                    {
 74                        continue;
 75                    }
 076                    etag = property.Value.GetString();
 077                    continue;
 78                }
 079                if (property.NameEquals("properties"))
 80                {
 081                    foreach (var property0 in property.Value.EnumerateObject())
 82                    {
 083                        if (property0.NameEquals("provisioningState"))
 84                        {
 085                            if (property0.Value.ValueKind == JsonValueKind.Null)
 86                            {
 87                                continue;
 88                            }
 089                            provisioningState = new ProvisioningState(property0.Value.GetString());
 90                            continue;
 91                        }
 92                    }
 93                    continue;
 94                }
 95            }
 096            return new ContainerNetworkInterfaceIpConfiguration(name, type, etag, provisioningState);
 97        }
 98    }
 99}