< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PipelineReference()-0%100%
get_Parameters()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeTriggerPipelineReference(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerPipelineReference.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.Collections.Generic;
 9using Azure.Core;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    /// <summary> Pipeline that needs to be triggered with the given parameters. </summary>
 14    public partial class TriggerPipelineReference
 15    {
 16        /// <summary> Initializes a new instance of TriggerPipelineReference. </summary>
 017        public TriggerPipelineReference()
 18        {
 019            Parameters = new ChangeTrackingDictionary<string, object>();
 020        }
 21
 22        /// <summary> Initializes a new instance of TriggerPipelineReference. </summary>
 23        /// <param name="pipelineReference"> Pipeline reference. </param>
 24        /// <param name="parameters"> Pipeline parameters. </param>
 025        internal TriggerPipelineReference(PipelineReference pipelineReference, IDictionary<string, object> parameters)
 26        {
 027            PipelineReference = pipelineReference;
 028            Parameters = parameters;
 029        }
 30
 31        /// <summary> Pipeline reference. </summary>
 032        public PipelineReference PipelineReference { get; set; }
 33        /// <summary> Pipeline parameters. </summary>
 034        public IDictionary<string, object> Parameters { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerPipelineReference.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.Analytics.Synapse.Artifacts.Models
 13{
 14    public partial class TriggerPipelineReference : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            if (Optional.IsDefined(PipelineReference))
 20            {
 021                writer.WritePropertyName("pipelineReference");
 022                writer.WriteObjectValue(PipelineReference);
 23            }
 024            if (Optional.IsCollectionDefined(Parameters))
 25            {
 026                writer.WritePropertyName("parameters");
 027                writer.WriteStartObject();
 028                foreach (var item in Parameters)
 29                {
 030                    writer.WritePropertyName(item.Key);
 031                    writer.WriteObjectValue(item.Value);
 32                }
 033                writer.WriteEndObject();
 34            }
 035            writer.WriteEndObject();
 036        }
 37
 38        internal static TriggerPipelineReference DeserializeTriggerPipelineReference(JsonElement element)
 39        {
 040            Optional<PipelineReference> pipelineReference = default;
 041            Optional<IDictionary<string, object>> parameters = default;
 042            foreach (var property in element.EnumerateObject())
 43            {
 044                if (property.NameEquals("pipelineReference"))
 45                {
 046                    pipelineReference = PipelineReference.DeserializePipelineReference(property.Value);
 047                    continue;
 48                }
 049                if (property.NameEquals("parameters"))
 50                {
 051                    Dictionary<string, object> dictionary = new Dictionary<string, object>();
 052                    foreach (var property0 in property.Value.EnumerateObject())
 53                    {
 054                        dictionary.Add(property0.Name, property0.Value.GetObject());
 55                    }
 056                    parameters = dictionary;
 57                    continue;
 58                }
 59            }
 060            return new TriggerPipelineReference(pipelineReference.Value, Optional.ToDictionary(parameters));
 61        }
 62    }
 63}