< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_DataFlowName()-0%100%
get_ComputeType()-0%100%
get_CoreCount()-0%100%
get_NodeCount()-0%100%
get_IntegrationRuntimeName()-0%100%
get_SessionId()-0%100%
get_StartTime()-0%100%
get_TimeToLiveInMinutes()-0%100%
get_LastActivityTime()-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.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.get_Count()-0%100%
get_Item(...)-0%100%
DeserializeDataFlowDebugSessionInfo(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowDebugSessionInfo.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> Data flow debug session info. </summary>
 15    public partial class DataFlowDebugSessionInfo : IReadOnlyDictionary<string, object>
 16    {
 17        /// <summary> Initializes a new instance of DataFlowDebugSessionInfo. </summary>
 018        internal DataFlowDebugSessionInfo()
 19        {
 020            AdditionalProperties = new ChangeTrackingDictionary<string, object>();
 021        }
 22
 23        /// <summary> Initializes a new instance of DataFlowDebugSessionInfo. </summary>
 24        /// <param name="dataFlowName"> The name of the data flow. </param>
 25        /// <param name="computeType"> Compute type of the cluster. </param>
 26        /// <param name="coreCount"> Core count of the cluster. </param>
 27        /// <param name="nodeCount"> Node count of the cluster. (deprecated property). </param>
 28        /// <param name="integrationRuntimeName"> Attached integration runtime name of data flow debug session. </param>
 29        /// <param name="sessionId"> The ID of data flow debug session. </param>
 30        /// <param name="startTime"> Start time of data flow debug session. </param>
 31        /// <param name="timeToLiveInMinutes"> Compute type of the cluster. </param>
 32        /// <param name="lastActivityTime"> Last activity time of data flow debug session. </param>
 33        /// <param name="additionalProperties"> . </param>
 034        internal DataFlowDebugSessionInfo(string dataFlowName, string computeType, int? coreCount, int? nodeCount, strin
 35        {
 036            DataFlowName = dataFlowName;
 037            ComputeType = computeType;
 038            CoreCount = coreCount;
 039            NodeCount = nodeCount;
 040            IntegrationRuntimeName = integrationRuntimeName;
 041            SessionId = sessionId;
 042            StartTime = startTime;
 043            TimeToLiveInMinutes = timeToLiveInMinutes;
 044            LastActivityTime = lastActivityTime;
 045            AdditionalProperties = additionalProperties;
 046        }
 47
 48        /// <summary> The name of the data flow. </summary>
 049        public string DataFlowName { get; }
 50        /// <summary> Compute type of the cluster. </summary>
 051        public string ComputeType { get; }
 52        /// <summary> Core count of the cluster. </summary>
 053        public int? CoreCount { get; }
 54        /// <summary> Node count of the cluster. (deprecated property). </summary>
 055        public int? NodeCount { get; }
 56        /// <summary> Attached integration runtime name of data flow debug session. </summary>
 057        public string IntegrationRuntimeName { get; }
 58        /// <summary> The ID of data flow debug session. </summary>
 059        public string SessionId { get; }
 60        /// <summary> Start time of data flow debug session. </summary>
 061        public string StartTime { get; }
 62        /// <summary> Compute type of the cluster. </summary>
 063        public int? TimeToLiveInMinutes { get; }
 64        /// <summary> Last activity time of data flow debug session. </summary>
 065        public string LastActivityTime { get; }
 066        internal IReadOnlyDictionary<string, object> AdditionalProperties { get; }
 67        /// <inheritdoc />
 068        public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator();
 69        /// <inheritdoc />
 070        IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator();
 71        /// <inheritdoc />
 072        public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value);
 73        /// <inheritdoc />
 074        public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key);
 75        /// <inheritdoc />
 076        public IEnumerable<string> Keys => AdditionalProperties.Keys;
 77        /// <inheritdoc />
 078        public IEnumerable<object> Values => AdditionalProperties.Values;
 79        /// <inheritdoc />
 080        int IReadOnlyCollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count;
 81        /// <inheritdoc />
 82        public object this[string key]
 83        {
 084            get => AdditionalProperties[key];
 85        }
 86    }
 87}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowDebugSessionInfo.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 DataFlowDebugSessionInfo
 15    {
 16        internal static DataFlowDebugSessionInfo DeserializeDataFlowDebugSessionInfo(JsonElement element)
 17        {
 018            Optional<string> dataFlowName = default;
 019            Optional<string> computeType = default;
 020            Optional<int> coreCount = default;
 021            Optional<int> nodeCount = default;
 022            Optional<string> integrationRuntimeName = default;
 023            Optional<string> sessionId = default;
 024            Optional<string> startTime = default;
 025            Optional<int> timeToLiveInMinutes = default;
 026            Optional<string> lastActivityTime = default;
 027            IReadOnlyDictionary<string, object> additionalProperties = default;
 028            Dictionary<string, object> additionalPropertiesDictionary = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("dataFlowName"))
 32                {
 033                    dataFlowName = property.Value.GetString();
 034                    continue;
 35                }
 036                if (property.NameEquals("computeType"))
 37                {
 038                    computeType = property.Value.GetString();
 039                    continue;
 40                }
 041                if (property.NameEquals("coreCount"))
 42                {
 043                    coreCount = property.Value.GetInt32();
 044                    continue;
 45                }
 046                if (property.NameEquals("nodeCount"))
 47                {
 048                    nodeCount = property.Value.GetInt32();
 049                    continue;
 50                }
 051                if (property.NameEquals("integrationRuntimeName"))
 52                {
 053                    integrationRuntimeName = property.Value.GetString();
 054                    continue;
 55                }
 056                if (property.NameEquals("sessionId"))
 57                {
 058                    sessionId = property.Value.GetString();
 059                    continue;
 60                }
 061                if (property.NameEquals("startTime"))
 62                {
 063                    startTime = property.Value.GetString();
 064                    continue;
 65                }
 066                if (property.NameEquals("timeToLiveInMinutes"))
 67                {
 068                    timeToLiveInMinutes = property.Value.GetInt32();
 069                    continue;
 70                }
 071                if (property.NameEquals("lastActivityTime"))
 72                {
 073                    lastActivityTime = property.Value.GetString();
 074                    continue;
 75                }
 076                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 077                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 78            }
 079            additionalProperties = additionalPropertiesDictionary;
 080            return new DataFlowDebugSessionInfo(dataFlowName.Value, computeType.Value, Optional.ToNullable(coreCount), O
 81        }
 82    }
 83}