< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_TempDisk()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineReimageParameters.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> Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. </sum
 11    public partial class VirtualMachineReimageParameters
 12    {
 13        /// <summary> Initializes a new instance of VirtualMachineReimageParameters. </summary>
 414        public VirtualMachineReimageParameters()
 15        {
 416        }
 17
 18        /// <summary> Initializes a new instance of VirtualMachineReimageParameters. </summary>
 19        /// <param name="tempDisk"> Specifies whether to reimage temp disk. Default value: false. Note: This temp disk r
 020        internal VirtualMachineReimageParameters(bool? tempDisk)
 21        {
 022            TempDisk = tempDisk;
 023        }
 24
 25        /// <summary> Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage paramet
 026        public bool? TempDisk { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineReimageParameters.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 VirtualMachineReimageParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (TempDisk != null)
 19            {
 020                writer.WritePropertyName("tempDisk");
 021                writer.WriteBooleanValue(TempDisk.Value);
 22            }
 023            writer.WriteEndObject();
 024        }
 25    }
 26}