< Summary

Class:Azure.ResourceManager.Storage.Models.EncryptionServices
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\EncryptionServices.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\EncryptionServices.Serialization.cs
Covered lines:48
Uncovered lines:0
Coverable lines:48
Total lines:129
Line coverage:100% (48 of 48)
Covered branches:26
Total branches:26
Branch coverage:100% (26 of 26)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_Blob()-100%100%
get_File()-100%100%
get_Table()-100%100%
get_Queue()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%
DeserializeEncryptionServices(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\EncryptionServices.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.Storage.Models
 9{
 10    /// <summary> A list of services that support encryption. </summary>
 11    public partial class EncryptionServices
 12    {
 13        /// <summary> Initializes a new instance of EncryptionServices. </summary>
 3214        public EncryptionServices()
 15        {
 3216        }
 17
 18        /// <summary> Initializes a new instance of EncryptionServices. </summary>
 19        /// <param name="blob"> The encryption function of the blob storage service. </param>
 20        /// <param name="file"> The encryption function of the file storage service. </param>
 21        /// <param name="table"> The encryption function of the table storage service. </param>
 22        /// <param name="queue"> The encryption function of the queue storage service. </param>
 83623        internal EncryptionServices(EncryptionService blob, EncryptionService file, EncryptionService table, EncryptionS
 24        {
 83625            Blob = blob;
 83626            File = file;
 83627            Table = table;
 83628            Queue = queue;
 83629        }
 30
 31        /// <summary> The encryption function of the blob storage service. </summary>
 105632        public EncryptionService Blob { get; set; }
 33        /// <summary> The encryption function of the file storage service. </summary>
 104034        public EncryptionService File { get; set; }
 35        /// <summary> The encryption function of the table storage service. </summary>
 92836        public EncryptionService Table { get; set; }
 37        /// <summary> The encryption function of the queue storage service. </summary>
 92838        public EncryptionService Queue { get; set; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\EncryptionServices.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.Storage.Models
 12{
 13    public partial class EncryptionServices : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 4817            writer.WriteStartObject();
 4818            if (Blob != null)
 19            {
 4020                writer.WritePropertyName("blob");
 4021                writer.WriteObjectValue(Blob);
 22            }
 4823            if (File != null)
 24            {
 3625                writer.WritePropertyName("file");
 3626                writer.WriteObjectValue(File);
 27            }
 4828            if (Table != null)
 29            {
 830                writer.WritePropertyName("table");
 831                writer.WriteObjectValue(Table);
 32            }
 4833            if (Queue != null)
 34            {
 835                writer.WritePropertyName("queue");
 836                writer.WriteObjectValue(Queue);
 37            }
 4838            writer.WriteEndObject();
 4839        }
 40
 41        internal static EncryptionServices DeserializeEncryptionServices(JsonElement element)
 42        {
 83643            EncryptionService blob = default;
 83644            EncryptionService file = default;
 83645            EncryptionService table = default;
 83646            EncryptionService queue = default;
 504047            foreach (var property in element.EnumerateObject())
 48            {
 168449                if (property.NameEquals("blob"))
 50                {
 83651                    if (property.Value.ValueKind == JsonValueKind.Null)
 52                    {
 53                        continue;
 54                    }
 83655                    blob = EncryptionService.DeserializeEncryptionService(property.Value);
 83656                    continue;
 57                }
 84858                if (property.NameEquals("file"))
 59                {
 83660                    if (property.Value.ValueKind == JsonValueKind.Null)
 61                    {
 62                        continue;
 63                    }
 83664                    file = EncryptionService.DeserializeEncryptionService(property.Value);
 83665                    continue;
 66                }
 1267                if (property.NameEquals("table"))
 68                {
 869                    if (property.Value.ValueKind == JsonValueKind.Null)
 70                    {
 71                        continue;
 72                    }
 873                    table = EncryptionService.DeserializeEncryptionService(property.Value);
 874                    continue;
 75                }
 476                if (property.NameEquals("queue"))
 77                {
 478                    if (property.Value.ValueKind == JsonValueKind.Null)
 79                    {
 80                        continue;
 81                    }
 482                    queue = EncryptionService.DeserializeEncryptionService(property.Value);
 83                    continue;
 84                }
 85            }
 83686            return new EncryptionServices(blob, file, table, queue);
 87        }
 88    }
 89}