< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateStorageProfile.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 storage profile. </summary>
 13    public partial class VirtualMachineScaleSetUpdateStorageProfile
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateStorageProfile. </summary>
 016        public VirtualMachineScaleSetUpdateStorageProfile()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateStorageProfile. </summary>
 21        /// <param name="imageReference"> The image reference. </param>
 22        /// <param name="osDisk"> The OS disk. </param>
 23        /// <param name="dataDisks"> The data disks. </param>
 024        internal VirtualMachineScaleSetUpdateStorageProfile(ImageReference imageReference, VirtualMachineScaleSetUpdateO
 25        {
 026            ImageReference = imageReference;
 027            OsDisk = osDisk;
 028            DataDisks = dataDisks;
 029        }
 30
 31        /// <summary> The image reference. </summary>
 032        public ImageReference ImageReference { get; set; }
 33        /// <summary> The OS disk. </summary>
 034        public VirtualMachineScaleSetUpdateOSDisk OsDisk { get; set; }
 35        /// <summary> The data disks. </summary>
 036        public IList<VirtualMachineScaleSetDataDisk> DataDisks { get; set; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateStorageProfile.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 VirtualMachineScaleSetUpdateStorageProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (ImageReference != null)
 19            {
 020                writer.WritePropertyName("imageReference");
 021                writer.WriteObjectValue(ImageReference);
 22            }
 023            if (OsDisk != null)
 24            {
 025                writer.WritePropertyName("osDisk");
 026                writer.WriteObjectValue(OsDisk);
 27            }
 028            if (DataDisks != null)
 29            {
 030                writer.WritePropertyName("dataDisks");
 031                writer.WriteStartArray();
 032                foreach (var item in DataDisks)
 33                {
 034                    writer.WriteObjectValue(item);
 35                }
 036                writer.WriteEndArray();
 37            }
 038            writer.WriteEndObject();
 039        }
 40    }
 41}