< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.RunQueryOrderByField
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\RunQueryOrderByField.cs
Covered lines:0
Uncovered lines:18
Coverable lines:18
Total lines:72
Line coverage:0% (0 of 18)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_RunStart()-0%100%
get_RunEnd()-0%100%
get_PipelineName()-0%100%
get_Status()-0%100%
get_ActivityName()-0%100%
get_ActivityRunStart()-0%100%
get_ActivityRunEnd()-0%100%
get_TriggerName()-0%100%
get_TriggerRunTimestamp()-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\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\RunQueryOrderByField.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.Analytics.Synapse.Artifacts.Models
 12{
 13    /// <summary> Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are Pipel
 14    public readonly partial struct RunQueryOrderByField : IEquatable<RunQueryOrderByField>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="RunQueryOrderByField"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public RunQueryOrderByField(string value)
 21        {
 022            _value = value ?? throw new ArgumentNullException(nameof(value));
 023        }
 24
 25        private const string RunStartValue = "RunStart";
 26        private const string RunEndValue = "RunEnd";
 27        private const string PipelineNameValue = "PipelineName";
 28        private const string StatusValue = "Status";
 29        private const string ActivityNameValue = "ActivityName";
 30        private const string ActivityRunStartValue = "ActivityRunStart";
 31        private const string ActivityRunEndValue = "ActivityRunEnd";
 32        private const string TriggerNameValue = "TriggerName";
 33        private const string TriggerRunTimestampValue = "TriggerRunTimestamp";
 34
 35        /// <summary> RunStart. </summary>
 036        public static RunQueryOrderByField RunStart { get; } = new RunQueryOrderByField(RunStartValue);
 37        /// <summary> RunEnd. </summary>
 038        public static RunQueryOrderByField RunEnd { get; } = new RunQueryOrderByField(RunEndValue);
 39        /// <summary> PipelineName. </summary>
 040        public static RunQueryOrderByField PipelineName { get; } = new RunQueryOrderByField(PipelineNameValue);
 41        /// <summary> Status. </summary>
 042        public static RunQueryOrderByField Status { get; } = new RunQueryOrderByField(StatusValue);
 43        /// <summary> ActivityName. </summary>
 044        public static RunQueryOrderByField ActivityName { get; } = new RunQueryOrderByField(ActivityNameValue);
 45        /// <summary> ActivityRunStart. </summary>
 046        public static RunQueryOrderByField ActivityRunStart { get; } = new RunQueryOrderByField(ActivityRunStartValue);
 47        /// <summary> ActivityRunEnd. </summary>
 048        public static RunQueryOrderByField ActivityRunEnd { get; } = new RunQueryOrderByField(ActivityRunEndValue);
 49        /// <summary> TriggerName. </summary>
 050        public static RunQueryOrderByField TriggerName { get; } = new RunQueryOrderByField(TriggerNameValue);
 51        /// <summary> TriggerRunTimestamp. </summary>
 052        public static RunQueryOrderByField TriggerRunTimestamp { get; } = new RunQueryOrderByField(TriggerRunTimestampVa
 53        /// <summary> Determines if two <see cref="RunQueryOrderByField"/> values are the same. </summary>
 054        public static bool operator ==(RunQueryOrderByField left, RunQueryOrderByField right) => left.Equals(right);
 55        /// <summary> Determines if two <see cref="RunQueryOrderByField"/> values are not the same. </summary>
 056        public static bool operator !=(RunQueryOrderByField left, RunQueryOrderByField right) => !left.Equals(right);
 57        /// <summary> Converts a string to a <see cref="RunQueryOrderByField"/>. </summary>
 058        public static implicit operator RunQueryOrderByField(string value) => new RunQueryOrderByField(value);
 59
 60        /// <inheritdoc />
 61        [EditorBrowsable(EditorBrowsableState.Never)]
 062        public override bool Equals(object obj) => obj is RunQueryOrderByField other && Equals(other);
 63        /// <inheritdoc />
 064        public bool Equals(RunQueryOrderByField other) => string.Equals(_value, other._value, StringComparison.Invariant
 65
 66        /// <inheritdoc />
 67        [EditorBrowsable(EditorBrowsableState.Never)]
 068        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 69        /// <inheritdoc />
 070        public override string ToString() => _value;
 71    }
 72}