< Summary

Class:Azure.ResourceManager.Compute.Models.UpgradeOperationHistoricalStatusInfo
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\UpgradeOperationHistoricalStatusInfo.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\UpgradeOperationHistoricalStatusInfo.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_Properties()-0%100%
get_Type()-0%100%
get_Location()-0%100%
DeserializeUpgradeOperationHistoricalStatusInfo(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\UpgradeOperationHistoricalStatusInfo.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.Compute.Models
 9{
 10    /// <summary> Virtual Machine Scale Set OS Upgrade History operation response. </summary>
 11    public partial class UpgradeOperationHistoricalStatusInfo
 12    {
 13        /// <summary> Initializes a new instance of UpgradeOperationHistoricalStatusInfo. </summary>
 014        internal UpgradeOperationHistoricalStatusInfo()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of UpgradeOperationHistoricalStatusInfo. </summary>
 19        /// <param name="properties"> Information about the properties of the upgrade operation. </param>
 20        /// <param name="type"> Resource type. </param>
 21        /// <param name="location"> Resource location. </param>
 022        internal UpgradeOperationHistoricalStatusInfo(UpgradeOperationHistoricalStatusInfoProperties properties, string 
 23        {
 024            Properties = properties;
 025            Type = type;
 026            Location = location;
 027        }
 28
 29        /// <summary> Information about the properties of the upgrade operation. </summary>
 030        public UpgradeOperationHistoricalStatusInfoProperties Properties { get; }
 31        /// <summary> Resource type. </summary>
 032        public string Type { get; }
 33        /// <summary> Resource location. </summary>
 034        public string Location { get; }
 35    }
 36}

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