< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_LogPath()-0%100%
get_Type()-0%100%
get_AccessCredential()-0%100%
get_LogRefreshInterval()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeSsisLogLocation(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisLogLocation.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 package execution log location. </summary>
 13    public partial class SsisLogLocation
 14    {
 15        /// <summary> Initializes a new instance of SsisLogLocation. </summary>
 16        /// <param name="logPath"> The SSIS package execution log path. Type: string (or Expression with resultType stri
 17        /// <param name="type"> The type of SSIS log location. </param>
 18        /// <exception cref="ArgumentNullException"> <paramref name="logPath"/> is null. </exception>
 019        public SsisLogLocation(object logPath, SsisLogLocationType type)
 20        {
 021            if (logPath == null)
 22            {
 023                throw new ArgumentNullException(nameof(logPath));
 24            }
 25
 026            LogPath = logPath;
 027            Type = type;
 028        }
 29
 30        /// <summary> Initializes a new instance of SsisLogLocation. </summary>
 31        /// <param name="logPath"> The SSIS package execution log path. Type: string (or Expression with resultType stri
 32        /// <param name="type"> The type of SSIS log location. </param>
 33        /// <param name="accessCredential"> The package execution log access credential. </param>
 34        /// <param name="logRefreshInterval"> Specifies the interval to refresh log. The default interval is 5 minutes. 
 035        internal SsisLogLocation(object logPath, SsisLogLocationType type, SsisAccessCredential accessCredential, object
 36        {
 037            LogPath = logPath;
 038            Type = type;
 039            AccessCredential = accessCredential;
 040            LogRefreshInterval = logRefreshInterval;
 041        }
 42
 43        /// <summary> The SSIS package execution log path. Type: string (or Expression with resultType string). </summar
 044        public object LogPath { get; set; }
 45        /// <summary> The type of SSIS log location. </summary>
 046        public SsisLogLocationType Type { get; set; }
 47        /// <summary> The package execution log access credential. </summary>
 048        public SsisAccessCredential AccessCredential { get; set; }
 49        /// <summary> Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Express
 050        public object LogRefreshInterval { get; set; }
 51    }
 52}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisLogLocation.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 SsisLogLocation : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("logPath");
 019            writer.WriteObjectValue(LogPath);
 020            writer.WritePropertyName("type");
 021            writer.WriteStringValue(Type.ToString());
 022            writer.WritePropertyName("typeProperties");
 023            writer.WriteStartObject();
 024            if (Optional.IsDefined(AccessCredential))
 25            {
 026                writer.WritePropertyName("accessCredential");
 027                writer.WriteObjectValue(AccessCredential);
 28            }
 029            if (Optional.IsDefined(LogRefreshInterval))
 30            {
 031                writer.WritePropertyName("logRefreshInterval");
 032                writer.WriteObjectValue(LogRefreshInterval);
 33            }
 034            writer.WriteEndObject();
 035            writer.WriteEndObject();
 036        }
 37
 38        internal static SsisLogLocation DeserializeSsisLogLocation(JsonElement element)
 39        {
 040            object logPath = default;
 041            SsisLogLocationType type = default;
 042            Optional<SsisAccessCredential> accessCredential = default;
 043            Optional<object> logRefreshInterval = default;
 044            foreach (var property in element.EnumerateObject())
 45            {
 046                if (property.NameEquals("logPath"))
 47                {
 048                    logPath = property.Value.GetObject();
 049                    continue;
 50                }
 051                if (property.NameEquals("type"))
 52                {
 053                    type = new SsisLogLocationType(property.Value.GetString());
 054                    continue;
 55                }
 056                if (property.NameEquals("typeProperties"))
 57                {
 058                    foreach (var property0 in property.Value.EnumerateObject())
 59                    {
 060                        if (property0.NameEquals("accessCredential"))
 61                        {
 062                            accessCredential = SsisAccessCredential.DeserializeSsisAccessCredential(property0.Value);
 063                            continue;
 64                        }
 065                        if (property0.NameEquals("logRefreshInterval"))
 66                        {
 067                            logRefreshInterval = property0.Value.GetObject();
 68                            continue;
 69                        }
 70                    }
 71                    continue;
 72                }
 73            }
 074            return new SsisLogLocation(logPath, type, accessCredential.Value, logRefreshInterval.Value);
 75        }
 76    }
 77}