< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.DataFlowStagingInfo
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowStagingInfo.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowStagingInfo.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_LinkedService()-0%100%
get_FolderPath()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeDataFlowStagingInfo(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DataFlowStagingInfo.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> Staging info for execute data flow activity. </summary>
 11    public partial class DataFlowStagingInfo
 12    {
 13        /// <summary> Initializes a new instance of DataFlowStagingInfo. </summary>
 014        public DataFlowStagingInfo()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of DataFlowStagingInfo. </summary>
 19        /// <param name="linkedService"> Staging linked service reference. </param>
 20        /// <param name="folderPath"> Folder path for staging blob. </param>
 021        internal DataFlowStagingInfo(LinkedServiceReference linkedService, string folderPath)
 22        {
 023            LinkedService = linkedService;
 024            FolderPath = folderPath;
 025        }
 26
 27        /// <summary> Staging linked service reference. </summary>
 028        public LinkedServiceReference LinkedService { get; set; }
 29        /// <summary> Folder path for staging blob. </summary>
 030        public string FolderPath { get; set; }
 31    }
 32}

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