< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
get_SessionId()-0%100%
get_DataFlow()-0%100%
get_Datasets()-0%100%
get_LinkedServices()-0%100%
get_Staging()-0%100%
get_DebugSettings()-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.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.get_Count()-0%100%
Add(...)-0%100%
Remove(...)-0%100%
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.get_IsReadOnly()-0%100%
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Add(...)-0%100%
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove(...)-0%100%
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains(...)-0%100%
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.CopyTo(...)-0%100%
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Clear()-0%100%
get_Item(...)-0%100%
set_Item(...)-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\DataFlowDebugPackage.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;
 9using System.Collections.Generic;
 10using Azure.Core;
 11
 12namespace Azure.Analytics.Synapse.Artifacts.Models
 13{
 14    /// <summary> Request body structure for starting data flow debug session. </summary>
 15    public partial class DataFlowDebugPackage : IDictionary<string, object>
 16    {
 17        /// <summary> Initializes a new instance of DataFlowDebugPackage. </summary>
 018        public DataFlowDebugPackage()
 19        {
 020            Datasets = new ChangeTrackingList<DatasetDebugResource>();
 021            LinkedServices = new ChangeTrackingList<LinkedServiceDebugResource>();
 022            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 023        }
 24
 25        /// <summary> The ID of data flow debug session. </summary>
 026        public string SessionId { get; set; }
 27        /// <summary> Data flow instance. </summary>
 028        public DataFlowDebugResource DataFlow { get; set; }
 29        /// <summary> List of datasets. </summary>
 030        public IList<DatasetDebugResource> Datasets { get; }
 31        /// <summary> List of linked services. </summary>
 032        public IList<LinkedServiceDebugResource> LinkedServices { get; }
 33        /// <summary> Staging info for debug session. </summary>
 034        public DataFlowStagingInfo Staging { get; set; }
 35        /// <summary> Data flow debug settings. </summary>
 036        public DataFlowDebugPackageDebugSettings DebugSettings { get; set; }
 037        internal IDictionary<string, object> AdditionalProperties { get; }
 38        /// <inheritdoc />
 039        public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator();
 40        /// <inheritdoc />
 041        IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator();
 42        /// <inheritdoc />
 043        public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value);
 44        /// <inheritdoc />
 045        public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key);
 46        /// <inheritdoc />
 047        public ICollection<string> Keys => AdditionalProperties.Keys;
 48        /// <inheritdoc />
 049        public ICollection<object> Values => AdditionalProperties.Values;
 50        /// <inheritdoc />
 051        int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count;
 52        /// <inheritdoc />
 053        public void Add(string key, object value) => AdditionalProperties.Add(key, value);
 54        /// <inheritdoc />
 055        public bool Remove(string key) => AdditionalProperties.Remove(key);
 56        /// <inheritdoc />
 057        bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly;
 58        /// <inheritdoc />
 059        void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A
 60        /// <inheritdoc />
 061        bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie
 62        /// <inheritdoc />
 063        bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert
 64        /// <inheritdoc />
 065        void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) =>
 66        /// <inheritdoc />
 067        void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear();
 68        /// <inheritdoc />
 69        public object this[string key]
 70        {
 071            get => AdditionalProperties[key];
 072            set => AdditionalProperties[key] = value;
 73        }
 74    }
 75}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowDebugPackage.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 DataFlowDebugPackage : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsDefined(SessionId))
 19            {
 020                writer.WritePropertyName("sessionId");
 021                writer.WriteStringValue(SessionId);
 22            }
 023            if (Optional.IsDefined(DataFlow))
 24            {
 025                writer.WritePropertyName("dataFlow");
 026                writer.WriteObjectValue(DataFlow);
 27            }
 028            if (Optional.IsCollectionDefined(Datasets))
 29            {
 030                writer.WritePropertyName("datasets");
 031                writer.WriteStartArray();
 032                foreach (var item in Datasets)
 33                {
 034                    writer.WriteObjectValue(item);
 35                }
 036                writer.WriteEndArray();
 37            }
 038            if (Optional.IsCollectionDefined(LinkedServices))
 39            {
 040                writer.WritePropertyName("linkedServices");
 041                writer.WriteStartArray();
 042                foreach (var item in LinkedServices)
 43                {
 044                    writer.WriteObjectValue(item);
 45                }
 046                writer.WriteEndArray();
 47            }
 048            if (Optional.IsDefined(Staging))
 49            {
 050                writer.WritePropertyName("staging");
 051                writer.WriteObjectValue(Staging);
 52            }
 053            if (Optional.IsDefined(DebugSettings))
 54            {
 055                writer.WritePropertyName("debugSettings");
 056                writer.WriteObjectValue(DebugSettings);
 57            }
 058            foreach (var item in AdditionalProperties)
 59            {
 060                writer.WritePropertyName(item.Key);
 061                writer.WriteObjectValue(item.Value);
 62            }
 063            writer.WriteEndObject();
 064        }
 65    }
 66}