< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%0%
get_Type()-0%100%
get_SourceRetryCount()-0%100%
get_SourceRetryWait()-0%100%
get_MaxConcurrentConnections()-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%
DeserializeCopySource(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\CopySource.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> A copy activity source. </summary>
 15    public partial class CopySource : IDictionary<string, object>
 16    {
 17        /// <summary> Initializes a new instance of CopySource. </summary>
 018        public CopySource()
 19        {
 020            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 021            Type = "CopySource";
 022        }
 23
 24        /// <summary> Initializes a new instance of CopySource. </summary>
 25        /// <param name="type"> Copy source type. </param>
 26        /// <param name="sourceRetryCount"> Source retry count. Type: integer (or Expression with resultType integer). <
 27        /// <param name="sourceRetryWait"> Source retry wait. Type: string (or Expression with resultType string), patte
 28        /// <param name="maxConcurrentConnections"> The maximum concurrent connection count for the source data store. T
 29        /// <param name="additionalProperties"> . </param>
 030        internal CopySource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnection
 31        {
 032            Type = type ?? "CopySource";
 033            SourceRetryCount = sourceRetryCount;
 034            SourceRetryWait = sourceRetryWait;
 035            MaxConcurrentConnections = maxConcurrentConnections;
 036            AdditionalProperties = additionalProperties;
 037        }
 38
 39        /// <summary> Copy source type. </summary>
 040        internal string Type { get; set; }
 41        /// <summary> Source retry count. Type: integer (or Expression with resultType integer). </summary>
 042        public object SourceRetryCount { get; set; }
 43        /// <summary> Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):
 044        public object SourceRetryWait { get; set; }
 45        /// <summary> The maximum concurrent connection count for the source data store. Type: integer (or Expression wi
 046        public object MaxConcurrentConnections { get; set; }
 047        internal IDictionary<string, object> AdditionalProperties { get; }
 48        /// <inheritdoc />
 049        public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator();
 50        /// <inheritdoc />
 051        IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator();
 52        /// <inheritdoc />
 053        public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value);
 54        /// <inheritdoc />
 055        public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key);
 56        /// <inheritdoc />
 057        public ICollection<string> Keys => AdditionalProperties.Keys;
 58        /// <inheritdoc />
 059        public ICollection<object> Values => AdditionalProperties.Values;
 60        /// <inheritdoc />
 061        int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count;
 62        /// <inheritdoc />
 063        public void Add(string key, object value) => AdditionalProperties.Add(key, value);
 64        /// <inheritdoc />
 065        public bool Remove(string key) => AdditionalProperties.Remove(key);
 66        /// <inheritdoc />
 067        bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly;
 68        /// <inheritdoc />
 069        void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A
 70        /// <inheritdoc />
 071        bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie
 72        /// <inheritdoc />
 073        bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert
 74        /// <inheritdoc />
 075        void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) =>
 76        /// <inheritdoc />
 077        void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear();
 78        /// <inheritdoc />
 79        public object this[string key]
 80        {
 081            get => AdditionalProperties[key];
 082            set => AdditionalProperties[key] = value;
 83        }
 84    }
 85}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\CopySource.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 CopySource : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            writer.WritePropertyName("type");
 020            writer.WriteStringValue(Type);
 021            if (Optional.IsDefined(SourceRetryCount))
 22            {
 023                writer.WritePropertyName("sourceRetryCount");
 024                writer.WriteObjectValue(SourceRetryCount);
 25            }
 026            if (Optional.IsDefined(SourceRetryWait))
 27            {
 028                writer.WritePropertyName("sourceRetryWait");
 029                writer.WriteObjectValue(SourceRetryWait);
 30            }
 031            if (Optional.IsDefined(MaxConcurrentConnections))
 32            {
 033                writer.WritePropertyName("maxConcurrentConnections");
 034                writer.WriteObjectValue(MaxConcurrentConnections);
 35            }
 036            foreach (var item in AdditionalProperties)
 37            {
 038                writer.WritePropertyName(item.Key);
 039                writer.WriteObjectValue(item.Value);
 40            }
 041            writer.WriteEndObject();
 042        }
 43
 44        internal static CopySource DeserializeCopySource(JsonElement element)
 45        {
 046            string type = default;
 047            Optional<object> sourceRetryCount = default;
 048            Optional<object> sourceRetryWait = default;
 049            Optional<object> maxConcurrentConnections = default;
 050            IDictionary<string, object> additionalProperties = default;
 051            Dictionary<string, object> additionalPropertiesDictionary = default;
 052            foreach (var property in element.EnumerateObject())
 53            {
 054                if (property.NameEquals("type"))
 55                {
 056                    type = property.Value.GetString();
 057                    continue;
 58                }
 059                if (property.NameEquals("sourceRetryCount"))
 60                {
 061                    sourceRetryCount = property.Value.GetObject();
 062                    continue;
 63                }
 064                if (property.NameEquals("sourceRetryWait"))
 65                {
 066                    sourceRetryWait = property.Value.GetObject();
 067                    continue;
 68                }
 069                if (property.NameEquals("maxConcurrentConnections"))
 70                {
 071                    maxConcurrentConnections = property.Value.GetObject();
 072                    continue;
 73                }
 074                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 075                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 76            }
 077            additionalProperties = additionalPropertiesDictionary;
 078            return new CopySource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, a
 79        }
 80    }
 81}