< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\AdditionalCapabilities.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> Enables or disables a capability on the virtual machine or virtual machine scale set. </summary>
 11    public partial class AdditionalCapabilities
 12    {
 13        /// <summary> Initializes a new instance of AdditionalCapabilities. </summary>
 814        public AdditionalCapabilities()
 15        {
 816        }
 17
 18        /// <summary> Initializes a new instance of AdditionalCapabilities. </summary>
 19        /// <param name="ultraSSDEnabled"> The flag that enables or disables a capability to have one or more managed da
 4820        internal AdditionalCapabilities(bool? ultraSSDEnabled)
 21        {
 4822            UltraSSDEnabled = ultraSSDEnabled;
 4823        }
 24
 25        /// <summary> The flag that enables or disables a capability to have one or more managed data disks with UltraSS
 10426        public bool? UltraSSDEnabled { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\AdditionalCapabilities.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 AdditionalCapabilities : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 1617            writer.WriteStartObject();
 1618            if (UltraSSDEnabled != null)
 19            {
 1620                writer.WritePropertyName("ultraSSDEnabled");
 1621                writer.WriteBooleanValue(UltraSSDEnabled.Value);
 22            }
 1623            writer.WriteEndObject();
 1624        }
 25
 26        internal static AdditionalCapabilities DeserializeAdditionalCapabilities(JsonElement element)
 27        {
 4828            bool? ultraSSDEnabled = default;
 19229            foreach (var property in element.EnumerateObject())
 30            {
 4831                if (property.NameEquals("ultraSSDEnabled"))
 32                {
 4833                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 4837                    ultraSSDEnabled = property.Value.GetBoolean();
 38                    continue;
 39                }
 40            }
 4841            return new AdditionalCapabilities(ultraSSDEnabled);
 42        }
 43    }
 44}