< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Error()-0%100%
DeserializeCloudErrorAutoGenerated2(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\CloudErrorAutoGenerated2.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> An error response from the Storage service. </summary>
 11    internal partial class CloudErrorAutoGenerated2
 12    {
 13        /// <summary> Initializes a new instance of CloudErrorAutoGenerated2. </summary>
 014        internal CloudErrorAutoGenerated2()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of CloudErrorAutoGenerated2. </summary>
 19        /// <param name="error"> An error response from the Storage service. </param>
 020        internal CloudErrorAutoGenerated2(CloudErrorBodyAutoGenerated2 error)
 21        {
 022            Error = error;
 023        }
 24
 25        /// <summary> An error response from the Storage service. </summary>
 026        public CloudErrorBodyAutoGenerated2 Error { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\CloudErrorAutoGenerated2.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    internal partial class CloudErrorAutoGenerated2
 14    {
 15        internal static CloudErrorAutoGenerated2 DeserializeCloudErrorAutoGenerated2(JsonElement element)
 16        {
 017            CloudErrorBodyAutoGenerated2 error = default;
 018            foreach (var property in element.EnumerateObject())
 19            {
 020                if (property.NameEquals("error"))
 21                {
 022                    if (property.Value.ValueKind == JsonValueKind.Null)
 23                    {
 24                        continue;
 25                    }
 026                    error = CloudErrorBodyAutoGenerated2.DeserializeCloudErrorBodyAutoGenerated2(property.Value);
 27                    continue;
 28                }
 29            }
 030            return new CloudErrorAutoGenerated2(error);
 31        }
 32    }
 33}