< Summary

Class:Azure.ResourceManager.KeyVault.Models.CloudError
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\CloudError.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\CloudError.Serialization.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:57
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

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

File(s)

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

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\CloudError.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.KeyVault.Models
 12{
 13    internal partial class CloudError
 14    {
 15        internal static CloudError DeserializeCloudError(JsonElement element)
 16        {
 017            Optional<CloudErrorBody> error = default;
 018            foreach (var property in element.EnumerateObject())
 19            {
 020                if (property.NameEquals("error"))
 21                {
 022                    error = CloudErrorBody.DeserializeCloudErrorBody(property.Value);
 23                    continue;
 24                }
 25            }
 026            return new CloudError(error.Value);
 27        }
 28    }
 29}