| | 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 filter. The allowed operands to query pipeline runs are PipelineName, Ru |
| | 14 | | public readonly partial struct RunQueryFilterOperand : IEquatable<RunQueryFilterOperand> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="RunQueryFilterOperand"/> values are the same. </summary> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| | 20 | | public RunQueryFilterOperand(string value) |
| | 21 | | { |
| 0 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | private const string PipelineNameValue = "PipelineName"; |
| | 26 | | private const string StatusValue = "Status"; |
| | 27 | | private const string RunStartValue = "RunStart"; |
| | 28 | | private const string RunEndValue = "RunEnd"; |
| | 29 | | private const string ActivityNameValue = "ActivityName"; |
| | 30 | | private const string ActivityRunStartValue = "ActivityRunStart"; |
| | 31 | | private const string ActivityRunEndValue = "ActivityRunEnd"; |
| | 32 | | private const string ActivityTypeValue = "ActivityType"; |
| | 33 | | private const string TriggerNameValue = "TriggerName"; |
| | 34 | | private const string TriggerRunTimestampValue = "TriggerRunTimestamp"; |
| | 35 | | private const string RunGroupIdValue = "RunGroupId"; |
| | 36 | | private const string LatestOnlyValue = "LatestOnly"; |
| | 37 | |
|
| | 38 | | /// <summary> PipelineName. </summary> |
| 0 | 39 | | public static RunQueryFilterOperand PipelineName { get; } = new RunQueryFilterOperand(PipelineNameValue); |
| | 40 | | /// <summary> Status. </summary> |
| 0 | 41 | | public static RunQueryFilterOperand Status { get; } = new RunQueryFilterOperand(StatusValue); |
| | 42 | | /// <summary> RunStart. </summary> |
| 0 | 43 | | public static RunQueryFilterOperand RunStart { get; } = new RunQueryFilterOperand(RunStartValue); |
| | 44 | | /// <summary> RunEnd. </summary> |
| 0 | 45 | | public static RunQueryFilterOperand RunEnd { get; } = new RunQueryFilterOperand(RunEndValue); |
| | 46 | | /// <summary> ActivityName. </summary> |
| 0 | 47 | | public static RunQueryFilterOperand ActivityName { get; } = new RunQueryFilterOperand(ActivityNameValue); |
| | 48 | | /// <summary> ActivityRunStart. </summary> |
| 0 | 49 | | public static RunQueryFilterOperand ActivityRunStart { get; } = new RunQueryFilterOperand(ActivityRunStartValue) |
| | 50 | | /// <summary> ActivityRunEnd. </summary> |
| 0 | 51 | | public static RunQueryFilterOperand ActivityRunEnd { get; } = new RunQueryFilterOperand(ActivityRunEndValue); |
| | 52 | | /// <summary> ActivityType. </summary> |
| 0 | 53 | | public static RunQueryFilterOperand ActivityType { get; } = new RunQueryFilterOperand(ActivityTypeValue); |
| | 54 | | /// <summary> TriggerName. </summary> |
| 0 | 55 | | public static RunQueryFilterOperand TriggerName { get; } = new RunQueryFilterOperand(TriggerNameValue); |
| | 56 | | /// <summary> TriggerRunTimestamp. </summary> |
| 0 | 57 | | public static RunQueryFilterOperand TriggerRunTimestamp { get; } = new RunQueryFilterOperand(TriggerRunTimestamp |
| | 58 | | /// <summary> RunGroupId. </summary> |
| 0 | 59 | | public static RunQueryFilterOperand RunGroupId { get; } = new RunQueryFilterOperand(RunGroupIdValue); |
| | 60 | | /// <summary> LatestOnly. </summary> |
| 0 | 61 | | public static RunQueryFilterOperand LatestOnly { get; } = new RunQueryFilterOperand(LatestOnlyValue); |
| | 62 | | /// <summary> Determines if two <see cref="RunQueryFilterOperand"/> values are the same. </summary> |
| 0 | 63 | | public static bool operator ==(RunQueryFilterOperand left, RunQueryFilterOperand right) => left.Equals(right); |
| | 64 | | /// <summary> Determines if two <see cref="RunQueryFilterOperand"/> values are not the same. </summary> |
| 0 | 65 | | public static bool operator !=(RunQueryFilterOperand left, RunQueryFilterOperand right) => !left.Equals(right); |
| | 66 | | /// <summary> Converts a string to a <see cref="RunQueryFilterOperand"/>. </summary> |
| 0 | 67 | | public static implicit operator RunQueryFilterOperand(string value) => new RunQueryFilterOperand(value); |
| | 68 | |
|
| | 69 | | /// <inheritdoc /> |
| | 70 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 71 | | public override bool Equals(object obj) => obj is RunQueryFilterOperand other && Equals(other); |
| | 72 | | /// <inheritdoc /> |
| 0 | 73 | | public bool Equals(RunQueryFilterOperand other) => string.Equals(_value, other._value, StringComparison.Invarian |
| | 74 | |
|
| | 75 | | /// <inheritdoc /> |
| | 76 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 77 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 78 | | /// <inheritdoc /> |
| 0 | 79 | | public override string ToString() => _value; |
| | 80 | | } |
| | 81 | | } |