< Summary

Class:Azure.ResourceManager.Resources.Models.OperationDisplayAutoGenerated2
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationDisplayAutoGenerated2.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationDisplayAutoGenerated2.Serialization.cs
Covered lines:0
Uncovered lines:26
Coverable lines:26
Total lines:89
Line coverage:0% (0 of 26)
Covered branches:0
Total branches:14
Branch coverage:0% (0 of 14)

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%
DeserializeOperationDisplayAutoGenerated2(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationDisplayAutoGenerated2.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.Resources.Models
 9{
 10    /// <summary> The object that represents the operation. </summary>
 11    public partial class OperationDisplayAutoGenerated2
 12    {
 13        /// <summary> Initializes a new instance of OperationDisplayAutoGenerated2. </summary>
 014        internal OperationDisplayAutoGenerated2()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of OperationDisplayAutoGenerated2. </summary>
 19        /// <param name="provider"> Service provider: Microsoft.Authorization. </param>
 20        /// <param name="resource"> Resource on which the operation is performed: Profile, endpoint, etc. </param>
 21        /// <param name="operation"> Operation type: Read, write, delete, etc. </param>
 022        internal OperationDisplayAutoGenerated2(string provider, string resource, string operation)
 23        {
 024            Provider = provider;
 025            Resource = resource;
 026            Operation = operation;
 027        }
 28
 29        /// <summary> Service provider: Microsoft.Authorization. </summary>
 030        public string Provider { get; }
 31        /// <summary> Resource on which the operation is performed: Profile, endpoint, etc. </summary>
 032        public string Resource { get; }
 33        /// <summary> Operation type: Read, write, delete, etc. </summary>
 034        public string Operation { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OperationDisplayAutoGenerated2.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.Resources.Models
 12{
 13    public partial class OperationDisplayAutoGenerated2
 14    {
 15        internal static OperationDisplayAutoGenerated2 DeserializeOperationDisplayAutoGenerated2(JsonElement element)
 16        {
 017            string provider = default;
 018            string resource = default;
 019            string operation = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("provider"))
 23                {
 024                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 028                    provider = property.Value.GetString();
 029                    continue;
 30                }
 031                if (property.NameEquals("resource"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    resource = property.Value.GetString();
 038                    continue;
 39                }
 040                if (property.NameEquals("operation"))
 41                {
 042                    if (property.Value.ValueKind == JsonValueKind.Null)
 43                    {
 44                        continue;
 45                    }
 046                    operation = property.Value.GetString();
 47                    continue;
 48                }
 49            }
 050            return new OperationDisplayAutoGenerated2(provider, resource, operation);
 51        }
 52    }
 53}