< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_TriggerRunId()-0%100%
get_TriggerName()-0%100%
get_TriggerType()-0%100%
get_TriggerRunTimestamp()-0%100%
get_Status()-0%100%
get_Message()-0%100%
get_Properties()-0%100%
get_TriggeredPipelines()-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%
DeserializeTriggerRun(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerRun.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> Trigger runs. </summary>
 16    public partial class TriggerRun : IReadOnlyDictionary<string, object>
 17    {
 18        /// <summary> Initializes a new instance of TriggerRun. </summary>
 019        internal TriggerRun()
 20        {
 021            Properties = new ChangeTrackingDictionary<string, string>();
 022            TriggeredPipelines = new ChangeTrackingDictionary<string, string>();
 023            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 024        }
 25
 26        /// <summary> Initializes a new instance of TriggerRun. </summary>
 27        /// <param name="triggerRunId"> Trigger run id. </param>
 28        /// <param name="triggerName"> Trigger name. </param>
 29        /// <param name="triggerType"> Trigger type. </param>
 30        /// <param name="triggerRunTimestamp"> Trigger run start time. </param>
 31        /// <param name="status"> Trigger run status. </param>
 32        /// <param name="message"> Trigger error message. </param>
 33        /// <param name="properties"> List of property name and value related to trigger run. Name, value pair depends o
 34        /// <param name="triggeredPipelines"> List of pipeline name and run Id triggered by the trigger run. </param>
 35        /// <param name="additionalProperties"> . </param>
 036        internal TriggerRun(string triggerRunId, string triggerName, string triggerType, DateTimeOffset? triggerRunTimes
 37        {
 038            TriggerRunId = triggerRunId;
 039            TriggerName = triggerName;
 040            TriggerType = triggerType;
 041            TriggerRunTimestamp = triggerRunTimestamp;
 042            Status = status;
 043            Message = message;
 044            Properties = properties;
 045            TriggeredPipelines = triggeredPipelines;
 046            AdditionalProperties = additionalProperties;
 047        }
 48
 49        /// <summary> Trigger run id. </summary>
 050        public string TriggerRunId { get; }
 51        /// <summary> Trigger name. </summary>
 052        public string TriggerName { get; }
 53        /// <summary> Trigger type. </summary>
 054        public string TriggerType { get; }
 55        /// <summary> Trigger run start time. </summary>
 056        public DateTimeOffset? TriggerRunTimestamp { get; }
 57        /// <summary> Trigger run status. </summary>
 058        public TriggerRunStatus? Status { get; }
 59        /// <summary> Trigger error message. </summary>
 060        public string Message { get; }
 61        /// <summary> List of property name and value related to trigger run. Name, value pair depends on type of trigge
 062        public IReadOnlyDictionary<string, string> Properties { get; }
 63        /// <summary> List of pipeline name and run Id triggered by the trigger run. </summary>
 064        public IReadOnlyDictionary<string, string> TriggeredPipelines { get; }
 065        internal IReadOnlyDictionary<string, object> AdditionalProperties { get; }
 66        /// <inheritdoc />
 067        public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator();
 68        /// <inheritdoc />
 069        IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator();
 70        /// <inheritdoc />
 071        public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value);
 72        /// <inheritdoc />
 073        public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key);
 74        /// <inheritdoc />
 075        public IEnumerable<string> Keys => AdditionalProperties.Keys;
 76        /// <inheritdoc />
 077        public IEnumerable<object> Values => AdditionalProperties.Values;
 78        /// <inheritdoc />
 079        int IReadOnlyCollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count;
 80        /// <inheritdoc />
 81        public object this[string key]
 82        {
 083            get => AdditionalProperties[key];
 84        }
 85    }
 86}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerRun.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 TriggerRun
 16    {
 17        internal static TriggerRun DeserializeTriggerRun(JsonElement element)
 18        {
 019            Optional<string> triggerRunId = default;
 020            Optional<string> triggerName = default;
 021            Optional<string> triggerType = default;
 022            Optional<DateTimeOffset> triggerRunTimestamp = default;
 023            Optional<TriggerRunStatus> status = default;
 024            Optional<string> message = default;
 025            Optional<IReadOnlyDictionary<string, string>> properties = default;
 026            Optional<IReadOnlyDictionary<string, string>> triggeredPipelines = default;
 027            IReadOnlyDictionary<string, object> additionalProperties = default;
 028            Dictionary<string, object> additionalPropertiesDictionary = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("triggerRunId"))
 32                {
 033                    triggerRunId = property.Value.GetString();
 034                    continue;
 35                }
 036                if (property.NameEquals("triggerName"))
 37                {
 038                    triggerName = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("triggerType"))
 42                {
 043                    triggerType = property.Value.GetString();
 044                    continue;
 45                }
 046                if (property.NameEquals("triggerRunTimestamp"))
 47                {
 048                    triggerRunTimestamp = property.Value.GetDateTimeOffset("O");
 049                    continue;
 50                }
 051                if (property.NameEquals("status"))
 52                {
 053                    status = new TriggerRunStatus(property.Value.GetString());
 054                    continue;
 55                }
 056                if (property.NameEquals("message"))
 57                {
 058                    message = property.Value.GetString();
 059                    continue;
 60                }
 061                if (property.NameEquals("properties"))
 62                {
 063                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 064                    foreach (var property0 in property.Value.EnumerateObject())
 65                    {
 066                        dictionary.Add(property0.Name, property0.Value.GetString());
 67                    }
 068                    properties = dictionary;
 069                    continue;
 70                }
 071                if (property.NameEquals("triggeredPipelines"))
 72                {
 073                    Dictionary<string, string> dictionary = new Dictionary<string, string>();
 074                    foreach (var property0 in property.Value.EnumerateObject())
 75                    {
 076                        dictionary.Add(property0.Name, property0.Value.GetString());
 77                    }
 078                    triggeredPipelines = dictionary;
 079                    continue;
 80                }
 081                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 082                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 83            }
 084            additionalProperties = additionalPropertiesDictionary;
 085            return new TriggerRun(triggerRunId.Value, triggerName.Value, triggerType.Value, Optional.ToNullable(triggerR
 86        }
 87    }
 88}