< Summary

Class:Azure.ResourceManager.Compute.Models.StorageAccountTypes
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\StorageAccountTypes.cs
Covered lines:10
Uncovered lines:3
Coverable lines:13
Total lines:56
Line coverage:76.9% (10 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()-100%100%
get_PremiumLRS()-100%100%
get_StandardSSDLRS()-100%100%
get_UltraSSDLRS()-100%100%
op_Equality(...)-100%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\StorageAccountTypes.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> Specifies the storage account type for the managed disk. Managed OS disk storage account type can only
 14    public readonly partial struct StorageAccountTypes : IEquatable<StorageAccountTypes>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="StorageAccountTypes"/> values are the same. </summary>
 19        public StorageAccountTypes(string value)
 20        {
 106021            _value = value ?? throw new ArgumentNullException(nameof(value));
 106022        }
 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_LRS. </summary>
 7430        public static StorageAccountTypes StandardLRS { get; } = new StorageAccountTypes(StandardLRSValue);
 31        /// <summary> Premium_LRS. </summary>
 1032        public static StorageAccountTypes PremiumLRS { get; } = new StorageAccountTypes(PremiumLRSValue);
 33        /// <summary> StandardSSD_LRS. </summary>
 1034        public static StorageAccountTypes StandardSSDLRS { get; } = new StorageAccountTypes(StandardSSDLRSValue);
 35        /// <summary> UltraSSD_LRS. </summary>
 15436        public static StorageAccountTypes UltraSSDLRS { get; } = new StorageAccountTypes(UltraSSDLRSValue);
 37        /// <summary> Determines if two <see cref="StorageAccountTypes"/> values are the same. </summary>
 22438        public static bool operator ==(StorageAccountTypes left, StorageAccountTypes right) => left.Equals(right);
 39        /// <summary> Determines if two <see cref="StorageAccountTypes"/> values are not the same. </summary>
 040        public static bool operator !=(StorageAccountTypes left, StorageAccountTypes right) => !left.Equals(right);
 41        /// <summary> Converts a string to a <see cref="StorageAccountTypes"/>. </summary>
 14842        public static implicit operator StorageAccountTypes(string value) => new StorageAccountTypes(value);
 43
 44        /// <inheritdoc />
 45        [EditorBrowsable(EditorBrowsableState.Never)]
 046        public override bool Equals(object obj) => obj is StorageAccountTypes other && Equals(other);
 47        /// <inheritdoc />
 22448        public bool Equals(StorageAccountTypes other) => string.Equals(_value, other._value, StringComparison.InvariantC
 49
 50        /// <inheritdoc />
 51        [EditorBrowsable(EditorBrowsableState.Never)]
 052        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 53        /// <inheritdoc />
 16854        public override string ToString() => _value;
 55    }
 56}