< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_Id()-0%100%
get_InvokedByType()-0%100%
DeserializePipelineRunInvokedBy(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineRunInvokedBy.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
 8namespace Azure.Analytics.Synapse.Artifacts.Models
 9{
 10    /// <summary> Provides entity name and id that started the pipeline run. </summary>
 11    public partial class PipelineRunInvokedBy
 12    {
 13        /// <summary> Initializes a new instance of PipelineRunInvokedBy. </summary>
 014        internal PipelineRunInvokedBy()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of PipelineRunInvokedBy. </summary>
 19        /// <param name="name"> Name of the entity that started the pipeline run. </param>
 20        /// <param name="id"> The ID of the entity that started the run. </param>
 21        /// <param name="invokedByType"> The type of the entity that started the run. </param>
 022        internal PipelineRunInvokedBy(string name, string id, string invokedByType)
 23        {
 024            Name = name;
 025            Id = id;
 026            InvokedByType = invokedByType;
 027        }
 28
 29        /// <summary> Name of the entity that started the pipeline run. </summary>
 030        public string Name { get; }
 31        /// <summary> The ID of the entity that started the run. </summary>
 032        public string Id { get; }
 33        /// <summary> The type of the entity that started the run. </summary>
 034        public string InvokedByType { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\PipelineRunInvokedBy.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 PipelineRunInvokedBy
 14    {
 15        internal static PipelineRunInvokedBy DeserializePipelineRunInvokedBy(JsonElement element)
 16        {
 017            Optional<string> name = default;
 018            Optional<string> id = default;
 019            Optional<string> invokedByType = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("name"))
 23                {
 024                    name = property.Value.GetString();
 025                    continue;
 26                }
 027                if (property.NameEquals("id"))
 28                {
 029                    id = property.Value.GetString();
 030                    continue;
 31                }
 032                if (property.NameEquals("invokedByType"))
 33                {
 034                    invokedByType = property.Value.GetString();
 35                    continue;
 36                }
 37            }
 038            return new PipelineRunInvokedBy(name.Value, id.Value, invokedByType.Value);
 39        }
 40    }
 41}