< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Sku()-0%100%
get_Plan()-0%100%
get_Identity()-0%100%
get_UpgradePolicy()-0%100%
get_AutomaticRepairsPolicy()-0%100%
get_VirtualMachineProfile()-0%100%
get_Overprovision()-0%100%
get_DoNotRunExtensionsOnOverprovisionedVMs()-0%100%
get_SinglePlacementGroup()-0%100%
get_AdditionalCapabilities()-0%100%
get_ScaleInPolicy()-0%100%
get_ProximityPlacementGroup()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdate.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. </summary>
 13    public partial class VirtualMachineScaleSetUpdate : UpdateResource
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdate. </summary>
 016        public VirtualMachineScaleSetUpdate()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of VirtualMachineScaleSetUpdate. </summary>
 21        /// <param name="tags"> Resource tags. </param>
 22        /// <param name="sku"> The virtual machine scale set sku. </param>
 23        /// <param name="plan"> The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
 24        /// <param name="identity"> The identity of the virtual machine scale set, if configured. </param>
 25        /// <param name="upgradePolicy"> The upgrade policy. </param>
 26        /// <param name="automaticRepairsPolicy"> Policy for automatic repairs. </param>
 27        /// <param name="virtualMachineProfile"> The virtual machine profile. </param>
 28        /// <param name="overprovision"> Specifies whether the Virtual Machine Scale Set should be overprovisioned. </pa
 29        /// <param name="doNotRunExtensionsOnOverprovisionedVMs"> When Overprovision is enabled, extensions are launched
 30        /// <param name="singlePlacementGroup"> When true this limits the scale set to a single placement group, of max 
 31        /// <param name="additionalCapabilities"> Specifies additional capabilities enabled or disabled on the Virtual M
 32        /// <param name="scaleInPolicy"> Specifies the scale-in policy that decides which virtual machines are chosen fo
 33        /// <param name="proximityPlacementGroup"> Specifies information about the proximity placement group that the vi
 034        internal VirtualMachineScaleSetUpdate(IDictionary<string, string> tags, Sku sku, Plan plan, VirtualMachineScaleS
 35        {
 036            Sku = sku;
 037            Plan = plan;
 038            Identity = identity;
 039            UpgradePolicy = upgradePolicy;
 040            AutomaticRepairsPolicy = automaticRepairsPolicy;
 041            VirtualMachineProfile = virtualMachineProfile;
 042            Overprovision = overprovision;
 043            DoNotRunExtensionsOnOverprovisionedVMs = doNotRunExtensionsOnOverprovisionedVMs;
 044            SinglePlacementGroup = singlePlacementGroup;
 045            AdditionalCapabilities = additionalCapabilities;
 046            ScaleInPolicy = scaleInPolicy;
 047            ProximityPlacementGroup = proximityPlacementGroup;
 048        }
 49
 50        /// <summary> The virtual machine scale set sku. </summary>
 051        public Sku Sku { get; set; }
 52        /// <summary> The purchase plan when deploying a virtual machine scale set from VM Marketplace images. </summary
 053        public Plan Plan { get; set; }
 54        /// <summary> The identity of the virtual machine scale set, if configured. </summary>
 055        public VirtualMachineScaleSetIdentity Identity { get; set; }
 56        /// <summary> The upgrade policy. </summary>
 057        public UpgradePolicy UpgradePolicy { get; set; }
 58        /// <summary> Policy for automatic repairs. </summary>
 059        public AutomaticRepairsPolicy AutomaticRepairsPolicy { get; set; }
 60        /// <summary> The virtual machine profile. </summary>
 061        public VirtualMachineScaleSetUpdateVMProfile VirtualMachineProfile { get; set; }
 62        /// <summary> Specifies whether the Virtual Machine Scale Set should be overprovisioned. </summary>
 063        public bool? Overprovision { get; set; }
 64        /// <summary> When Overprovision is enabled, extensions are launched only on the requested number of VMs which a
 065        public bool? DoNotRunExtensionsOnOverprovisionedVMs { get; set; }
 66        /// <summary> When true this limits the scale set to a single placement group, of max size 100 virtual machines.
 067        public bool? SinglePlacementGroup { get; set; }
 68        /// <summary> Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machi
 069        public AdditionalCapabilities AdditionalCapabilities { get; set; }
 70        /// <summary> Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Vi
 071        public ScaleInPolicy ScaleInPolicy { get; set; }
 72        /// <summary> Specifies information about the proximity placement group that the virtual machine scale set shoul
 073        public SubResource ProximityPlacementGroup { get; set; }
 74    }
 75}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineScaleSetUpdate.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 VirtualMachineScaleSetUpdate : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Sku != null)
 19            {
 020                writer.WritePropertyName("sku");
 021                writer.WriteObjectValue(Sku);
 22            }
 023            if (Plan != null)
 24            {
 025                writer.WritePropertyName("plan");
 026                writer.WriteObjectValue(Plan);
 27            }
 028            if (Identity != null)
 29            {
 030                writer.WritePropertyName("identity");
 031                writer.WriteObjectValue(Identity);
 32            }
 033            if (Tags != null)
 34            {
 035                writer.WritePropertyName("tags");
 036                writer.WriteStartObject();
 037                foreach (var item in Tags)
 38                {
 039                    writer.WritePropertyName(item.Key);
 040                    writer.WriteStringValue(item.Value);
 41                }
 042                writer.WriteEndObject();
 43            }
 044            writer.WritePropertyName("properties");
 045            writer.WriteStartObject();
 046            if (UpgradePolicy != null)
 47            {
 048                writer.WritePropertyName("upgradePolicy");
 049                writer.WriteObjectValue(UpgradePolicy);
 50            }
 051            if (AutomaticRepairsPolicy != null)
 52            {
 053                writer.WritePropertyName("automaticRepairsPolicy");
 054                writer.WriteObjectValue(AutomaticRepairsPolicy);
 55            }
 056            if (VirtualMachineProfile != null)
 57            {
 058                writer.WritePropertyName("virtualMachineProfile");
 059                writer.WriteObjectValue(VirtualMachineProfile);
 60            }
 061            if (Overprovision != null)
 62            {
 063                writer.WritePropertyName("overprovision");
 064                writer.WriteBooleanValue(Overprovision.Value);
 65            }
 066            if (DoNotRunExtensionsOnOverprovisionedVMs != null)
 67            {
 068                writer.WritePropertyName("doNotRunExtensionsOnOverprovisionedVMs");
 069                writer.WriteBooleanValue(DoNotRunExtensionsOnOverprovisionedVMs.Value);
 70            }
 071            if (SinglePlacementGroup != null)
 72            {
 073                writer.WritePropertyName("singlePlacementGroup");
 074                writer.WriteBooleanValue(SinglePlacementGroup.Value);
 75            }
 076            if (AdditionalCapabilities != null)
 77            {
 078                writer.WritePropertyName("additionalCapabilities");
 079                writer.WriteObjectValue(AdditionalCapabilities);
 80            }
 081            if (ScaleInPolicy != null)
 82            {
 083                writer.WritePropertyName("scaleInPolicy");
 084                writer.WriteObjectValue(ScaleInPolicy);
 85            }
 086            if (ProximityPlacementGroup != null)
 87            {
 088                writer.WritePropertyName("proximityPlacementGroup");
 089                writer.WriteObjectValue(ProximityPlacementGroup);
 90            }
 091            writer.WriteEndObject();
 092            writer.WriteEndObject();
 093        }
 94    }
 95}