< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
get_ContinuationToken()-0%100%
get_LastUpdatedAfter()-0%100%
get_LastUpdatedBefore()-0%100%
get_Filters()-0%100%
get_OrderBy()-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\RunFilterParameters.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 Azure.Core;
 11
 12namespace Azure.Analytics.Synapse.Artifacts.Models
 13{
 14    /// <summary> Query parameters for listing runs. </summary>
 15    public partial class RunFilterParameters
 16    {
 17        /// <summary> Initializes a new instance of RunFilterParameters. </summary>
 18        /// <param name="lastUpdatedAfter"> The time at or after which the run event was updated in &apos;ISO 8601&apos;
 19        /// <param name="lastUpdatedBefore"> The time at or before which the run event was updated in &apos;ISO 8601&apo
 020        public RunFilterParameters(DateTimeOffset lastUpdatedAfter, DateTimeOffset lastUpdatedBefore)
 21        {
 022            LastUpdatedAfter = lastUpdatedAfter;
 023            LastUpdatedBefore = lastUpdatedBefore;
 024            Filters = new ChangeTrackingList<RunQueryFilter>();
 025            OrderBy = new ChangeTrackingList<RunQueryOrderBy>();
 026        }
 27
 28        /// <summary> The continuation token for getting the next page of results. Null for first page. </summary>
 029        public string ContinuationToken { get; set; }
 30        /// <summary> The time at or after which the run event was updated in &apos;ISO 8601&apos; format. </summary>
 031        public DateTimeOffset LastUpdatedAfter { get; }
 32        /// <summary> The time at or before which the run event was updated in &apos;ISO 8601&apos; format. </summary>
 033        public DateTimeOffset LastUpdatedBefore { get; }
 34        /// <summary> List of filters. </summary>
 035        public IList<RunQueryFilter> Filters { get; }
 36        /// <summary> List of OrderBy option. </summary>
 037        public IList<RunQueryOrderBy> OrderBy { get; }
 38    }
 39}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\RunFilterParameters.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 RunFilterParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsDefined(ContinuationToken))
 19            {
 020                writer.WritePropertyName("continuationToken");
 021                writer.WriteStringValue(ContinuationToken);
 22            }
 023            writer.WritePropertyName("lastUpdatedAfter");
 024            writer.WriteStringValue(LastUpdatedAfter, "O");
 025            writer.WritePropertyName("lastUpdatedBefore");
 026            writer.WriteStringValue(LastUpdatedBefore, "O");
 027            if (Optional.IsCollectionDefined(Filters))
 28            {
 029                writer.WritePropertyName("filters");
 030                writer.WriteStartArray();
 031                foreach (var item in Filters)
 32                {
 033                    writer.WriteObjectValue(item);
 34                }
 035                writer.WriteEndArray();
 36            }
 037            if (Optional.IsCollectionDefined(OrderBy))
 38            {
 039                writer.WritePropertyName("orderBy");
 040                writer.WriteStartArray();
 041                foreach (var item in OrderBy)
 42                {
 043                    writer.WriteObjectValue(item);
 44                }
 045                writer.WriteEndArray();
 46            }
 047            writer.WriteEndObject();
 048        }
 49    }
 50}