< Summary

Class:Azure.ResourceManager.Compute.Models.DiskStorageAccountTypes
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\DiskStorageAccountTypes.cs
Covered lines:6
Uncovered lines:7
Coverable lines:13
Total lines:56
Line coverage:46.1% (6 of 13)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_StandardLRS()-0%100%
get_PremiumLRS()-0%100%
get_StandardSSDLRS()-0%100%
get_UltraSSDLRS()-100%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-100%100%
Equals(...)-0%0%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\DiskStorageAccountTypes.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;
 9using System.ComponentModel;
 10
 11namespace Azure.ResourceManager.Compute.Models
 12{
 13    /// <summary> The sku name. </summary>
 14    public readonly partial struct DiskStorageAccountTypes : IEquatable<DiskStorageAccountTypes>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="DiskStorageAccountTypes"/> values are the same. </summary>
 19        public DiskStorageAccountTypes(string value)
 20        {
 30421            _value = value ?? throw new ArgumentNullException(nameof(value));
 30422        }
 23
 24        private const string StandardLRSValue = "Standard_LRS";
 25        private const string PremiumLRSValue = "Premium_LRS";
 26        private const string StandardSSDLRSValue = "StandardSSD_LRS";
 27        private const string UltraSSDLRSValue = "UltraSSD_LRS";
 28
 29        /// <summary> Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. </su
 030        public static DiskStorageAccountTypes StandardLRS { get; } = new DiskStorageAccountTypes(StandardLRSValue);
 31        /// <summary> Premium SSD locally redundant storage. Best for production and performance sensitive workloads. </
 032        public static DiskStorageAccountTypes PremiumLRS { get; } = new DiskStorageAccountTypes(PremiumLRSValue);
 33        /// <summary> Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications
 034        public static DiskStorageAccountTypes StandardSSDLRS { get; } = new DiskStorageAccountTypes(StandardSSDLRSValue)
 35        /// <summary> Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier da
 1036        public static DiskStorageAccountTypes UltraSSDLRS { get; } = new DiskStorageAccountTypes(UltraSSDLRSValue);
 37        /// <summary> Determines if two <see cref="DiskStorageAccountTypes"/> values are the same. </summary>
 038        public static bool operator ==(DiskStorageAccountTypes left, DiskStorageAccountTypes right) => left.Equals(right
 39        /// <summary> Determines if two <see cref="DiskStorageAccountTypes"/> values are not the same. </summary>
 040        public static bool operator !=(DiskStorageAccountTypes left, DiskStorageAccountTypes right) => !left.Equals(righ
 41        /// <summary> Converts a string to a <see cref="DiskStorageAccountTypes"/>. </summary>
 6842        public static implicit operator DiskStorageAccountTypes(string value) => new DiskStorageAccountTypes(value);
 43
 44        /// <inheritdoc />
 45        [EditorBrowsable(EditorBrowsableState.Never)]
 046        public override bool Equals(object obj) => obj is DiskStorageAccountTypes other && Equals(other);
 47        /// <inheritdoc />
 9648        public bool Equals(DiskStorageAccountTypes other) => string.Equals(_value, other._value, StringComparison.Invari
 49
 50        /// <inheritdoc />
 51        [EditorBrowsable(EditorBrowsableState.Never)]
 052        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 53        /// <inheritdoc />
 18854        public override string ToString() => _value;
 55    }
 56}