< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Domain()-0%100%
get_UserName()-0%100%
get_Password()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%100%
DeserializeSsisAccessCredential(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisAccessCredential.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 access credential. </summary>
 13    public partial class SsisAccessCredential
 14    {
 15        /// <summary> Initializes a new instance of SsisAccessCredential. </summary>
 16        /// <param name="domain"> Domain for windows authentication. </param>
 17        /// <param name="userName"> UseName for windows authentication. </param>
 18        /// <param name="password"> Password for windows authentication. </param>
 19        /// <exception cref="ArgumentNullException"> <paramref name="domain"/>, <paramref name="userName"/>, or <paramre
 020        public SsisAccessCredential(object domain, object userName, SecretBase password)
 21        {
 022            if (domain == null)
 23            {
 024                throw new ArgumentNullException(nameof(domain));
 25            }
 026            if (userName == null)
 27            {
 028                throw new ArgumentNullException(nameof(userName));
 29            }
 030            if (password == null)
 31            {
 032                throw new ArgumentNullException(nameof(password));
 33            }
 34
 035            Domain = domain;
 036            UserName = userName;
 037            Password = password;
 038        }
 39
 40        /// <summary> Domain for windows authentication. </summary>
 041        public object Domain { get; set; }
 42        /// <summary> UseName for windows authentication. </summary>
 043        public object UserName { get; set; }
 44        /// <summary> Password for windows authentication. </summary>
 045        public SecretBase Password { get; set; }
 46    }
 47}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SsisAccessCredential.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 SsisAccessCredential : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("domain");
 019            writer.WriteObjectValue(Domain);
 020            writer.WritePropertyName("userName");
 021            writer.WriteObjectValue(UserName);
 022            writer.WritePropertyName("password");
 023            writer.WriteObjectValue(Password);
 024            writer.WriteEndObject();
 025        }
 26
 27        internal static SsisAccessCredential DeserializeSsisAccessCredential(JsonElement element)
 28        {
 029            object domain = default;
 030            object userName = default;
 031            SecretBase password = default;
 032            foreach (var property in element.EnumerateObject())
 33            {
 034                if (property.NameEquals("domain"))
 35                {
 036                    domain = property.Value.GetObject();
 037                    continue;
 38                }
 039                if (property.NameEquals("userName"))
 40                {
 041                    userName = property.Value.GetObject();
 042                    continue;
 43                }
 044                if (property.NameEquals("password"))
 45                {
 046                    password = SecretBase.DeserializeSecretBase(property.Value);
 47                    continue;
 48                }
 49            }
 050            return new SsisAccessCredential(domain, userName, password);
 51        }
 52    }
 53}