< Summary

Class:Azure.ResourceManager.AppConfiguration.Models.EncryptionProperties
Assembly:Azure.ResourceManager.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\EncryptionProperties.cs
C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\EncryptionProperties.Serialization.cs
Covered lines:8
Uncovered lines:10
Coverable lines:18
Total lines:72
Line coverage:44.4% (8 of 18)
Covered branches:5
Total branches:8
Branch coverage:62.5% (5 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_KeyVaultProperties()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeEncryptionProperties(...)-83.33%83.33%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\EncryptionProperties.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.AppConfiguration.Models
 9{
 10    /// <summary> The encryption settings for a configuration store. </summary>
 11    public partial class EncryptionProperties
 12    {
 13        /// <summary> Initializes a new instance of EncryptionProperties. </summary>
 014        public EncryptionProperties()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of EncryptionProperties. </summary>
 19        /// <param name="keyVaultProperties"> Key vault properties. </param>
 2420        internal EncryptionProperties(KeyVaultProperties keyVaultProperties)
 21        {
 2422            KeyVaultProperties = keyVaultProperties;
 2423        }
 24
 25        /// <summary> Key vault properties. </summary>
 026        public KeyVaultProperties KeyVaultProperties { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\EncryptionProperties.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.AppConfiguration.Models
 12{
 13    public partial class EncryptionProperties : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (KeyVaultProperties != null)
 19            {
 020                writer.WritePropertyName("keyVaultProperties");
 021                writer.WriteObjectValue(KeyVaultProperties);
 22            }
 023            writer.WriteEndObject();
 024        }
 25
 26        internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement element)
 27        {
 2428            KeyVaultProperties keyVaultProperties = default;
 9629            foreach (var property in element.EnumerateObject())
 30            {
 2431                if (property.NameEquals("keyVaultProperties"))
 32                {
 2433                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value);
 38                    continue;
 39                }
 40            }
 2441            return new EncryptionProperties(keyVaultProperties);
 42        }
 43    }
 44}