< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_RunId()-0%100%
get_RunGroupId()-0%100%
get_IsLatest()-0%100%
get_PipelineName()-0%100%
get_Parameters()-0%100%
get_InvokedBy()-0%100%
get_LastUpdated()-0%100%
get_RunStart()-0%100%
get_RunEnd()-0%100%
get_DurationInMs()-0%100%
get_Status()-0%100%
get_Message()-0%100%
get_AdditionalProperties()-0%100%
GetEnumerator()-0%100%
System.Collections.IEnumerable.GetEnumerator()-0%100%
TryGetValue(...)-0%100%
ContainsKey(...)-0%100%
get_Keys()-0%100%
get_Values()-0%100%
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.get_Count()-0%100%
get_Item(...)-0%100%
DeserializePipelineRun(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineRun.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;
 10using System.Collections.Generic;
 11using Azure.Core;
 12
 13namespace Azure.Analytics.Synapse.Artifacts.Models
 14{
 15    /// <summary> Information about a pipeline run. </summary>
 16    public partial class PipelineRun : IReadOnlyDictionary<string, object>
 17    {
 18        /// <summary> Initializes a new instance of PipelineRun. </summary>
 019        internal PipelineRun()
 20        {
 021            Parameters = new ChangeTrackingDictionary<string, string>();
 022            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 023        }
 24
 25        /// <summary> Initializes a new instance of PipelineRun. </summary>
 26        /// <param name="runId"> Identifier of a run. </param>
 27        /// <param name="runGroupId"> Identifier that correlates all the recovery runs of a pipeline run. </param>
 28        /// <param name="isLatest"> Indicates if the recovered pipeline run is the latest in its group. </param>
 29        /// <param name="pipelineName"> The pipeline name. </param>
 30        /// <param name="parameters"> The full or partial list of parameter name, value pair used in the pipeline run. <
 31        /// <param name="invokedBy"> Entity that started the pipeline run. </param>
 32        /// <param name="lastUpdated"> The last updated timestamp for the pipeline run event in ISO8601 format. </param>
 33        /// <param name="runStart"> The start time of a pipeline run in ISO8601 format. </param>
 34        /// <param name="runEnd"> The end time of a pipeline run in ISO8601 format. </param>
 35        /// <param name="durationInMs"> The duration of a pipeline run. </param>
 36        /// <param name="status"> The status of a pipeline run. </param>
 37        /// <param name="message"> The message from a pipeline run. </param>
 38        /// <param name="additionalProperties"> . </param>
 039        internal PipelineRun(string runId, string runGroupId, bool? isLatest, string pipelineName, IReadOnlyDictionary<s
 40        {
 041            RunId = runId;
 042            RunGroupId = runGroupId;
 043            IsLatest = isLatest;
 044            PipelineName = pipelineName;
 045            Parameters = parameters;
 046            InvokedBy = invokedBy;
 047            LastUpdated = lastUpdated;
 048            RunStart = runStart;
 049            RunEnd = runEnd;
 050            DurationInMs = durationInMs;
 051            Status = status;
 052            Message = message;
 053            AdditionalProperties = additionalProperties;
 054        }
 55
 56        /// <summary> Identifier of a run. </summary>
 057        public string RunId { get; }
 58        /// <summary> Identifier that correlates all the recovery runs of a pipeline run. </summary>
 059        public string RunGroupId { get; }
 60        /// <summary> Indicates if the recovered pipeline run is the latest in its group. </summary>
 061        public bool? IsLatest { get; }
 62        /// <summary> The pipeline name. </summary>
 063        public string PipelineName { get; }
 64        /// <summary> The full or partial list of parameter name, value pair used in the pipeline run. </summary>
 065        public IReadOnlyDictionary<string, string> Parameters { get; }
 66        /// <summary> Entity that started the pipeline run. </summary>
 067        public PipelineRunInvokedBy InvokedBy { get; }
 68        /// <summary> The last updated timestamp for the pipeline run event in ISO8601 format. </summary>
 069        public DateTimeOffset? LastUpdated { get; }
 70        /// <summary> The start time of a pipeline run in ISO8601 format. </summary>
 071        public DateTimeOffset? RunStart { get; }
 72        /// <summary> The end time of a pipeline run in ISO8601 format. </summary>
 073        public DateTimeOffset? RunEnd { get; }
 74        /// <summary> The duration of a pipeline run. </summary>
 075        public int? DurationInMs { get; }
 76        /// <summary> The status of a pipeline run. </summary>
 077        public string Status { get; }
 78        /// <summary> The message from a pipeline run. </summary>
 079        public string Message { get; }
 080        internal IReadOnlyDictionary<string, object> AdditionalProperties { get; }
 81        /// <inheritdoc />
 082        public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator();
 83        /// <inheritdoc />
 084        IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator();
 85        /// <inheritdoc />
 086        public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value);
 87        /// <inheritdoc />
 088        public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key);
 89        /// <inheritdoc />
 090        public IEnumerable<string> Keys => AdditionalProperties.Keys;
 91        /// <inheritdoc />
 092        public IEnumerable<object> Values => AdditionalProperties.Values;
 93        /// <inheritdoc />
 094        int IReadOnlyCollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count;
 95        /// <inheritdoc />
 96        public object this[string key]
 97        {
 098            get => AdditionalProperties[key];
 99        }
 100    }
 101}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineRun.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;
 9using System.Collections.Generic;
 10using System.Text.Json;
 11using Azure.Core;
 12
 13namespace Azure.Analytics.Synapse.Artifacts.Models
 14{
 15    public partial class PipelineRun
 16    {
 17        internal static PipelineRun DeserializePipelineRun(JsonElement element)
 18        {
 019            Optional<string> runId = default;
 020            Optional<string> runGroupId = default;
 021            Optional<bool> isLatest = default;
 022            Optional<string> pipelineName = default;
 023            Optional<IReadOnlyDictionary<string, string>> parameters = default;
 024            Optional<PipelineRunInvokedBy> invokedBy = default;
 025            Optional<DateTimeOffset> lastUpdated = default;
 026            Optional<DateTimeOffset> runStart = default;
 027            Optional<DateTimeOffset> runEnd = default;
 028            Optional<int> durationInMs = default;
 029            Optional<string> status = default;
 030            Optional<string> message = default;
 031            IReadOnlyDictionary<string, object> additionalProperties = default;
 032            Dictionary<string, object> additionalPropertiesDictionary = default;
 033            foreach (var property in element.EnumerateObject())
 34            {
 035                if (property.NameEquals("runId"))
 36                {
 037                    runId = property.Value.GetString();
 038                    continue;
 39                }
 040                if (property.NameEquals("runGroupId"))
 41                {
 042                    runGroupId = property.Value.GetString();
 043                    continue;
 44                }
 045                if (property.NameEquals("isLatest"))
 46                {
 047                    isLatest = property.Value.GetBoolean();
 048                    continue;
 49                }
 050                if (property.NameEquals("pipelineName"))
 51                {
 052                    pipelineName = property.Value.GetString();
 053                    continue;
 54                }
 055                if (property.NameEquals("parameters"))
 56                {
 057                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 058                    foreach (var property0 in property.Value.EnumerateObject())
 59                    {
 060                        dictionary.Add(property0.Name, property0.Value.GetString());
 61                    }
 062                    parameters = dictionary;
 063                    continue;
 64                }
 065                if (property.NameEquals("invokedBy"))
 66                {
 067                    invokedBy = PipelineRunInvokedBy.DeserializePipelineRunInvokedBy(property.Value);
 068                    continue;
 69                }
 070                if (property.NameEquals("lastUpdated"))
 71                {
 072                    lastUpdated = property.Value.GetDateTimeOffset("O");
 073                    continue;
 74                }
 075                if (property.NameEquals("runStart"))
 76                {
 077                    runStart = property.Value.GetDateTimeOffset("O");
 078                    continue;
 79                }
 080                if (property.NameEquals("runEnd"))
 81                {
 082                    runEnd = property.Value.GetDateTimeOffset("O");
 083                    continue;
 84                }
 085                if (property.NameEquals("durationInMs"))
 86                {
 087                    durationInMs = property.Value.GetInt32();
 088                    continue;
 89                }
 090                if (property.NameEquals("status"))
 91                {
 092                    status = property.Value.GetString();
 093                    continue;
 94                }
 095                if (property.NameEquals("message"))
 96                {
 097                    message = property.Value.GetString();
 098                    continue;
 99                }
 0100                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 0101                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 102            }
 0103            additionalProperties = additionalPropertiesDictionary;
 0104            return new PipelineRun(runId.Value, runGroupId.Value, Optional.ToNullable(isLatest), pipelineName.Value, Opt
 105        }
 106    }
 107}