< Summary

Class:Azure.ResourceManager.Storage.Models.SkuName
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\SkuName.cs
Covered lines:12
Uncovered lines:5
Coverable lines:17
Total lines:68
Line coverage:70.5% (12 of 17)
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_StandardGRS()-100%100%
get_StandardRagrs()-100%100%
get_StandardZRS()-100%100%
get_PremiumLRS()-100%100%
get_PremiumZRS()-0%100%
get_StandardGzrs()-0%100%
get_StandardRagzrs()-100%100%
op_Equality(...)-100%100%
op_Inequality(...)-100%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\SkuName.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.Storage.Models
 12{
 13    /// <summary> The SKU name. Required for account creation; optional for update. Note that in older versions, SKU nam
 14    public readonly partial struct SkuName : IEquatable<SkuName>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="SkuName"/> values are the same. </summary>
 19        public SkuName(string value)
 20        {
 334821            _value = value ?? throw new ArgumentNullException(nameof(value));
 334822        }
 23
 24        private const string StandardLRSValue = "Standard_LRS";
 25        private const string StandardGRSValue = "Standard_GRS";
 26        private const string StandardRagrsValue = "Standard_RAGRS";
 27        private const string StandardZRSValue = "Standard_ZRS";
 28        private const string PremiumLRSValue = "Premium_LRS";
 29        private const string PremiumZRSValue = "Premium_ZRS";
 30        private const string StandardGzrsValue = "Standard_GZRS";
 31        private const string StandardRagzrsValue = "Standard_RAGZRS";
 32
 33        /// <summary> Standard_LRS. </summary>
 28634        public static SkuName StandardLRS { get; } = new SkuName(StandardLRSValue);
 35        /// <summary> Standard_GRS. </summary>
 18036        public static SkuName StandardGRS { get; } = new SkuName(StandardGRSValue);
 37        /// <summary> Standard_RAGRS. </summary>
 2238        public static SkuName StandardRagrs { get; } = new SkuName(StandardRagrsValue);
 39        /// <summary> Standard_ZRS. </summary>
 31040        public static SkuName StandardZRS { get; } = new SkuName(StandardZRSValue);
 41        /// <summary> Premium_LRS. </summary>
 31842        public static SkuName PremiumLRS { get; } = new SkuName(PremiumLRSValue);
 43        /// <summary> Premium_ZRS. </summary>
 044        public static SkuName PremiumZRS { get; } = new SkuName(PremiumZRSValue);
 45        /// <summary> Standard_GZRS. </summary>
 046        public static SkuName StandardGzrs { get; } = new SkuName(StandardGzrsValue);
 47        /// <summary> Standard_RAGZRS. </summary>
 15048        public static SkuName StandardRagzrs { get; } = new SkuName(StandardRagzrsValue);
 49        /// <summary> Determines if two <see cref="SkuName"/> values are the same. </summary>
 78450        public static bool operator ==(SkuName left, SkuName right) => left.Equals(right);
 51        /// <summary> Determines if two <see cref="SkuName"/> values are not the same. </summary>
 27652        public static bool operator !=(SkuName left, SkuName right) => !left.Equals(right);
 53        /// <summary> Converts a string to a <see cref="SkuName"/>. </summary>
 054        public static implicit operator SkuName(string value) => new SkuName(value);
 55
 56        /// <inheritdoc />
 57        [EditorBrowsable(EditorBrowsableState.Never)]
 058        public override bool Equals(object obj) => obj is SkuName other && Equals(other);
 59        /// <inheritdoc />
 121660        public bool Equals(SkuName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnore
 61
 62        /// <inheritdoc />
 63        [EditorBrowsable(EditorBrowsableState.Never)]
 064        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 65        /// <inheritdoc />
 62466        public override string ToString() => _value;
 67    }
 68}