< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_Type()-0%100%
get_ReferenceName()-0%100%
get_DatasetParameters()-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%
DeserializeDataFlowReference(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowReference.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> Data flow reference type. </summary>
 16    public partial class DataFlowReference : IDictionary<string, object>
 17    {
 18        /// <summary> Initializes a new instance of DataFlowReference. </summary>
 19        /// <param name="type"> Data flow reference type. </param>
 20        /// <param name="referenceName"> Reference data flow name. </param>
 21        /// <exception cref="ArgumentNullException"> <paramref name="referenceName"/> is null. </exception>
 022        public DataFlowReference(DataFlowReferenceType type, string referenceName)
 23        {
 024            if (referenceName == null)
 25            {
 026                throw new ArgumentNullException(nameof(referenceName));
 27            }
 28
 029            Type = type;
 030            ReferenceName = referenceName;
 031            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 032        }
 33
 34        /// <summary> Initializes a new instance of DataFlowReference. </summary>
 35        /// <param name="type"> Data flow reference type. </param>
 36        /// <param name="referenceName"> Reference data flow name. </param>
 37        /// <param name="datasetParameters"> Reference data flow parameters from dataset. </param>
 38        /// <param name="additionalProperties"> . </param>
 039        internal DataFlowReference(DataFlowReferenceType type, string referenceName, object datasetParameters, IDictiona
 40        {
 041            Type = type;
 042            ReferenceName = referenceName;
 043            DatasetParameters = datasetParameters;
 044            AdditionalProperties = additionalProperties;
 045        }
 46
 47        /// <summary> Data flow reference type. </summary>
 048        public DataFlowReferenceType Type { get; set; }
 49        /// <summary> Reference data flow name. </summary>
 050        public string ReferenceName { get; set; }
 51        /// <summary> Reference data flow parameters from dataset. </summary>
 052        public object DatasetParameters { get; set; }
 053        internal IDictionary<string, object> AdditionalProperties { get; }
 54        /// <inheritdoc />
 055        public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator();
 56        /// <inheritdoc />
 057        IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator();
 58        /// <inheritdoc />
 059        public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value);
 60        /// <inheritdoc />
 061        public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key);
 62        /// <inheritdoc />
 063        public ICollection<string> Keys => AdditionalProperties.Keys;
 64        /// <inheritdoc />
 065        public ICollection<object> Values => AdditionalProperties.Values;
 66        /// <inheritdoc />
 067        int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count;
 68        /// <inheritdoc />
 069        public void Add(string key, object value) => AdditionalProperties.Add(key, value);
 70        /// <inheritdoc />
 071        public bool Remove(string key) => AdditionalProperties.Remove(key);
 72        /// <inheritdoc />
 073        bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly;
 74        /// <inheritdoc />
 075        void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A
 76        /// <inheritdoc />
 077        bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie
 78        /// <inheritdoc />
 079        bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert
 80        /// <inheritdoc />
 081        void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) =>
 82        /// <inheritdoc />
 083        void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear();
 84        /// <inheritdoc />
 85        public object this[string key]
 86        {
 087            get => AdditionalProperties[key];
 088            set => AdditionalProperties[key] = value;
 89        }
 90    }
 91}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowReference.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 DataFlowReference : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            writer.WritePropertyName("type");
 020            writer.WriteStringValue(Type.ToString());
 021            writer.WritePropertyName("referenceName");
 022            writer.WriteStringValue(ReferenceName);
 023            if (Optional.IsDefined(DatasetParameters))
 24            {
 025                writer.WritePropertyName("datasetParameters");
 026                writer.WriteObjectValue(DatasetParameters);
 27            }
 028            foreach (var item in AdditionalProperties)
 29            {
 030                writer.WritePropertyName(item.Key);
 031                writer.WriteObjectValue(item.Value);
 32            }
 033            writer.WriteEndObject();
 034        }
 35
 36        internal static DataFlowReference DeserializeDataFlowReference(JsonElement element)
 37        {
 038            DataFlowReferenceType type = default;
 039            string referenceName = default;
 040            Optional<object> datasetParameters = default;
 041            IDictionary<string, object> additionalProperties = default;
 042            Dictionary<string, object> additionalPropertiesDictionary = default;
 043            foreach (var property in element.EnumerateObject())
 44            {
 045                if (property.NameEquals("type"))
 46                {
 047                    type = new DataFlowReferenceType(property.Value.GetString());
 048                    continue;
 49                }
 050                if (property.NameEquals("referenceName"))
 51                {
 052                    referenceName = property.Value.GetString();
 053                    continue;
 54                }
 055                if (property.NameEquals("datasetParameters"))
 56                {
 057                    datasetParameters = property.Value.GetObject();
 058                    continue;
 59                }
 060                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 061                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 62            }
 063            additionalProperties = additionalPropertiesDictionary;
 064            return new DataFlowReference(type, referenceName, datasetParameters.Value, additionalProperties);
 65        }
 66    }
 67}