< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_ComputeType()-0%100%
get_CoreCount()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeExecuteDataFlowActivityTypePropertiesCompute(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ExecuteDataFlowActivityTypePropertiesCompute.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
 8namespace Azure.Analytics.Synapse.Artifacts.Models
 9{
 10    /// <summary> Compute properties for data flow activity. </summary>
 11    public partial class ExecuteDataFlowActivityTypePropertiesCompute
 12    {
 13        /// <summary> Initializes a new instance of ExecuteDataFlowActivityTypePropertiesCompute. </summary>
 014        public ExecuteDataFlowActivityTypePropertiesCompute()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ExecuteDataFlowActivityTypePropertiesCompute. </summary>
 19        /// <param name="computeType"> Compute type of the cluster which will execute data flow job. </param>
 20        /// <param name="coreCount"> Core count of the cluster which will execute data flow job. Supported values are: 8
 021        internal ExecuteDataFlowActivityTypePropertiesCompute(DataFlowComputeType? computeType, int? coreCount)
 22        {
 023            ComputeType = computeType;
 024            CoreCount = coreCount;
 025        }
 26
 27        /// <summary> Compute type of the cluster which will execute data flow job. </summary>
 028        public DataFlowComputeType? ComputeType { get; set; }
 29        /// <summary> Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 8
 030        public int? CoreCount { get; set; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ExecuteDataFlowActivityTypePropertiesCompute.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 ExecuteDataFlowActivityTypePropertiesCompute : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsDefined(ComputeType))
 19            {
 020                writer.WritePropertyName("computeType");
 021                writer.WriteStringValue(ComputeType.Value.ToString());
 22            }
 023            if (Optional.IsDefined(CoreCount))
 24            {
 025                writer.WritePropertyName("coreCount");
 026                writer.WriteNumberValue(CoreCount.Value);
 27            }
 028            writer.WriteEndObject();
 029        }
 30
 31        internal static ExecuteDataFlowActivityTypePropertiesCompute DeserializeExecuteDataFlowActivityTypePropertiesCom
 32        {
 033            Optional<DataFlowComputeType> computeType = default;
 034            Optional<int> coreCount = default;
 035            foreach (var property in element.EnumerateObject())
 36            {
 037                if (property.NameEquals("computeType"))
 38                {
 039                    computeType = new DataFlowComputeType(property.Value.GetString());
 040                    continue;
 41                }
 042                if (property.NameEquals("coreCount"))
 43                {
 044                    coreCount = property.Value.GetInt32();
 45                    continue;
 46                }
 47            }
 048            return new ExecuteDataFlowActivityTypePropertiesCompute(Optional.ToNullable(computeType), Optional.ToNullabl
 49        }
 50    }
 51}