< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_LinkedServiceName()-0%100%
get_Path()-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%
DeserializeLogStorageSettings(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\LogStorageSettings.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> Log storage settings. </summary>
 16    public partial class LogStorageSettings : IDictionary<string, object>
 17    {
 18        /// <summary> Initializes a new instance of LogStorageSettings. </summary>
 19        /// <param name="linkedServiceName"> Log storage linked service reference. </param>
 20        /// <exception cref="ArgumentNullException"> <paramref name="linkedServiceName"/> is null. </exception>
 021        public LogStorageSettings(LinkedServiceReference linkedServiceName)
 22        {
 023            if (linkedServiceName == null)
 24            {
 025                throw new ArgumentNullException(nameof(linkedServiceName));
 26            }
 27
 028            LinkedServiceName = linkedServiceName;
 029            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 030        }
 31
 32        /// <summary> Initializes a new instance of LogStorageSettings. </summary>
 33        /// <param name="linkedServiceName"> Log storage linked service reference. </param>
 34        /// <param name="path"> The path to storage for storing detailed logs of activity execution. Type: string (or Ex
 35        /// <param name="additionalProperties"> . </param>
 036        internal LogStorageSettings(LinkedServiceReference linkedServiceName, object path, IDictionary<string, object> a
 37        {
 038            LinkedServiceName = linkedServiceName;
 039            Path = path;
 040            AdditionalProperties = additionalProperties;
 041        }
 42
 43        /// <summary> Log storage linked service reference. </summary>
 044        public LinkedServiceReference LinkedServiceName { get; set; }
 45        /// <summary> The path to storage for storing detailed logs of activity execution. Type: string (or Expression w
 046        public object Path { 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\LogStorageSettings.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 LogStorageSettings : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            writer.WritePropertyName("linkedServiceName");
 020            writer.WriteObjectValue(LinkedServiceName);
 021            if (Optional.IsDefined(Path))
 22            {
 023                writer.WritePropertyName("path");
 024                writer.WriteObjectValue(Path);
 25            }
 026            foreach (var item in AdditionalProperties)
 27            {
 028                writer.WritePropertyName(item.Key);
 029                writer.WriteObjectValue(item.Value);
 30            }
 031            writer.WriteEndObject();
 032        }
 33
 34        internal static LogStorageSettings DeserializeLogStorageSettings(JsonElement element)
 35        {
 036            LinkedServiceReference linkedServiceName = default;
 037            Optional<object> path = default;
 038            IDictionary<string, object> additionalProperties = default;
 039            Dictionary<string, object> additionalPropertiesDictionary = default;
 040            foreach (var property in element.EnumerateObject())
 41            {
 042                if (property.NameEquals("linkedServiceName"))
 43                {
 044                    linkedServiceName = LinkedServiceReference.DeserializeLinkedServiceReference(property.Value);
 045                    continue;
 46                }
 047                if (property.NameEquals("path"))
 48                {
 049                    path = property.Value.GetObject();
 050                    continue;
 51                }
 052                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 053                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 54            }
 055            additionalProperties = additionalPropertiesDictionary;
 056            return new LogStorageSettings(linkedServiceName, path.Value, additionalProperties);
 57        }
 58    }
 59}