< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Provider()-0%100%
get_Resource()-0%100%
get_Operation()-0%100%
get_Description()-0%100%
DeserializeOperationDisplay(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\OperationDisplay.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> Display metadata associated with the operation. </summary>
 11    public partial class OperationDisplay
 12    {
 13        /// <summary> Initializes a new instance of OperationDisplay. </summary>
 014        internal OperationDisplay()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of OperationDisplay. </summary>
 19        /// <param name="provider"> Service provider: Microsoft Key Vault. </param>
 20        /// <param name="resource"> Resource on which the operation is performed etc. </param>
 21        /// <param name="operation"> Type of operation: get, read, delete, etc. </param>
 22        /// <param name="description"> Description of operation. </param>
 023        internal OperationDisplay(string provider, string resource, string operation, string description)
 24        {
 025            Provider = provider;
 026            Resource = resource;
 027            Operation = operation;
 028            Description = description;
 029        }
 30
 31        /// <summary> Service provider: Microsoft Key Vault. </summary>
 032        public string Provider { get; }
 33        /// <summary> Resource on which the operation is performed etc. </summary>
 034        public string Resource { get; }
 35        /// <summary> Type of operation: get, read, delete, etc. </summary>
 036        public string Operation { get; }
 37        /// <summary> Description of operation. </summary>
 038        public string Description { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\OperationDisplay.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    public partial class OperationDisplay
 14    {
 15        internal static OperationDisplay DeserializeOperationDisplay(JsonElement element)
 16        {
 017            Optional<string> provider = default;
 018            Optional<string> resource = default;
 019            Optional<string> operation = default;
 020            Optional<string> description = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("provider"))
 24                {
 025                    provider = property.Value.GetString();
 026                    continue;
 27                }
 028                if (property.NameEquals("resource"))
 29                {
 030                    resource = property.Value.GetString();
 031                    continue;
 32                }
 033                if (property.NameEquals("operation"))
 34                {
 035                    operation = property.Value.GetString();
 036                    continue;
 37                }
 038                if (property.NameEquals("description"))
 39                {
 040                    description = property.Value.GetString();
 41                    continue;
 42                }
 43            }
 044            return new OperationDisplay(provider.Value, resource.Value, operation.Value, description.Value);
 45        }
 46    }
 47}