< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_PipelineName()-0%100%
get_Status()-0%100%
get_RunStart()-0%100%
get_RunEnd()-0%100%
get_ActivityName()-0%100%
get_ActivityRunStart()-0%100%
get_ActivityRunEnd()-0%100%
get_ActivityType()-0%100%
get_TriggerName()-0%100%
get_TriggerRunTimestamp()-0%100%
get_RunGroupId()-0%100%
get_LatestOnly()-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\RunQueryFilterOperand.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 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        {
 022            _value = value ?? throw new ArgumentNullException(nameof(value));
 023        }
 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>
 039        public static RunQueryFilterOperand PipelineName { get; } = new RunQueryFilterOperand(PipelineNameValue);
 40        /// <summary> Status. </summary>
 041        public static RunQueryFilterOperand Status { get; } = new RunQueryFilterOperand(StatusValue);
 42        /// <summary> RunStart. </summary>
 043        public static RunQueryFilterOperand RunStart { get; } = new RunQueryFilterOperand(RunStartValue);
 44        /// <summary> RunEnd. </summary>
 045        public static RunQueryFilterOperand RunEnd { get; } = new RunQueryFilterOperand(RunEndValue);
 46        /// <summary> ActivityName. </summary>
 047        public static RunQueryFilterOperand ActivityName { get; } = new RunQueryFilterOperand(ActivityNameValue);
 48        /// <summary> ActivityRunStart. </summary>
 049        public static RunQueryFilterOperand ActivityRunStart { get; } = new RunQueryFilterOperand(ActivityRunStartValue)
 50        /// <summary> ActivityRunEnd. </summary>
 051        public static RunQueryFilterOperand ActivityRunEnd { get; } = new RunQueryFilterOperand(ActivityRunEndValue);
 52        /// <summary> ActivityType. </summary>
 053        public static RunQueryFilterOperand ActivityType { get; } = new RunQueryFilterOperand(ActivityTypeValue);
 54        /// <summary> TriggerName. </summary>
 055        public static RunQueryFilterOperand TriggerName { get; } = new RunQueryFilterOperand(TriggerNameValue);
 56        /// <summary> TriggerRunTimestamp. </summary>
 057        public static RunQueryFilterOperand TriggerRunTimestamp { get; } = new RunQueryFilterOperand(TriggerRunTimestamp
 58        /// <summary> RunGroupId. </summary>
 059        public static RunQueryFilterOperand RunGroupId { get; } = new RunQueryFilterOperand(RunGroupIdValue);
 60        /// <summary> LatestOnly. </summary>
 061        public static RunQueryFilterOperand LatestOnly { get; } = new RunQueryFilterOperand(LatestOnlyValue);
 62        /// <summary> Determines if two <see cref="RunQueryFilterOperand"/> values are the same. </summary>
 063        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>
 065        public static bool operator !=(RunQueryFilterOperand left, RunQueryFilterOperand right) => !left.Equals(right);
 66        /// <summary> Converts a string to a <see cref="RunQueryFilterOperand"/>. </summary>
 067        public static implicit operator RunQueryFilterOperand(string value) => new RunQueryFilterOperand(value);
 68
 69        /// <inheritdoc />
 70        [EditorBrowsable(EditorBrowsableState.Never)]
 071        public override bool Equals(object obj) => obj is RunQueryFilterOperand other && Equals(other);
 72        /// <inheritdoc />
 073        public bool Equals(RunQueryFilterOperand other) => string.Equals(_value, other._value, StringComparison.Invarian
 74
 75        /// <inheritdoc />
 76        [EditorBrowsable(EditorBrowsableState.Never)]
 077        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 78        /// <inheritdoc />
 079        public override string ToString() => _value;
 80    }
 81}