< Summary

Class:Azure.ResourceManager.Resources.Models.ProvisioningState
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ProvisioningState.cs
Covered lines:0
Uncovered lines:20
Coverable lines:20
Total lines:77
Line coverage:0% (0 of 20)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Accepted()-0%100%
get_Running()-0%100%
get_Ready()-0%100%
get_Creating()-0%100%
get_Created()-0%100%
get_Deleting()-0%100%
get_Deleted()-0%100%
get_Canceled()-0%100%
get_Failed()-0%100%
get_Succeeded()-0%100%
get_Updating()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%0%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ProvisioningState.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.Resources.Models
 12{
 13    /// <summary> Provisioning status of the managed application. </summary>
 14    public readonly partial struct ProvisioningState : IEquatable<ProvisioningState>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="ProvisioningState"/> values are the same. </summary>
 19        public ProvisioningState(string value)
 20        {
 021            _value = value ?? throw new ArgumentNullException(nameof(value));
 022        }
 23
 24        private const string AcceptedValue = "Accepted";
 25        private const string RunningValue = "Running";
 26        private const string ReadyValue = "Ready";
 27        private const string CreatingValue = "Creating";
 28        private const string CreatedValue = "Created";
 29        private const string DeletingValue = "Deleting";
 30        private const string DeletedValue = "Deleted";
 31        private const string CanceledValue = "Canceled";
 32        private const string FailedValue = "Failed";
 33        private const string SucceededValue = "Succeeded";
 34        private const string UpdatingValue = "Updating";
 35
 36        /// <summary> Accepted. </summary>
 037        public static ProvisioningState Accepted { get; } = new ProvisioningState(AcceptedValue);
 38        /// <summary> Running. </summary>
 039        public static ProvisioningState Running { get; } = new ProvisioningState(RunningValue);
 40        /// <summary> Ready. </summary>
 041        public static ProvisioningState Ready { get; } = new ProvisioningState(ReadyValue);
 42        /// <summary> Creating. </summary>
 043        public static ProvisioningState Creating { get; } = new ProvisioningState(CreatingValue);
 44        /// <summary> Created. </summary>
 045        public static ProvisioningState Created { get; } = new ProvisioningState(CreatedValue);
 46        /// <summary> Deleting. </summary>
 047        public static ProvisioningState Deleting { get; } = new ProvisioningState(DeletingValue);
 48        /// <summary> Deleted. </summary>
 049        public static ProvisioningState Deleted { get; } = new ProvisioningState(DeletedValue);
 50        /// <summary> Canceled. </summary>
 051        public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue);
 52        /// <summary> Failed. </summary>
 053        public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue);
 54        /// <summary> Succeeded. </summary>
 055        public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue);
 56        /// <summary> Updating. </summary>
 057        public static ProvisioningState Updating { get; } = new ProvisioningState(UpdatingValue);
 58        /// <summary> Determines if two <see cref="ProvisioningState"/> values are the same. </summary>
 059        public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right);
 60        /// <summary> Determines if two <see cref="ProvisioningState"/> values are not the same. </summary>
 061        public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right);
 62        /// <summary> Converts a string to a <see cref="ProvisioningState"/>. </summary>
 063        public static implicit operator ProvisioningState(string value) => new ProvisioningState(value);
 64
 65        /// <inheritdoc />
 66        [EditorBrowsable(EditorBrowsableState.Never)]
 067        public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other);
 68        /// <inheritdoc />
 069        public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCul
 70
 71        /// <inheritdoc />
 72        [EditorBrowsable(EditorBrowsableState.Never)]
 073        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 74        /// <inheritdoc />
 075        public override string ToString() => _value;
 76    }
 77}