| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.ComponentModel; |
| | 10 | |
|
| | 11 | | namespace 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 | | { |
| 0 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 23 | | } |
| | 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> |
| 0 | 36 | | public static RunQueryOrderByField RunStart { get; } = new RunQueryOrderByField(RunStartValue); |
| | 37 | | /// <summary> RunEnd. </summary> |
| 0 | 38 | | public static RunQueryOrderByField RunEnd { get; } = new RunQueryOrderByField(RunEndValue); |
| | 39 | | /// <summary> PipelineName. </summary> |
| 0 | 40 | | public static RunQueryOrderByField PipelineName { get; } = new RunQueryOrderByField(PipelineNameValue); |
| | 41 | | /// <summary> Status. </summary> |
| 0 | 42 | | public static RunQueryOrderByField Status { get; } = new RunQueryOrderByField(StatusValue); |
| | 43 | | /// <summary> ActivityName. </summary> |
| 0 | 44 | | public static RunQueryOrderByField ActivityName { get; } = new RunQueryOrderByField(ActivityNameValue); |
| | 45 | | /// <summary> ActivityRunStart. </summary> |
| 0 | 46 | | public static RunQueryOrderByField ActivityRunStart { get; } = new RunQueryOrderByField(ActivityRunStartValue); |
| | 47 | | /// <summary> ActivityRunEnd. </summary> |
| 0 | 48 | | public static RunQueryOrderByField ActivityRunEnd { get; } = new RunQueryOrderByField(ActivityRunEndValue); |
| | 49 | | /// <summary> TriggerName. </summary> |
| 0 | 50 | | public static RunQueryOrderByField TriggerName { get; } = new RunQueryOrderByField(TriggerNameValue); |
| | 51 | | /// <summary> TriggerRunTimestamp. </summary> |
| 0 | 52 | | public static RunQueryOrderByField TriggerRunTimestamp { get; } = new RunQueryOrderByField(TriggerRunTimestampVa |
| | 53 | | /// <summary> Determines if two <see cref="RunQueryOrderByField"/> values are the same. </summary> |
| 0 | 54 | | 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> |
| 0 | 56 | | public static bool operator !=(RunQueryOrderByField left, RunQueryOrderByField right) => !left.Equals(right); |
| | 57 | | /// <summary> Converts a string to a <see cref="RunQueryOrderByField"/>. </summary> |
| 0 | 58 | | public static implicit operator RunQueryOrderByField(string value) => new RunQueryOrderByField(value); |
| | 59 | |
|
| | 60 | | /// <inheritdoc /> |
| | 61 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 62 | | public override bool Equals(object obj) => obj is RunQueryOrderByField other && Equals(other); |
| | 63 | | /// <inheritdoc /> |
| 0 | 64 | | public bool Equals(RunQueryOrderByField other) => string.Equals(_value, other._value, StringComparison.Invariant |
| | 65 | |
|
| | 66 | | /// <inheritdoc /> |
| | 67 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 68 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 69 | | /// <inheritdoc /> |
| 0 | 70 | | public override string ToString() => _value; |
| | 71 | | } |
| | 72 | | } |