< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%0%
get_PackageLocation()-0%100%
get_Runtime()-0%100%
get_LoggingLevel()-0%100%
get_EnvironmentPath()-0%100%
get_ExecutionCredential()-0%100%
get_ConnectVia()-0%100%
get_ProjectParameters()-0%100%
get_PackageParameters()-0%100%
get_ProjectConnectionManagers()-0%100%
get_PackageConnectionManagers()-0%100%
get_PropertyOverrides()-0%100%
get_LogLocation()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeExecuteSsisPackageActivity(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ExecuteSsisPackageActivity.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;
 10using Azure.Core;
 11
 12namespace Azure.Analytics.Synapse.Artifacts.Models
 13{
 14    /// <summary> Execute SSIS package activity. </summary>
 15    public partial class ExecuteSsisPackageActivity : ExecutionActivity
 16    {
 17        /// <summary> Initializes a new instance of ExecuteSsisPackageActivity. </summary>
 18        /// <param name="name"> Activity name. </param>
 19        /// <param name="packageLocation"> SSIS package location. </param>
 20        /// <param name="connectVia"> The integration runtime reference. </param>
 21        /// <exception cref="ArgumentNullException"> <paramref name="name"/>, <paramref name="packageLocation"/>, or <pa
 022        public ExecuteSsisPackageActivity(string name, SsisPackageLocation packageLocation, IntegrationRuntimeReference 
 23        {
 024            if (name == null)
 25            {
 026                throw new ArgumentNullException(nameof(name));
 27            }
 028            if (packageLocation == null)
 29            {
 030                throw new ArgumentNullException(nameof(packageLocation));
 31            }
 032            if (connectVia == null)
 33            {
 034                throw new ArgumentNullException(nameof(connectVia));
 35            }
 36
 037            PackageLocation = packageLocation;
 038            ConnectVia = connectVia;
 039            ProjectParameters = new ChangeTrackingDictionary<string, SsisExecutionParameter>();
 040            PackageParameters = new ChangeTrackingDictionary<string, SsisExecutionParameter>();
 041            ProjectConnectionManagers = new ChangeTrackingDictionary<string, object>();
 042            PackageConnectionManagers = new ChangeTrackingDictionary<string, object>();
 043            PropertyOverrides = new ChangeTrackingDictionary<string, SsisPropertyOverride>();
 044            Type = "ExecuteSSISPackage";
 045        }
 46
 47        /// <summary> Initializes a new instance of ExecuteSsisPackageActivity. </summary>
 48        /// <param name="name"> Activity name. </param>
 49        /// <param name="type"> Type of activity. </param>
 50        /// <param name="description"> Activity description. </param>
 51        /// <param name="dependsOn"> Activity depends on condition. </param>
 52        /// <param name="userProperties"> Activity user properties. </param>
 53        /// <param name="additionalProperties"> . </param>
 54        /// <param name="linkedServiceName"> Linked service reference. </param>
 55        /// <param name="policy"> Activity policy. </param>
 56        /// <param name="packageLocation"> SSIS package location. </param>
 57        /// <param name="runtime"> Specifies the runtime to execute SSIS package. The value should be &quot;x86&quot; or
 58        /// <param name="loggingLevel"> The logging level of SSIS package execution. Type: string (or Expression with re
 59        /// <param name="environmentPath"> The environment path to execute the SSIS package. Type: string (or Expression
 60        /// <param name="executionCredential"> The package execution credential. </param>
 61        /// <param name="connectVia"> The integration runtime reference. </param>
 62        /// <param name="projectParameters"> The project level parameters to execute the SSIS package. </param>
 63        /// <param name="packageParameters"> The package level parameters to execute the SSIS package. </param>
 64        /// <param name="projectConnectionManagers"> The project level connection managers to execute the SSIS package. 
 65        /// <param name="packageConnectionManagers"> The package level connection managers to execute the SSIS package. 
 66        /// <param name="propertyOverrides"> The property overrides to execute the SSIS package. </param>
 67        /// <param name="logLocation"> SSIS package execution log location. </param>
 068        internal ExecuteSsisPackageActivity(string name, string type, string description, IList<ActivityDependency> depe
 69        {
 070            PackageLocation = packageLocation;
 071            Runtime = runtime;
 072            LoggingLevel = loggingLevel;
 073            EnvironmentPath = environmentPath;
 074            ExecutionCredential = executionCredential;
 075            ConnectVia = connectVia;
 076            ProjectParameters = projectParameters;
 077            PackageParameters = packageParameters;
 078            ProjectConnectionManagers = projectConnectionManagers;
 079            PackageConnectionManagers = packageConnectionManagers;
 080            PropertyOverrides = propertyOverrides;
 081            LogLocation = logLocation;
 082            Type = type ?? "ExecuteSSISPackage";
 083        }
 84
 85        /// <summary> SSIS package location. </summary>
 086        public SsisPackageLocation PackageLocation { get; set; }
 87        /// <summary> Specifies the runtime to execute SSIS package. The value should be &quot;x86&quot; or &quot;x64&qu
 088        public object Runtime { get; set; }
 89        /// <summary> The logging level of SSIS package execution. Type: string (or Expression with resultType string). 
 090        public object LoggingLevel { get; set; }
 91        /// <summary> The environment path to execute the SSIS package. Type: string (or Expression with resultType stri
 092        public object EnvironmentPath { get; set; }
 93        /// <summary> The package execution credential. </summary>
 094        public SsisExecutionCredential ExecutionCredential { get; set; }
 95        /// <summary> The integration runtime reference. </summary>
 096        public IntegrationRuntimeReference ConnectVia { get; set; }
 97        /// <summary> The project level parameters to execute the SSIS package. </summary>
 098        public IDictionary<string, SsisExecutionParameter> ProjectParameters { get; }
 99        /// <summary> The package level parameters to execute the SSIS package. </summary>
 0100        public IDictionary<string, SsisExecutionParameter> PackageParameters { get; }
 101        /// <summary> The project level connection managers to execute the SSIS package. </summary>
 0102        public IDictionary<string, object> ProjectConnectionManagers { get; }
 103        /// <summary> The package level connection managers to execute the SSIS package. </summary>
 0104        public IDictionary<string, object> PackageConnectionManagers { get; }
 105        /// <summary> The property overrides to execute the SSIS package. </summary>
 0106        public IDictionary<string, SsisPropertyOverride> PropertyOverrides { get; }
 107        /// <summary> SSIS package execution log location. </summary>
 0108        public SsisLogLocation LogLocation { get; set; }
 109    }
 110}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\ExecuteSsisPackageActivity.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 ExecuteSsisPackageActivity : 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("packageLocation");
 061            writer.WriteObjectValue(PackageLocation);
 062            if (Optional.IsDefined(Runtime))
 63            {
 064                writer.WritePropertyName("runtime");
 065                writer.WriteObjectValue(Runtime);
 66            }
 067            if (Optional.IsDefined(LoggingLevel))
 68            {
 069                writer.WritePropertyName("loggingLevel");
 070                writer.WriteObjectValue(LoggingLevel);
 71            }
 072            if (Optional.IsDefined(EnvironmentPath))
 73            {
 074                writer.WritePropertyName("environmentPath");
 075                writer.WriteObjectValue(EnvironmentPath);
 76            }
 077            if (Optional.IsDefined(ExecutionCredential))
 78            {
 079                writer.WritePropertyName("executionCredential");
 080                writer.WriteObjectValue(ExecutionCredential);
 81            }
 082            writer.WritePropertyName("connectVia");
 083            writer.WriteObjectValue(ConnectVia);
 084            if (Optional.IsCollectionDefined(ProjectParameters))
 85            {
 086                writer.WritePropertyName("projectParameters");
 087                writer.WriteStartObject();
 088                foreach (var item in ProjectParameters)
 89                {
 090                    writer.WritePropertyName(item.Key);
 091                    writer.WriteObjectValue(item.Value);
 92                }
 093                writer.WriteEndObject();
 94            }
 095            if (Optional.IsCollectionDefined(PackageParameters))
 96            {
 097                writer.WritePropertyName("packageParameters");
 098                writer.WriteStartObject();
 099                foreach (var item in PackageParameters)
 100                {
 0101                    writer.WritePropertyName(item.Key);
 0102                    writer.WriteObjectValue(item.Value);
 103                }
 0104                writer.WriteEndObject();
 105            }
 0106            if (Optional.IsCollectionDefined(ProjectConnectionManagers))
 107            {
 0108                writer.WritePropertyName("projectConnectionManagers");
 0109                writer.WriteStartObject();
 0110                foreach (var item in ProjectConnectionManagers)
 111                {
 0112                    writer.WritePropertyName(item.Key);
 0113                    writer.WriteObjectValue(item.Value);
 114                }
 0115                writer.WriteEndObject();
 116            }
 0117            if (Optional.IsCollectionDefined(PackageConnectionManagers))
 118            {
 0119                writer.WritePropertyName("packageConnectionManagers");
 0120                writer.WriteStartObject();
 0121                foreach (var item in PackageConnectionManagers)
 122                {
 0123                    writer.WritePropertyName(item.Key);
 0124                    writer.WriteObjectValue(item.Value);
 125                }
 0126                writer.WriteEndObject();
 127            }
 0128            if (Optional.IsCollectionDefined(PropertyOverrides))
 129            {
 0130                writer.WritePropertyName("propertyOverrides");
 0131                writer.WriteStartObject();
 0132                foreach (var item in PropertyOverrides)
 133                {
 0134                    writer.WritePropertyName(item.Key);
 0135                    writer.WriteObjectValue(item.Value);
 136                }
 0137                writer.WriteEndObject();
 138            }
 0139            if (Optional.IsDefined(LogLocation))
 140            {
 0141                writer.WritePropertyName("logLocation");
 0142                writer.WriteObjectValue(LogLocation);
 143            }
 0144            writer.WriteEndObject();
 0145            foreach (var item in AdditionalProperties)
 146            {
 0147                writer.WritePropertyName(item.Key);
 0148                writer.WriteObjectValue(item.Value);
 149            }
 0150            writer.WriteEndObject();
 0151        }
 152
 153        internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity(JsonElement element)
 154        {
 0155            Optional<LinkedServiceReference> linkedServiceName = default;
 0156            Optional<ActivityPolicy> policy = default;
 0157            string name = default;
 0158            string type = default;
 0159            Optional<string> description = default;
 0160            Optional<IList<ActivityDependency>> dependsOn = default;
 0161            Optional<IList<UserProperty>> userProperties = default;
 0162            SsisPackageLocation packageLocation = default;
 0163            Optional<object> runtime = default;
 0164            Optional<object> loggingLevel = default;
 0165            Optional<object> environmentPath = default;
 0166            Optional<SsisExecutionCredential> executionCredential = default;
 0167            IntegrationRuntimeReference connectVia = default;
 0168            Optional<IDictionary<string, SsisExecutionParameter>> projectParameters = default;
 0169            Optional<IDictionary<string, SsisExecutionParameter>> packageParameters = default;
 0170            Optional<IDictionary<string, object>> projectConnectionManagers = default;
 0171            Optional<IDictionary<string, object>> packageConnectionManagers = default;
 0172            Optional<IDictionary<string, SsisPropertyOverride>> propertyOverrides = default;
 0173            Optional<SsisLogLocation> logLocation = default;
 0174            IDictionary<string, object> additionalProperties = default;
 0175            Dictionary<string, object> additionalPropertiesDictionary = default;
 0176            foreach (var property in element.EnumerateObject())
 177            {
 0178                if (property.NameEquals("linkedServiceName"))
 179                {
 0180                    linkedServiceName = LinkedServiceReference.DeserializeLinkedServiceReference(property.Value);
 0181                    continue;
 182                }
 0183                if (property.NameEquals("policy"))
 184                {
 0185                    policy = ActivityPolicy.DeserializeActivityPolicy(property.Value);
 0186                    continue;
 187                }
 0188                if (property.NameEquals("name"))
 189                {
 0190                    name = property.Value.GetString();
 0191                    continue;
 192                }
 0193                if (property.NameEquals("type"))
 194                {
 0195                    type = property.Value.GetString();
 0196                    continue;
 197                }
 0198                if (property.NameEquals("description"))
 199                {
 0200                    description = property.Value.GetString();
 0201                    continue;
 202                }
 0203                if (property.NameEquals("dependsOn"))
 204                {
 0205                    List<ActivityDependency> array = new List<ActivityDependency>();
 0206                    foreach (var item in property.Value.EnumerateArray())
 207                    {
 0208                        array.Add(ActivityDependency.DeserializeActivityDependency(item));
 209                    }
 0210                    dependsOn = array;
 0211                    continue;
 212                }
 0213                if (property.NameEquals("userProperties"))
 214                {
 0215                    List<UserProperty> array = new List<UserProperty>();
 0216                    foreach (var item in property.Value.EnumerateArray())
 217                    {
 0218                        array.Add(UserProperty.DeserializeUserProperty(item));
 219                    }
 0220                    userProperties = array;
 0221                    continue;
 222                }
 0223                if (property.NameEquals("typeProperties"))
 224                {
 0225                    foreach (var property0 in property.Value.EnumerateObject())
 226                    {
 0227                        if (property0.NameEquals("packageLocation"))
 228                        {
 0229                            packageLocation = SsisPackageLocation.DeserializeSsisPackageLocation(property0.Value);
 0230                            continue;
 231                        }
 0232                        if (property0.NameEquals("runtime"))
 233                        {
 0234                            runtime = property0.Value.GetObject();
 0235                            continue;
 236                        }
 0237                        if (property0.NameEquals("loggingLevel"))
 238                        {
 0239                            loggingLevel = property0.Value.GetObject();
 0240                            continue;
 241                        }
 0242                        if (property0.NameEquals("environmentPath"))
 243                        {
 0244                            environmentPath = property0.Value.GetObject();
 0245                            continue;
 246                        }
 0247                        if (property0.NameEquals("executionCredential"))
 248                        {
 0249                            executionCredential = SsisExecutionCredential.DeserializeSsisExecutionCredential(property0.V
 0250                            continue;
 251                        }
 0252                        if (property0.NameEquals("connectVia"))
 253                        {
 0254                            connectVia = IntegrationRuntimeReference.DeserializeIntegrationRuntimeReference(property0.Va
 0255                            continue;
 256                        }
 0257                        if (property0.NameEquals("projectParameters"))
 258                        {
 0259                            Dictionary<string, SsisExecutionParameter> dictionary = new Dictionary<string, SsisExecution
 0260                            foreach (var property1 in property0.Value.EnumerateObject())
 261                            {
 0262                                dictionary.Add(property1.Name, SsisExecutionParameter.DeserializeSsisExecutionParameter(
 263                            }
 0264                            projectParameters = dictionary;
 0265                            continue;
 266                        }
 0267                        if (property0.NameEquals("packageParameters"))
 268                        {
 0269                            Dictionary<string, SsisExecutionParameter> dictionary = new Dictionary<string, SsisExecution
 0270                            foreach (var property1 in property0.Value.EnumerateObject())
 271                            {
 0272                                dictionary.Add(property1.Name, SsisExecutionParameter.DeserializeSsisExecutionParameter(
 273                            }
 0274                            packageParameters = dictionary;
 0275                            continue;
 276                        }
 0277                        if (property0.NameEquals("projectConnectionManagers"))
 278                        {
 0279                            Dictionary<string, object> dictionary = new Dictionary<string, object>();
 0280                            foreach (var property1 in property0.Value.EnumerateObject())
 281                            {
 0282                                dictionary.Add(property1.Name, property1.Value.GetObject());
 283                            }
 0284                            projectConnectionManagers = dictionary;
 0285                            continue;
 286                        }
 0287                        if (property0.NameEquals("packageConnectionManagers"))
 288                        {
 0289                            Dictionary<string, object> dictionary = new Dictionary<string, object>();
 0290                            foreach (var property1 in property0.Value.EnumerateObject())
 291                            {
 0292                                dictionary.Add(property1.Name, property1.Value.GetObject());
 293                            }
 0294                            packageConnectionManagers = dictionary;
 0295                            continue;
 296                        }
 0297                        if (property0.NameEquals("propertyOverrides"))
 298                        {
 0299                            Dictionary<string, SsisPropertyOverride> dictionary = new Dictionary<string, SsisPropertyOve
 0300                            foreach (var property1 in property0.Value.EnumerateObject())
 301                            {
 0302                                dictionary.Add(property1.Name, SsisPropertyOverride.DeserializeSsisPropertyOverride(prop
 303                            }
 0304                            propertyOverrides = dictionary;
 0305                            continue;
 306                        }
 0307                        if (property0.NameEquals("logLocation"))
 308                        {
 0309                            logLocation = SsisLogLocation.DeserializeSsisLogLocation(property0.Value);
 310                            continue;
 311                        }
 312                    }
 313                    continue;
 314                }
 0315                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 0316                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 317            }
 0318            additionalProperties = additionalPropertiesDictionary;
 0319            return new ExecuteSsisPackageActivity(name, type, description.Value, Optional.ToList(dependsOn), Optional.To
 320        }
 321    }
 322}