< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%0%
get_ConnectionString()-0%100%
get_Pwd()-0%100%
get_EncryptedCredential()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeNetezzaLinkedService(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\NetezzaLinkedService.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;
 9
 10namespace Azure.Analytics.Synapse.Artifacts.Models
 11{
 12    /// <summary> Netezza linked service. </summary>
 13    public partial class NetezzaLinkedService : LinkedService
 14    {
 15        /// <summary> Initializes a new instance of NetezzaLinkedService. </summary>
 016        public NetezzaLinkedService()
 17        {
 018            Type = "Netezza";
 019        }
 20
 21        /// <summary> Initializes a new instance of NetezzaLinkedService. </summary>
 22        /// <param name="type"> Type of linked service. </param>
 23        /// <param name="connectVia"> The integration runtime reference. </param>
 24        /// <param name="description"> Linked service description. </param>
 25        /// <param name="parameters"> Parameters for linked service. </param>
 26        /// <param name="annotations"> List of tags that can be used for describing the linked service. </param>
 27        /// <param name="additionalProperties"> . </param>
 28        /// <param name="connectionString"> An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecret
 29        /// <param name="pwd"> The Azure key vault secret reference of password in connection string. </param>
 30        /// <param name="encryptedCredential"> The encrypted credential used for authentication. Credentials are encrypt
 031        internal NetezzaLinkedService(string type, IntegrationRuntimeReference connectVia, string description, IDictiona
 32        {
 033            ConnectionString = connectionString;
 034            Pwd = pwd;
 035            EncryptedCredential = encryptedCredential;
 036            Type = type ?? "Netezza";
 037        }
 38
 39        /// <summary> An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. </summary>
 040        public object ConnectionString { get; set; }
 41        /// <summary> The Azure key vault secret reference of password in connection string. </summary>
 042        public AzureKeyVaultSecretReference Pwd { get; set; }
 43        /// <summary> The encrypted credential used for authentication. Credentials are encrypted using the integration 
 044        public object EncryptedCredential { get; set; }
 45    }
 46}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\NetezzaLinkedService.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 NetezzaLinkedService : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            writer.WritePropertyName("type");
 020            writer.WriteStringValue(Type);
 021            if (Optional.IsDefined(ConnectVia))
 22            {
 023                writer.WritePropertyName("connectVia");
 024                writer.WriteObjectValue(ConnectVia);
 25            }
 026            if (Optional.IsDefined(Description))
 27            {
 028                writer.WritePropertyName("description");
 029                writer.WriteStringValue(Description);
 30            }
 031            if (Optional.IsCollectionDefined(Parameters))
 32            {
 033                writer.WritePropertyName("parameters");
 034                writer.WriteStartObject();
 035                foreach (var item in Parameters)
 36                {
 037                    writer.WritePropertyName(item.Key);
 038                    writer.WriteObjectValue(item.Value);
 39                }
 040                writer.WriteEndObject();
 41            }
 042            if (Optional.IsCollectionDefined(Annotations))
 43            {
 044                writer.WritePropertyName("annotations");
 045                writer.WriteStartArray();
 046                foreach (var item in Annotations)
 47                {
 048                    writer.WriteObjectValue(item);
 49                }
 050                writer.WriteEndArray();
 51            }
 052            writer.WritePropertyName("typeProperties");
 053            writer.WriteStartObject();
 054            if (Optional.IsDefined(ConnectionString))
 55            {
 056                writer.WritePropertyName("connectionString");
 057                writer.WriteObjectValue(ConnectionString);
 58            }
 059            if (Optional.IsDefined(Pwd))
 60            {
 061                writer.WritePropertyName("pwd");
 062                writer.WriteObjectValue(Pwd);
 63            }
 064            if (Optional.IsDefined(EncryptedCredential))
 65            {
 066                writer.WritePropertyName("encryptedCredential");
 067                writer.WriteObjectValue(EncryptedCredential);
 68            }
 069            writer.WriteEndObject();
 070            foreach (var item in AdditionalProperties)
 71            {
 072                writer.WritePropertyName(item.Key);
 073                writer.WriteObjectValue(item.Value);
 74            }
 075            writer.WriteEndObject();
 076        }
 77
 78        internal static NetezzaLinkedService DeserializeNetezzaLinkedService(JsonElement element)
 79        {
 080            string type = default;
 081            Optional<IntegrationRuntimeReference> connectVia = default;
 082            Optional<string> description = default;
 083            Optional<IDictionary<string, ParameterSpecification>> parameters = default;
 084            Optional<IList<object>> annotations = default;
 085            Optional<object> connectionString = default;
 086            Optional<AzureKeyVaultSecretReference> pwd = default;
 087            Optional<object> encryptedCredential = default;
 088            IDictionary<string, object> additionalProperties = default;
 089            Dictionary<string, object> additionalPropertiesDictionary = default;
 090            foreach (var property in element.EnumerateObject())
 91            {
 092                if (property.NameEquals("type"))
 93                {
 094                    type = property.Value.GetString();
 095                    continue;
 96                }
 097                if (property.NameEquals("connectVia"))
 98                {
 099                    connectVia = IntegrationRuntimeReference.DeserializeIntegrationRuntimeReference(property.Value);
 0100                    continue;
 101                }
 0102                if (property.NameEquals("description"))
 103                {
 0104                    description = property.Value.GetString();
 0105                    continue;
 106                }
 0107                if (property.NameEquals("parameters"))
 108                {
 0109                    Dictionary<string, ParameterSpecification> dictionary = new Dictionary<string, ParameterSpecificatio
 0110                    foreach (var property0 in property.Value.EnumerateObject())
 111                    {
 0112                        dictionary.Add(property0.Name, ParameterSpecification.DeserializeParameterSpecification(property
 113                    }
 0114                    parameters = dictionary;
 0115                    continue;
 116                }
 0117                if (property.NameEquals("annotations"))
 118                {
 0119                    List<object> array = new List<object>();
 0120                    foreach (var item in property.Value.EnumerateArray())
 121                    {
 0122                        array.Add(item.GetObject());
 123                    }
 0124                    annotations = array;
 0125                    continue;
 126                }
 0127                if (property.NameEquals("typeProperties"))
 128                {
 0129                    foreach (var property0 in property.Value.EnumerateObject())
 130                    {
 0131                        if (property0.NameEquals("connectionString"))
 132                        {
 0133                            connectionString = property0.Value.GetObject();
 0134                            continue;
 135                        }
 0136                        if (property0.NameEquals("pwd"))
 137                        {
 0138                            pwd = AzureKeyVaultSecretReference.DeserializeAzureKeyVaultSecretReference(property0.Value);
 0139                            continue;
 140                        }
 0141                        if (property0.NameEquals("encryptedCredential"))
 142                        {
 0143                            encryptedCredential = property0.Value.GetObject();
 144                            continue;
 145                        }
 146                    }
 147                    continue;
 148                }
 0149                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 0150                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 151            }
 0152            additionalProperties = additionalPropertiesDictionary;
 0153            return new NetezzaLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(parameters)
 154        }
 155    }
 156}