< Summary

Class:Azure.ResourceManager.Network.Models.ConnectionResetSharedKey
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectionResetSharedKey.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectionResetSharedKey.Serialization.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:60
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%
get_KeyLength()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%100%
DeserializeConnectionResetSharedKey(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectionResetSharedKey.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 virtual network connection reset shared key. </summary>
 11    public partial class ConnectionResetSharedKey
 12    {
 13        /// <summary> Initializes a new instance of ConnectionResetSharedKey. </summary>
 14        /// <param name="keyLength"> The virtual network connection reset shared key length, should between 1 and 128. <
 015        public ConnectionResetSharedKey(int keyLength)
 16        {
 017            KeyLength = keyLength;
 018        }
 19
 20        /// <summary> The virtual network connection reset shared key length, should between 1 and 128. </summary>
 021        public int KeyLength { get; set; }
 22    }
 23}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\ConnectionResetSharedKey.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 ConnectionResetSharedKey : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("keyLength");
 019            writer.WriteNumberValue(KeyLength);
 020            writer.WriteEndObject();
 021        }
 22
 23        internal static ConnectionResetSharedKey DeserializeConnectionResetSharedKey(JsonElement element)
 24        {
 025            int keyLength = default;
 026            foreach (var property in element.EnumerateObject())
 27            {
 028                if (property.NameEquals("keyLength"))
 29                {
 030                    keyLength = property.Value.GetInt32();
 31                    continue;
 32                }
 33            }
 034            return new ConnectionResetSharedKey(keyLength);
 35        }
 36    }
 37}