< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_PackagePath()-0%100%
get_PackageName()-0%100%
get_PackageContent()-0%100%
get_PackageLastModifiedDate()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeSsisChildPackage(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisChildPackage.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;
 9
 10namespace Azure.Analytics.Synapse.Artifacts.Models
 11{
 12    /// <summary> SSIS embedded child package. </summary>
 13    public partial class SsisChildPackage
 14    {
 15        /// <summary> Initializes a new instance of SsisChildPackage. </summary>
 16        /// <param name="packagePath"> Path for embedded child package. Type: string (or Expression with resultType stri
 17        /// <param name="packageContent"> Content for embedded child package. Type: string (or Expression with resultTyp
 18        /// <exception cref="ArgumentNullException"> <paramref name="packagePath"/> or <paramref name="packageContent"/>
 019        public SsisChildPackage(object packagePath, object packageContent)
 20        {
 021            if (packagePath == null)
 22            {
 023                throw new ArgumentNullException(nameof(packagePath));
 24            }
 025            if (packageContent == null)
 26            {
 027                throw new ArgumentNullException(nameof(packageContent));
 28            }
 29
 030            PackagePath = packagePath;
 031            PackageContent = packageContent;
 032        }
 33
 34        /// <summary> Initializes a new instance of SsisChildPackage. </summary>
 35        /// <param name="packagePath"> Path for embedded child package. Type: string (or Expression with resultType stri
 36        /// <param name="packageName"> Name for embedded child package. </param>
 37        /// <param name="packageContent"> Content for embedded child package. Type: string (or Expression with resultTyp
 38        /// <param name="packageLastModifiedDate"> Last modified date for embedded child package. </param>
 039        internal SsisChildPackage(object packagePath, string packageName, object packageContent, string packageLastModif
 40        {
 041            PackagePath = packagePath;
 042            PackageName = packageName;
 043            PackageContent = packageContent;
 044            PackageLastModifiedDate = packageLastModifiedDate;
 045        }
 46
 47        /// <summary> Path for embedded child package. Type: string (or Expression with resultType string). </summary>
 048        public object PackagePath { get; set; }
 49        /// <summary> Name for embedded child package. </summary>
 050        public string PackageName { get; set; }
 51        /// <summary> Content for embedded child package. Type: string (or Expression with resultType string). </summary
 052        public object PackageContent { get; set; }
 53        /// <summary> Last modified date for embedded child package. </summary>
 054        public string PackageLastModifiedDate { get; set; }
 55    }
 56}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisChildPackage.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 SsisChildPackage : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("packagePath");
 019            writer.WriteObjectValue(PackagePath);
 020            if (Optional.IsDefined(PackageName))
 21            {
 022                writer.WritePropertyName("packageName");
 023                writer.WriteStringValue(PackageName);
 24            }
 025            writer.WritePropertyName("packageContent");
 026            writer.WriteObjectValue(PackageContent);
 027            if (Optional.IsDefined(PackageLastModifiedDate))
 28            {
 029                writer.WritePropertyName("packageLastModifiedDate");
 030                writer.WriteStringValue(PackageLastModifiedDate);
 31            }
 032            writer.WriteEndObject();
 033        }
 34
 35        internal static SsisChildPackage DeserializeSsisChildPackage(JsonElement element)
 36        {
 037            object packagePath = default;
 038            Optional<string> packageName = default;
 039            object packageContent = default;
 040            Optional<string> packageLastModifiedDate = default;
 041            foreach (var property in element.EnumerateObject())
 42            {
 043                if (property.NameEquals("packagePath"))
 44                {
 045                    packagePath = property.Value.GetObject();
 046                    continue;
 47                }
 048                if (property.NameEquals("packageName"))
 49                {
 050                    packageName = property.Value.GetString();
 051                    continue;
 52                }
 053                if (property.NameEquals("packageContent"))
 54                {
 055                    packageContent = property.Value.GetObject();
 056                    continue;
 57                }
 058                if (property.NameEquals("packageLastModifiedDate"))
 59                {
 060                    packageLastModifiedDate = property.Value.GetString();
 61                    continue;
 62                }
 63            }
 064            return new SsisChildPackage(packagePath, packageName.Value, packageContent, packageLastModifiedDate.Value);
 65        }
 66    }
 67}