< Summary

Class:Azure.ResourceManager.Compute.Models.RecoveryWalkResponse
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RecoveryWalkResponse.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RecoveryWalkResponse.Serialization.cs
Covered lines:0
Uncovered lines:19
Coverable lines:19
Total lines:75
Line coverage:0% (0 of 19)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_WalkPerformed()-0%100%
get_NextPlatformUpdateDomain()-0%100%
DeserializeRecoveryWalkResponse(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RecoveryWalkResponse.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> Response after calling a manual recovery walk. </summary>
 11    public partial class RecoveryWalkResponse
 12    {
 13        /// <summary> Initializes a new instance of RecoveryWalkResponse. </summary>
 014        internal RecoveryWalkResponse()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of RecoveryWalkResponse. </summary>
 19        /// <param name="walkPerformed"> Whether the recovery walk was performed. </param>
 20        /// <param name="nextPlatformUpdateDomain"> The next update domain that needs to be walked. Null means walk span
 021        internal RecoveryWalkResponse(bool? walkPerformed, int? nextPlatformUpdateDomain)
 22        {
 023            WalkPerformed = walkPerformed;
 024            NextPlatformUpdateDomain = nextPlatformUpdateDomain;
 025        }
 26
 27        /// <summary> Whether the recovery walk was performed. </summary>
 028        public bool? WalkPerformed { get; }
 29        /// <summary> The next update domain that needs to be walked. Null means walk spanning all update domains has be
 030        public int? NextPlatformUpdateDomain { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RecoveryWalkResponse.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 RecoveryWalkResponse
 14    {
 15        internal static RecoveryWalkResponse DeserializeRecoveryWalkResponse(JsonElement element)
 16        {
 017            bool? walkPerformed = default;
 018            int? nextPlatformUpdateDomain = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("walkPerformed"))
 22                {
 023                    if (property.Value.ValueKind == JsonValueKind.Null)
 24                    {
 25                        continue;
 26                    }
 027                    walkPerformed = property.Value.GetBoolean();
 028                    continue;
 29                }
 030                if (property.NameEquals("nextPlatformUpdateDomain"))
 31                {
 032                    if (property.Value.ValueKind == JsonValueKind.Null)
 33                    {
 34                        continue;
 35                    }
 036                    nextPlatformUpdateDomain = property.Value.GetInt32();
 37                    continue;
 38                }
 39            }
 040            return new RecoveryWalkResponse(walkPerformed, nextPlatformUpdateDomain);
 41        }
 42    }
 43}