< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PackagePath()-0%100%
get_Type()-0%100%
get_PackagePassword()-0%100%
get_AccessCredential()-0%100%
get_ConfigurationPath()-0%100%
get_PackageName()-0%100%
get_PackageContent()-0%100%
get_PackageLastModifiedDate()-0%100%
get_ChildPackages()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeSsisPackageLocation(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisPackageLocation.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 Azure.Core;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    /// <summary> SSIS package location. </summary>
 14    public partial class SsisPackageLocation
 15    {
 16        /// <summary> Initializes a new instance of SsisPackageLocation. </summary>
 017        public SsisPackageLocation()
 18        {
 019            ChildPackages = new ChangeTrackingList<SsisChildPackage>();
 020        }
 21
 22        /// <summary> Initializes a new instance of SsisPackageLocation. </summary>
 23        /// <param name="packagePath"> The SSIS package path. Type: string (or Expression with resultType string). </par
 24        /// <param name="type"> The type of SSIS package location. </param>
 25        /// <param name="packagePassword"> Password of the package. </param>
 26        /// <param name="accessCredential"> The package access credential. </param>
 27        /// <param name="configurationPath"> The configuration file of the package execution. Type: string (or Expressio
 28        /// <param name="packageName"> The package name. </param>
 29        /// <param name="packageContent"> The embedded package content. Type: string (or Expression with resultType stri
 30        /// <param name="packageLastModifiedDate"> The embedded package last modified date. </param>
 31        /// <param name="childPackages"> The embedded child package list. </param>
 032        internal SsisPackageLocation(object packagePath, SsisPackageLocationType? type, SecretBase packagePassword, Ssis
 33        {
 034            PackagePath = packagePath;
 035            Type = type;
 036            PackagePassword = packagePassword;
 037            AccessCredential = accessCredential;
 038            ConfigurationPath = configurationPath;
 039            PackageName = packageName;
 040            PackageContent = packageContent;
 041            PackageLastModifiedDate = packageLastModifiedDate;
 042            ChildPackages = childPackages;
 043        }
 44
 45        /// <summary> The SSIS package path. Type: string (or Expression with resultType string). </summary>
 046        public object PackagePath { get; set; }
 47        /// <summary> The type of SSIS package location. </summary>
 048        public SsisPackageLocationType? Type { get; set; }
 49        /// <summary> Password of the package. </summary>
 050        public SecretBase PackagePassword { get; set; }
 51        /// <summary> The package access credential. </summary>
 052        public SsisAccessCredential AccessCredential { get; set; }
 53        /// <summary> The configuration file of the package execution. Type: string (or Expression with resultType strin
 054        public object ConfigurationPath { get; set; }
 55        /// <summary> The package name. </summary>
 056        public string PackageName { get; set; }
 57        /// <summary> The embedded package content. Type: string (or Expression with resultType string). </summary>
 058        public object PackageContent { get; set; }
 59        /// <summary> The embedded package last modified date. </summary>
 060        public string PackageLastModifiedDate { get; set; }
 61        /// <summary> The embedded child package list. </summary>
 062        public IList<SsisChildPackage> ChildPackages { get; }
 63    }
 64}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisPackageLocation.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 SsisPackageLocation : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            if (Optional.IsDefined(PackagePath))
 20            {
 021                writer.WritePropertyName("packagePath");
 022                writer.WriteObjectValue(PackagePath);
 23            }
 024            if (Optional.IsDefined(Type))
 25            {
 026                writer.WritePropertyName("type");
 027                writer.WriteStringValue(Type.Value.ToString());
 28            }
 029            writer.WritePropertyName("typeProperties");
 030            writer.WriteStartObject();
 031            if (Optional.IsDefined(PackagePassword))
 32            {
 033                writer.WritePropertyName("packagePassword");
 034                writer.WriteObjectValue(PackagePassword);
 35            }
 036            if (Optional.IsDefined(AccessCredential))
 37            {
 038                writer.WritePropertyName("accessCredential");
 039                writer.WriteObjectValue(AccessCredential);
 40            }
 041            if (Optional.IsDefined(ConfigurationPath))
 42            {
 043                writer.WritePropertyName("configurationPath");
 044                writer.WriteObjectValue(ConfigurationPath);
 45            }
 046            if (Optional.IsDefined(PackageName))
 47            {
 048                writer.WritePropertyName("packageName");
 049                writer.WriteStringValue(PackageName);
 50            }
 051            if (Optional.IsDefined(PackageContent))
 52            {
 053                writer.WritePropertyName("packageContent");
 054                writer.WriteObjectValue(PackageContent);
 55            }
 056            if (Optional.IsDefined(PackageLastModifiedDate))
 57            {
 058                writer.WritePropertyName("packageLastModifiedDate");
 059                writer.WriteStringValue(PackageLastModifiedDate);
 60            }
 061            if (Optional.IsCollectionDefined(ChildPackages))
 62            {
 063                writer.WritePropertyName("childPackages");
 064                writer.WriteStartArray();
 065                foreach (var item in ChildPackages)
 66                {
 067                    writer.WriteObjectValue(item);
 68                }
 069                writer.WriteEndArray();
 70            }
 071            writer.WriteEndObject();
 072            writer.WriteEndObject();
 073        }
 74
 75        internal static SsisPackageLocation DeserializeSsisPackageLocation(JsonElement element)
 76        {
 077            Optional<object> packagePath = default;
 078            Optional<SsisPackageLocationType> type = default;
 079            Optional<SecretBase> packagePassword = default;
 080            Optional<SsisAccessCredential> accessCredential = default;
 081            Optional<object> configurationPath = default;
 082            Optional<string> packageName = default;
 083            Optional<object> packageContent = default;
 084            Optional<string> packageLastModifiedDate = default;
 085            Optional<IList<SsisChildPackage>> childPackages = default;
 086            foreach (var property in element.EnumerateObject())
 87            {
 088                if (property.NameEquals("packagePath"))
 89                {
 090                    packagePath = property.Value.GetObject();
 091                    continue;
 92                }
 093                if (property.NameEquals("type"))
 94                {
 095                    type = new SsisPackageLocationType(property.Value.GetString());
 096                    continue;
 97                }
 098                if (property.NameEquals("typeProperties"))
 99                {
 0100                    foreach (var property0 in property.Value.EnumerateObject())
 101                    {
 0102                        if (property0.NameEquals("packagePassword"))
 103                        {
 0104                            packagePassword = SecretBase.DeserializeSecretBase(property0.Value);
 0105                            continue;
 106                        }
 0107                        if (property0.NameEquals("accessCredential"))
 108                        {
 0109                            accessCredential = SsisAccessCredential.DeserializeSsisAccessCredential(property0.Value);
 0110                            continue;
 111                        }
 0112                        if (property0.NameEquals("configurationPath"))
 113                        {
 0114                            configurationPath = property0.Value.GetObject();
 0115                            continue;
 116                        }
 0117                        if (property0.NameEquals("packageName"))
 118                        {
 0119                            packageName = property0.Value.GetString();
 0120                            continue;
 121                        }
 0122                        if (property0.NameEquals("packageContent"))
 123                        {
 0124                            packageContent = property0.Value.GetObject();
 0125                            continue;
 126                        }
 0127                        if (property0.NameEquals("packageLastModifiedDate"))
 128                        {
 0129                            packageLastModifiedDate = property0.Value.GetString();
 0130                            continue;
 131                        }
 0132                        if (property0.NameEquals("childPackages"))
 133                        {
 0134                            List<SsisChildPackage> array = new List<SsisChildPackage>();
 0135                            foreach (var item in property0.Value.EnumerateArray())
 136                            {
 0137                                array.Add(SsisChildPackage.DeserializeSsisChildPackage(item));
 138                            }
 0139                            childPackages = array;
 140                            continue;
 141                        }
 142                    }
 143                    continue;
 144                }
 145            }
 0146            return new SsisPackageLocation(packagePath.Value, Optional.ToNullable(type), packagePassword.Value, accessCr
 147        }
 148    }
 149}