< Summary

Class:Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdateOSProfile
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateOSProfile.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateOSProfile.Serialization.cs
Covered lines:0
Uncovered lines:30
Coverable lines:30
Total lines:88
Line coverage:0% (0 of 30)
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_CustomData()-0%100%
get_WindowsConfiguration()-0%100%
get_LinuxConfiguration()-0%100%
get_Secrets()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateOSProfile.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 OS profile. </summary>
 13    public partial class VirtualMachineScaleSetUpdateOSProfile
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateOSProfile. </summary>
 016        public VirtualMachineScaleSetUpdateOSProfile()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateOSProfile. </summary>
 21        /// <param name="customData"> A base-64 encoded string of custom data. </param>
 22        /// <param name="windowsConfiguration"> The Windows Configuration of the OS profile. </param>
 23        /// <param name="linuxConfiguration"> The Linux Configuration of the OS profile. </param>
 24        /// <param name="secrets"> The List of certificates for addition to the VM. </param>
 025        internal VirtualMachineScaleSetUpdateOSProfile(string customData, WindowsConfiguration windowsConfiguration, Lin
 26        {
 027            CustomData = customData;
 028            WindowsConfiguration = windowsConfiguration;
 029            LinuxConfiguration = linuxConfiguration;
 030            Secrets = secrets;
 031        }
 32
 33        /// <summary> A base-64 encoded string of custom data. </summary>
 034        public string CustomData { get; set; }
 35        /// <summary> The Windows Configuration of the OS profile. </summary>
 036        public WindowsConfiguration WindowsConfiguration { get; set; }
 37        /// <summary> The Linux Configuration of the OS profile. </summary>
 038        public LinuxConfiguration LinuxConfiguration { get; set; }
 39        /// <summary> The List of certificates for addition to the VM. </summary>
 040        public IList<VaultSecretGroup> Secrets { get; set; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateOSProfile.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 VirtualMachineScaleSetUpdateOSProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (CustomData != null)
 19            {
 020                writer.WritePropertyName("customData");
 021                writer.WriteStringValue(CustomData);
 22            }
 023            if (WindowsConfiguration != null)
 24            {
 025                writer.WritePropertyName("windowsConfiguration");
 026                writer.WriteObjectValue(WindowsConfiguration);
 27            }
 028            if (LinuxConfiguration != null)
 29            {
 030                writer.WritePropertyName("linuxConfiguration");
 031                writer.WriteObjectValue(LinuxConfiguration);
 32            }
 033            if (Secrets != null)
 34            {
 035                writer.WritePropertyName("secrets");
 036                writer.WriteStartArray();
 037                foreach (var item in Secrets)
 38                {
 039                    writer.WriteObjectValue(item);
 40                }
 041                writer.WriteEndArray();
 42            }
 043            writer.WriteEndObject();
 044        }
 45    }
 46}