< Summary

Class:Azure.ResourceManager.Network.Models.OperationDisplay
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\OperationDisplay.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\OperationDisplay.Serialization.cs
Covered lines:0
Uncovered lines:33
Coverable lines:33
Total lines:103
Line coverage:0% (0 of 33)
Covered branches:0
Total branches:18
Branch coverage:0% (0 of 18)

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\network\Azure.ResourceManager.Network\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.Network.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 Network. </param>
 20        /// <param name="resource"> Resource on which the operation is performed. </param>
 21        /// <param name="operation"> Type of the operation: get, read, delete, etc. </param>
 22        /// <param name="description"> Description of the 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 Network. </summary>
 032        public string Provider { get; }
 33        /// <summary> Resource on which the operation is performed. </summary>
 034        public string Resource { get; }
 35        /// <summary> Type of the operation: get, read, delete, etc. </summary>
 036        public string Operation { get; }
 37        /// <summary> Description of the operation. </summary>
 038        public string Description { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\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.Network.Models
 12{
 13    public partial class OperationDisplay
 14    {
 15        internal static OperationDisplay DeserializeOperationDisplay(JsonElement element)
 16        {
 017            string provider = default;
 018            string resource = default;
 019            string operation = default;
 020            string description = default;
 021            foreach (var property in element.EnumerateObject())
 22            {
 023                if (property.NameEquals("provider"))
 24                {
 025                    if (property.Value.ValueKind == JsonValueKind.Null)
 26                    {
 27                        continue;
 28                    }
 029                    provider = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("resource"))
 33                {
 034                    if (property.Value.ValueKind == JsonValueKind.Null)
 35                    {
 36                        continue;
 37                    }
 038                    resource = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("operation"))
 42                {
 043                    if (property.Value.ValueKind == JsonValueKind.Null)
 44                    {
 45                        continue;
 46                    }
 047                    operation = property.Value.GetString();
 048                    continue;
 49                }
 050                if (property.NameEquals("description"))
 51                {
 052                    if (property.Value.ValueKind == JsonValueKind.Null)
 53                    {
 54                        continue;
 55                    }
 056                    description = property.Value.GetString();
 57                    continue;
 58                }
 59            }
 060            return new OperationDisplay(provider, resource, operation, description);
 61        }
 62    }
 63}