< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Operand()-0%100%
get_Operator()-0%100%
get_Values()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\RunQueryFilter.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.Collections.Generic;
 10using System.Linq;
 11
 12namespace Azure.Analytics.Synapse.Artifacts.Models
 13{
 14    /// <summary> Query filter option for listing runs. </summary>
 15    public partial class RunQueryFilter
 16    {
 17        /// <summary> Initializes a new instance of RunQueryFilter. </summary>
 18        /// <param name="operand"> Parameter name to be used for filter. The allowed operands to query pipeline runs are
 19        /// <param name="operator"> Operator to be used for filter. </param>
 20        /// <param name="values"> List of filter values. </param>
 21        /// <exception cref="ArgumentNullException"> <paramref name="values"/> is null. </exception>
 022        public RunQueryFilter(RunQueryFilterOperand operand, RunQueryFilterOperator @operator, IEnumerable<string> value
 23        {
 024            if (values == null)
 25            {
 026                throw new ArgumentNullException(nameof(values));
 27            }
 28
 029            Operand = operand;
 030            Operator = @operator;
 031            Values = values.ToList();
 032        }
 33
 34        /// <summary> Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName
 035        public RunQueryFilterOperand Operand { get; }
 36        /// <summary> Operator to be used for filter. </summary>
 037        public RunQueryFilterOperator Operator { get; }
 38        /// <summary> List of filter values. </summary>
 039        public IList<string> Values { get; }
 40    }
 41}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\RunQueryFilter.Serialization.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    public partial class RunQueryFilter : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("operand");
 019            writer.WriteStringValue(Operand.ToString());
 020            writer.WritePropertyName("operator");
 021            writer.WriteStringValue(Operator.ToString());
 022            writer.WritePropertyName("values");
 023            writer.WriteStartArray();
 024            foreach (var item in Values)
 25            {
 026                writer.WriteStringValue(item);
 27            }
 028            writer.WriteEndArray();
 029            writer.WriteEndObject();
 030        }
 31    }
 32}