< Summary

Class:Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetReimageParameters
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetReimageParameters.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetReimageParameters.Serialization.cs
Covered lines:13
Uncovered lines:5
Coverable lines:18
Total lines:67
Line coverage:72.2% (13 of 18)
Covered branches:5
Total branches:6
Branch coverage:83.3% (5 of 6)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetReimageParameters.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.Collections.Generic;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> Describes a Virtual Machine Scale Set VM Reimage Parameters. </summary>
 13    public partial class VirtualMachineScaleSetReimageParameters : VirtualMachineReimageParameters
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineScaleSetReimageParameters. </summary>
 416        public VirtualMachineScaleSetReimageParameters()
 17        {
 418        }
 19
 20        /// <summary> Initializes a new instance of VirtualMachineScaleSetReimageParameters. </summary>
 21        /// <param name="tempDisk"> Specifies whether to reimage temp disk. Default value: false. Note: This temp disk r
 22        /// <param name="instanceIds"> The virtual machine scale set instance ids. Omitting the virtual machine scale se
 023        internal VirtualMachineScaleSetReimageParameters(bool? tempDisk, IList<string> instanceIds) : base(tempDisk)
 24        {
 025            InstanceIds = instanceIds;
 026        }
 27
 28        /// <summary> The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids wi
 2029        public IList<string> InstanceIds { get; set; }
 30    }
 31}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetReimageParameters.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 VirtualMachineScaleSetReimageParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 817            writer.WriteStartObject();
 818            if (InstanceIds != null)
 19            {
 820                writer.WritePropertyName("instanceIds");
 821                writer.WriteStartArray();
 4822                foreach (var item in InstanceIds)
 23                {
 1624                    writer.WriteStringValue(item);
 25                }
 826                writer.WriteEndArray();
 27            }
 828            if (TempDisk != null)
 29            {
 030                writer.WritePropertyName("tempDisk");
 031                writer.WriteBooleanValue(TempDisk.Value);
 32            }
 833            writer.WriteEndObject();
 834        }
 35    }
 36}