< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Id()-0%100%
get_OperationId()-100%100%
get_Properties()-100%100%
DeserializeDeploymentOperation(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentOperation.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> Deployment operation information. </summary>
 11    public partial class DeploymentOperation
 12    {
 13        /// <summary> Initializes a new instance of DeploymentOperation. </summary>
 014        internal DeploymentOperation()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of DeploymentOperation. </summary>
 19        /// <param name="id"> Full deployment operation ID. </param>
 20        /// <param name="operationId"> Deployment operation ID. </param>
 21        /// <param name="properties"> Deployment properties. </param>
 6022        internal DeploymentOperation(string id, string operationId, DeploymentOperationProperties properties)
 23        {
 6024            Id = id;
 6025            OperationId = operationId;
 6026            Properties = properties;
 6027        }
 28
 29        /// <summary> Full deployment operation ID. </summary>
 030        public string Id { get; }
 31        /// <summary> Deployment operation ID. </summary>
 832        public string OperationId { get; }
 33        /// <summary> Deployment properties. </summary>
 5234        public DeploymentOperationProperties Properties { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentOperation.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 DeploymentOperation
 14    {
 15        internal static DeploymentOperation DeserializeDeploymentOperation(JsonElement element)
 16        {
 6017            string id = default;
 6018            string operationId = default;
 6019            DeploymentOperationProperties properties = default;
 56020            foreach (var property in element.EnumerateObject())
 21            {
 22022                if (property.NameEquals("id"))
 23                {
 5224                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 5228                    id = property.Value.GetString();
 5229                    continue;
 30                }
 16831                if (property.NameEquals("operationId"))
 32                {
 6033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 6037                    operationId = property.Value.GetString();
 6038                    continue;
 39                }
 10840                if (property.NameEquals("properties"))
 41                {
 6042                    if (property.Value.ValueKind == JsonValueKind.Null)
 43                    {
 44                        continue;
 45                    }
 6046                    properties = DeploymentOperationProperties.DeserializeDeploymentOperationProperties(property.Value);
 47                    continue;
 48                }
 49            }
 6050            return new DeploymentOperation(id, operationId, properties);
 51        }
 52    }
 53}