< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_OsProfile()-0%100%
get_StorageProfile()-0%100%
get_NetworkProfile()-0%100%
get_DiagnosticsProfile()-0%100%
get_ExtensionProfile()-0%100%
get_LicenseType()-0%100%
get_BillingProfile()-0%100%
get_ScheduledEventsProfile()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateVMProfile.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> Describes a virtual machine scale set virtual machine profile. </summary>
 11    public partial class VirtualMachineScaleSetUpdateVMProfile
 12    {
 13        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateVMProfile. </summary>
 014        public VirtualMachineScaleSetUpdateVMProfile()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdateVMProfile. </summary>
 19        /// <param name="osProfile"> The virtual machine scale set OS profile. </param>
 20        /// <param name="storageProfile"> The virtual machine scale set storage profile. </param>
 21        /// <param name="networkProfile"> The virtual machine scale set network profile. </param>
 22        /// <param name="diagnosticsProfile"> The virtual machine scale set diagnostics profile. </param>
 23        /// <param name="extensionProfile"> The virtual machine scale set extension profile. </param>
 24        /// <param name="licenseType"> The license type, which is for bring your own license scenario. </param>
 25        /// <param name="billingProfile"> Specifies the billing related details of a Azure Spot VMSS. &lt;br&gt;&lt;br&g
 26        /// <param name="scheduledEventsProfile"> Specifies Scheduled Event related configurations. </param>
 027        internal VirtualMachineScaleSetUpdateVMProfile(VirtualMachineScaleSetUpdateOSProfile osProfile, VirtualMachineSc
 28        {
 029            OsProfile = osProfile;
 030            StorageProfile = storageProfile;
 031            NetworkProfile = networkProfile;
 032            DiagnosticsProfile = diagnosticsProfile;
 033            ExtensionProfile = extensionProfile;
 034            LicenseType = licenseType;
 035            BillingProfile = billingProfile;
 036            ScheduledEventsProfile = scheduledEventsProfile;
 037        }
 38
 39        /// <summary> The virtual machine scale set OS profile. </summary>
 040        public VirtualMachineScaleSetUpdateOSProfile OsProfile { get; set; }
 41        /// <summary> The virtual machine scale set storage profile. </summary>
 042        public VirtualMachineScaleSetUpdateStorageProfile StorageProfile { get; set; }
 43        /// <summary> The virtual machine scale set network profile. </summary>
 044        public VirtualMachineScaleSetUpdateNetworkProfile NetworkProfile { get; set; }
 45        /// <summary> The virtual machine scale set diagnostics profile. </summary>
 046        public DiagnosticsProfile DiagnosticsProfile { get; set; }
 47        /// <summary> The virtual machine scale set extension profile. </summary>
 048        public VirtualMachineScaleSetExtensionProfile ExtensionProfile { get; set; }
 49        /// <summary> The license type, which is for bring your own license scenario. </summary>
 050        public string LicenseType { get; set; }
 51        /// <summary> Specifies the billing related details of a Azure Spot VMSS. &lt;br&gt;&lt;br&gt;Minimum api-versio
 052        public BillingProfile BillingProfile { get; set; }
 53        /// <summary> Specifies Scheduled Event related configurations. </summary>
 054        public ScheduledEventsProfile ScheduledEventsProfile { get; set; }
 55    }
 56}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdateVMProfile.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 VirtualMachineScaleSetUpdateVMProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (OsProfile != null)
 19            {
 020                writer.WritePropertyName("osProfile");
 021                writer.WriteObjectValue(OsProfile);
 22            }
 023            if (StorageProfile != null)
 24            {
 025                writer.WritePropertyName("storageProfile");
 026                writer.WriteObjectValue(StorageProfile);
 27            }
 028            if (NetworkProfile != null)
 29            {
 030                writer.WritePropertyName("networkProfile");
 031                writer.WriteObjectValue(NetworkProfile);
 32            }
 033            if (DiagnosticsProfile != null)
 34            {
 035                writer.WritePropertyName("diagnosticsProfile");
 036                writer.WriteObjectValue(DiagnosticsProfile);
 37            }
 038            if (ExtensionProfile != null)
 39            {
 040                writer.WritePropertyName("extensionProfile");
 041                writer.WriteObjectValue(ExtensionProfile);
 42            }
 043            if (LicenseType != null)
 44            {
 045                writer.WritePropertyName("licenseType");
 046                writer.WriteStringValue(LicenseType);
 47            }
 048            if (BillingProfile != null)
 49            {
 050                writer.WritePropertyName("billingProfile");
 051                writer.WriteObjectValue(BillingProfile);
 52            }
 053            if (ScheduledEventsProfile != null)
 54            {
 055                writer.WritePropertyName("scheduledEventsProfile");
 056                writer.WriteObjectValue(ScheduledEventsProfile);
 57            }
 058            writer.WriteEndObject();
 059        }
 60    }
 61}