< Summary

Class:Azure.Iot.Hub.Service.Models.JobPropertiesStatus
Assembly:Azure.Iot.Hub.Service
File(s):C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\JobPropertiesStatus.cs
Covered lines:0
Uncovered lines:17
Coverable lines:17
Total lines:69
Line coverage:0% (0 of 17)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Unknown()-0%100%
get_Enqueued()-0%100%
get_Running()-0%100%
get_Completed()-0%100%
get_Failed()-0%100%
get_Cancelled()-0%100%
get_Scheduled()-0%100%
get_Queued()-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\iot\Azure.Iot.Hub.Service\src\Generated\Models\JobPropertiesStatus.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.Iot.Hub.Service.Models
 12{
 13    /// <summary> System generated. Ignored at creation. The status of the job. </summary>
 14    public readonly partial struct JobPropertiesStatus : IEquatable<JobPropertiesStatus>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="JobPropertiesStatus"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public JobPropertiesStatus(string value)
 21        {
 022            _value = value ?? throw new ArgumentNullException(nameof(value));
 023        }
 24
 25        private const string UnknownValue = "unknown";
 26        private const string EnqueuedValue = "enqueued";
 27        private const string RunningValue = "running";
 28        private const string CompletedValue = "completed";
 29        private const string FailedValue = "failed";
 30        private const string CancelledValue = "cancelled";
 31        private const string ScheduledValue = "scheduled";
 32        private const string QueuedValue = "queued";
 33
 34        /// <summary> unknown. </summary>
 035        public static JobPropertiesStatus Unknown { get; } = new JobPropertiesStatus(UnknownValue);
 36        /// <summary> enqueued. </summary>
 037        public static JobPropertiesStatus Enqueued { get; } = new JobPropertiesStatus(EnqueuedValue);
 38        /// <summary> running. </summary>
 039        public static JobPropertiesStatus Running { get; } = new JobPropertiesStatus(RunningValue);
 40        /// <summary> completed. </summary>
 041        public static JobPropertiesStatus Completed { get; } = new JobPropertiesStatus(CompletedValue);
 42        /// <summary> failed. </summary>
 043        public static JobPropertiesStatus Failed { get; } = new JobPropertiesStatus(FailedValue);
 44        /// <summary> cancelled. </summary>
 045        public static JobPropertiesStatus Cancelled { get; } = new JobPropertiesStatus(CancelledValue);
 46        /// <summary> scheduled. </summary>
 047        public static JobPropertiesStatus Scheduled { get; } = new JobPropertiesStatus(ScheduledValue);
 48        /// <summary> queued. </summary>
 049        public static JobPropertiesStatus Queued { get; } = new JobPropertiesStatus(QueuedValue);
 50        /// <summary> Determines if two <see cref="JobPropertiesStatus"/> values are the same. </summary>
 051        public static bool operator ==(JobPropertiesStatus left, JobPropertiesStatus right) => left.Equals(right);
 52        /// <summary> Determines if two <see cref="JobPropertiesStatus"/> values are not the same. </summary>
 053        public static bool operator !=(JobPropertiesStatus left, JobPropertiesStatus right) => !left.Equals(right);
 54        /// <summary> Converts a string to a <see cref="JobPropertiesStatus"/>. </summary>
 055        public static implicit operator JobPropertiesStatus(string value) => new JobPropertiesStatus(value);
 56
 57        /// <inheritdoc />
 58        [EditorBrowsable(EditorBrowsableState.Never)]
 059        public override bool Equals(object obj) => obj is JobPropertiesStatus other && Equals(other);
 60        /// <inheritdoc />
 061        public bool Equals(JobPropertiesStatus other) => string.Equals(_value, other._value, StringComparison.InvariantC
 62
 63        /// <inheritdoc />
 64        [EditorBrowsable(EditorBrowsableState.Never)]
 065        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 66        /// <inheritdoc />
 067        public override string ToString() => _value;
 68    }
 69}