< Summary

Class:Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVMInstanceIDs
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetVMInstanceIDs.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetVMInstanceIDs.Serialization.cs
Covered lines:13
Uncovered lines:2
Coverable lines:15
Total lines:61
Line coverage:86.6% (13 of 15)
Covered branches:4
Total branches:4
Branch coverage:100% (4 of 4)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetVMInstanceIDs.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> Specifies a list of virtual machine instance IDs from the VM scale set. </summary>
 13    public partial class VirtualMachineScaleSetVMInstanceIDs
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineScaleSetVMInstanceIDs. </summary>
 016        public VirtualMachineScaleSetVMInstanceIDs()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of VirtualMachineScaleSetVMInstanceIDs. </summary>
 21        /// <param name="instanceIds"> The virtual machine scale set instance ids. Omitting the virtual machine scale se
 1622        internal VirtualMachineScaleSetVMInstanceIDs(IList<string> instanceIds)
 23        {
 1624            InstanceIds = instanceIds;
 1625        }
 26
 27        /// <summary> The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids wi
 12028        public IList<string> InstanceIds { get; set; }
 29    }
 30}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetVMInstanceIDs.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 VirtualMachineScaleSetVMInstanceIDs : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 5217            writer.WriteStartObject();
 5218            if (InstanceIds != null)
 19            {
 5220                writer.WritePropertyName("instanceIds");
 5221                writer.WriteStartArray();
 24822                foreach (var item in InstanceIds)
 23                {
 7224                    writer.WriteStringValue(item);
 25                }
 5226                writer.WriteEndArray();
 27            }
 5228            writer.WriteEndObject();
 5229        }
 30    }
 31}