< Summary

Class:Azure.ResourceManager.AppConfiguration.Models.OperationDefinitionDisplay
Assembly:Azure.ResourceManager.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\OperationDefinitionDisplay.cs
C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\OperationDefinitionDisplay.Serialization.cs
Covered lines:27
Uncovered lines:6
Coverable lines:33
Total lines:103
Line coverage:81.8% (27 of 33)
Covered branches:18
Total branches:18
Branch coverage:100% (18 of 18)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\OperationDefinitionDisplay.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 display information for a configuration store operation. </summary>
 11    public partial class OperationDefinitionDisplay
 12    {
 13        /// <summary> Initializes a new instance of OperationDefinitionDisplay. </summary>
 014        internal OperationDefinitionDisplay()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of OperationDefinitionDisplay. </summary>
 19        /// <param name="provider"> The resource provider name: Microsoft App Configuration.&quot;. </param>
 20        /// <param name="resource"> The resource on which the operation is performed. </param>
 21        /// <param name="operation"> The operation that users can perform. </param>
 22        /// <param name="description"> The description for the operation. </param>
 11223        internal OperationDefinitionDisplay(string provider, string resource, string operation, string description)
 24        {
 11225            Provider = provider;
 11226            Resource = resource;
 11227            Operation = operation;
 11228            Description = description;
 11229        }
 30
 31        /// <summary> The resource provider name: Microsoft App Configuration.&quot;. </summary>
 032        public string Provider { get; }
 33        /// <summary> The resource on which the operation is performed. </summary>
 034        public string Resource { get; }
 35        /// <summary> The operation that users can perform. </summary>
 036        public string Operation { get; }
 37        /// <summary> The description for the operation. </summary>
 038        public string Description { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\OperationDefinitionDisplay.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 OperationDefinitionDisplay
 14    {
 15        internal static OperationDefinitionDisplay DeserializeOperationDefinitionDisplay(JsonElement element)
 16        {
 11217            string provider = default;
 11218            string resource = default;
 11219            string operation = default;
 11220            string description = default;
 112021            foreach (var property in element.EnumerateObject())
 22            {
 44823                if (property.NameEquals("provider"))
 24                {
 11225                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 11229                    provider = property.Value.GetString();
 11230                    continue;
 31                }
 33632                if (property.NameEquals("resource"))
 33                {
 11234                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 10438                    resource = property.Value.GetString();
 10439                    continue;
 40                }
 22441                if (property.NameEquals("operation"))
 42                {
 11243                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 11247                    operation = property.Value.GetString();
 11248                    continue;
 49                }
 11250                if (property.NameEquals("description"))
 51                {
 11252                    if (property.Value.ValueKind == JsonValueKind.Null)
 53                    {
 54                        continue;
 55                    }
 11256                    description = property.Value.GetString();
 57                    continue;
 58                }
 59            }
 11260            return new OperationDefinitionDisplay(provider, resource, operation, description);
 61        }
 62    }
 63}