< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_Value()-0%100%
get_IsSensitive()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeSsisPropertyOverride(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisPropertyOverride.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 property override. </summary>
 13    public partial class SsisPropertyOverride
 14    {
 15        /// <summary> Initializes a new instance of SsisPropertyOverride. </summary>
 16        /// <param name="value"> SSIS package property override value. Type: string (or Expression with resultType strin
 17        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 018        public SsisPropertyOverride(object value)
 19        {
 020            if (value == null)
 21            {
 022                throw new ArgumentNullException(nameof(value));
 23            }
 24
 025            Value = value;
 026        }
 27
 28        /// <summary> Initializes a new instance of SsisPropertyOverride. </summary>
 29        /// <param name="value"> SSIS package property override value. Type: string (or Expression with resultType strin
 30        /// <param name="isSensitive"> Whether SSIS package property override value is sensitive data. Value will be enc
 031        internal SsisPropertyOverride(object value, bool? isSensitive)
 32        {
 033            Value = value;
 034            IsSensitive = isSensitive;
 035        }
 36
 37        /// <summary> SSIS package property override value. Type: string (or Expression with resultType string). </summa
 038        public object Value { get; set; }
 39        /// <summary> Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB 
 040        public bool? IsSensitive { get; set; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisPropertyOverride.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 SsisPropertyOverride : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("value");
 019            writer.WriteObjectValue(Value);
 020            if (Optional.IsDefined(IsSensitive))
 21            {
 022                writer.WritePropertyName("isSensitive");
 023                writer.WriteBooleanValue(IsSensitive.Value);
 24            }
 025            writer.WriteEndObject();
 026        }
 27
 28        internal static SsisPropertyOverride DeserializeSsisPropertyOverride(JsonElement element)
 29        {
 030            object value = default;
 031            Optional<bool> isSensitive = default;
 032            foreach (var property in element.EnumerateObject())
 33            {
 034                if (property.NameEquals("value"))
 35                {
 036                    value = property.Value.GetObject();
 037                    continue;
 38                }
 039                if (property.NameEquals("isSensitive"))
 40                {
 041                    isSensitive = property.Value.GetBoolean();
 42                    continue;
 43                }
 44            }
 045            return new SsisPropertyOverride(value, Optional.ToNullable(isSensitive));
 46        }
 47    }
 48}