< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%0%
get_DataFlow()-0%100%
get_Staging()-0%100%
get_IntegrationRuntime()-0%100%
get_Compute()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeExecuteDataFlowActivity(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ExecuteDataFlowActivity.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.Generic;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    /// <summary> Execute data flow activity. </summary>
 14    public partial class ExecuteDataFlowActivity : ExecutionActivity
 15    {
 16        /// <summary> Initializes a new instance of ExecuteDataFlowActivity. </summary>
 17        /// <param name="name"> Activity name. </param>
 18        /// <param name="dataFlow"> Data flow reference. </param>
 19        /// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="dataFlow"/> is null. </e
 020        public ExecuteDataFlowActivity(string name, DataFlowReference dataFlow) : base(name)
 21        {
 022            if (name == null)
 23            {
 024                throw new ArgumentNullException(nameof(name));
 25            }
 026            if (dataFlow == null)
 27            {
 028                throw new ArgumentNullException(nameof(dataFlow));
 29            }
 30
 031            DataFlow = dataFlow;
 032            Type = "ExecuteDataFlow";
 033        }
 34
 35        /// <summary> Initializes a new instance of ExecuteDataFlowActivity. </summary>
 36        /// <param name="name"> Activity name. </param>
 37        /// <param name="type"> Type of activity. </param>
 38        /// <param name="description"> Activity description. </param>
 39        /// <param name="dependsOn"> Activity depends on condition. </param>
 40        /// <param name="userProperties"> Activity user properties. </param>
 41        /// <param name="additionalProperties"> . </param>
 42        /// <param name="linkedServiceName"> Linked service reference. </param>
 43        /// <param name="policy"> Activity policy. </param>
 44        /// <param name="dataFlow"> Data flow reference. </param>
 45        /// <param name="staging"> Staging info for execute data flow activity. </param>
 46        /// <param name="integrationRuntime"> The integration runtime reference. </param>
 47        /// <param name="compute"> Compute properties for data flow activity. </param>
 048        internal ExecuteDataFlowActivity(string name, string type, string description, IList<ActivityDependency> depends
 49        {
 050            DataFlow = dataFlow;
 051            Staging = staging;
 052            IntegrationRuntime = integrationRuntime;
 053            Compute = compute;
 054            Type = type ?? "ExecuteDataFlow";
 055        }
 56
 57        /// <summary> Data flow reference. </summary>
 058        public DataFlowReference DataFlow { get; set; }
 59        /// <summary> Staging info for execute data flow activity. </summary>
 060        public DataFlowStagingInfo Staging { get; set; }
 61        /// <summary> The integration runtime reference. </summary>
 062        public IntegrationRuntimeReference IntegrationRuntime { get; set; }
 63        /// <summary> Compute properties for data flow activity. </summary>
 064        public ExecuteDataFlowActivityTypePropertiesCompute Compute { get; set; }
 65    }
 66}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ExecuteDataFlowActivity.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 ExecuteDataFlowActivity : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            if (Optional.IsDefined(LinkedServiceName))
 20            {
 021                writer.WritePropertyName("linkedServiceName");
 022                writer.WriteObjectValue(LinkedServiceName);
 23            }
 024            if (Optional.IsDefined(Policy))
 25            {
 026                writer.WritePropertyName("policy");
 027                writer.WriteObjectValue(Policy);
 28            }
 029            writer.WritePropertyName("name");
 030            writer.WriteStringValue(Name);
 031            writer.WritePropertyName("type");
 032            writer.WriteStringValue(Type);
 033            if (Optional.IsDefined(Description))
 34            {
 035                writer.WritePropertyName("description");
 036                writer.WriteStringValue(Description);
 37            }
 038            if (Optional.IsCollectionDefined(DependsOn))
 39            {
 040                writer.WritePropertyName("dependsOn");
 041                writer.WriteStartArray();
 042                foreach (var item in DependsOn)
 43                {
 044                    writer.WriteObjectValue(item);
 45                }
 046                writer.WriteEndArray();
 47            }
 048            if (Optional.IsCollectionDefined(UserProperties))
 49            {
 050                writer.WritePropertyName("userProperties");
 051                writer.WriteStartArray();
 052                foreach (var item in UserProperties)
 53                {
 054                    writer.WriteObjectValue(item);
 55                }
 056                writer.WriteEndArray();
 57            }
 058            writer.WritePropertyName("typeProperties");
 059            writer.WriteStartObject();
 060            writer.WritePropertyName("dataFlow");
 061            writer.WriteObjectValue(DataFlow);
 062            if (Optional.IsDefined(Staging))
 63            {
 064                writer.WritePropertyName("staging");
 065                writer.WriteObjectValue(Staging);
 66            }
 067            if (Optional.IsDefined(IntegrationRuntime))
 68            {
 069                writer.WritePropertyName("integrationRuntime");
 070                writer.WriteObjectValue(IntegrationRuntime);
 71            }
 072            if (Optional.IsDefined(Compute))
 73            {
 074                writer.WritePropertyName("compute");
 075                writer.WriteObjectValue(Compute);
 76            }
 077            writer.WriteEndObject();
 078            foreach (var item in AdditionalProperties)
 79            {
 080                writer.WritePropertyName(item.Key);
 081                writer.WriteObjectValue(item.Value);
 82            }
 083            writer.WriteEndObject();
 084        }
 85
 86        internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonElement element)
 87        {
 088            Optional<LinkedServiceReference> linkedServiceName = default;
 089            Optional<ActivityPolicy> policy = default;
 090            string name = default;
 091            string type = default;
 092            Optional<string> description = default;
 093            Optional<IList<ActivityDependency>> dependsOn = default;
 094            Optional<IList<UserProperty>> userProperties = default;
 095            DataFlowReference dataFlow = default;
 096            Optional<DataFlowStagingInfo> staging = default;
 097            Optional<IntegrationRuntimeReference> integrationRuntime = default;
 098            Optional<ExecuteDataFlowActivityTypePropertiesCompute> compute = default;
 099            IDictionary<string, object> additionalProperties = default;
 0100            Dictionary<string, object> additionalPropertiesDictionary = default;
 0101            foreach (var property in element.EnumerateObject())
 102            {
 0103                if (property.NameEquals("linkedServiceName"))
 104                {
 0105                    linkedServiceName = LinkedServiceReference.DeserializeLinkedServiceReference(property.Value);
 0106                    continue;
 107                }
 0108                if (property.NameEquals("policy"))
 109                {
 0110                    policy = ActivityPolicy.DeserializeActivityPolicy(property.Value);
 0111                    continue;
 112                }
 0113                if (property.NameEquals("name"))
 114                {
 0115                    name = property.Value.GetString();
 0116                    continue;
 117                }
 0118                if (property.NameEquals("type"))
 119                {
 0120                    type = property.Value.GetString();
 0121                    continue;
 122                }
 0123                if (property.NameEquals("description"))
 124                {
 0125                    description = property.Value.GetString();
 0126                    continue;
 127                }
 0128                if (property.NameEquals("dependsOn"))
 129                {
 0130                    List<ActivityDependency> array = new List<ActivityDependency>();
 0131                    foreach (var item in property.Value.EnumerateArray())
 132                    {
 0133                        array.Add(ActivityDependency.DeserializeActivityDependency(item));
 134                    }
 0135                    dependsOn = array;
 0136                    continue;
 137                }
 0138                if (property.NameEquals("userProperties"))
 139                {
 0140                    List<UserProperty> array = new List<UserProperty>();
 0141                    foreach (var item in property.Value.EnumerateArray())
 142                    {
 0143                        array.Add(UserProperty.DeserializeUserProperty(item));
 144                    }
 0145                    userProperties = array;
 0146                    continue;
 147                }
 0148                if (property.NameEquals("typeProperties"))
 149                {
 0150                    foreach (var property0 in property.Value.EnumerateObject())
 151                    {
 0152                        if (property0.NameEquals("dataFlow"))
 153                        {
 0154                            dataFlow = DataFlowReference.DeserializeDataFlowReference(property0.Value);
 0155                            continue;
 156                        }
 0157                        if (property0.NameEquals("staging"))
 158                        {
 0159                            staging = DataFlowStagingInfo.DeserializeDataFlowStagingInfo(property0.Value);
 0160                            continue;
 161                        }
 0162                        if (property0.NameEquals("integrationRuntime"))
 163                        {
 0164                            integrationRuntime = IntegrationRuntimeReference.DeserializeIntegrationRuntimeReference(prop
 0165                            continue;
 166                        }
 0167                        if (property0.NameEquals("compute"))
 168                        {
 0169                            compute = ExecuteDataFlowActivityTypePropertiesCompute.DeserializeExecuteDataFlowActivityTyp
 170                            continue;
 171                        }
 172                    }
 173                    continue;
 174                }
 0175                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 0176                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 177            }
 0178            additionalProperties = additionalPropertiesDictionary;
 0179            return new ExecuteDataFlowActivity(name, type, description.Value, Optional.ToList(dependsOn), Optional.ToLis
 180        }
 181    }
 182}