< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%0%
get_Server()-0%100%
get_SystemNumber()-0%100%
get_ClientId()-0%100%
get_Language()-0%100%
get_SystemId()-0%100%
get_UserName()-0%100%
get_Password()-0%100%
get_MessageServer()-0%100%
get_MessageServerService()-0%100%
get_SncMode()-0%100%
get_SncMyName()-0%100%
get_SncPartnerName()-0%100%
get_SncLibraryPath()-0%100%
get_SncQop()-0%100%
get_LogonGroup()-0%100%
get_EncryptedCredential()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeSapTableLinkedService(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SapTableLinkedService.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> SAP Table Linked Service. </summary>
 13    public partial class SapTableLinkedService : LinkedService
 14    {
 15        /// <summary> Initializes a new instance of SapTableLinkedService. </summary>
 016        public SapTableLinkedService()
 17        {
 018            Type = "SapTable";
 019        }
 20
 21        /// <summary> Initializes a new instance of SapTableLinkedService. </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="server"> Host name of the SAP instance where the table is located. Type: string (or Expression 
 29        /// <param name="systemNumber"> System number of the SAP system where the table is located. (Usually a two-digit
 30        /// <param name="clientId"> Client ID of the client on the SAP system where the table is located. (Usually a thr
 31        /// <param name="language"> Language of the SAP system where the table is located. The default value is EN. Type
 32        /// <param name="systemId"> SystemID of the SAP system where the table is located. Type: string (or Expression w
 33        /// <param name="userName"> Username to access the SAP server where the table is located. Type: string (or Expre
 34        /// <param name="password"> Password to access the SAP server where the table is located. </param>
 35        /// <param name="messageServer"> The hostname of the SAP Message Server. Type: string (or Expression with result
 36        /// <param name="messageServerService"> The service name or port number of the Message Server. Type: string (or 
 37        /// <param name="sncMode"> SNC activation indicator to access the SAP server where the table is located. Must be
 38        /// <param name="sncMyName"> Initiator&apos;s SNC name to access the SAP server where the table is located. Type
 39        /// <param name="sncPartnerName"> Communication partner&apos;s SNC name to access the SAP server where the table
 40        /// <param name="sncLibraryPath"> External security product&apos;s library to access the SAP server where the ta
 41        /// <param name="sncQop"> SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expr
 42        /// <param name="logonGroup"> The Logon Group for the SAP System. Type: string (or Expression with resultType st
 43        /// <param name="encryptedCredential"> The encrypted credential used for authentication. Credentials are encrypt
 044        internal SapTableLinkedService(string type, IntegrationRuntimeReference connectVia, string description, IDiction
 45        {
 046            Server = server;
 047            SystemNumber = systemNumber;
 048            ClientId = clientId;
 049            Language = language;
 050            SystemId = systemId;
 051            UserName = userName;
 052            Password = password;
 053            MessageServer = messageServer;
 054            MessageServerService = messageServerService;
 055            SncMode = sncMode;
 056            SncMyName = sncMyName;
 057            SncPartnerName = sncPartnerName;
 058            SncLibraryPath = sncLibraryPath;
 059            SncQop = sncQop;
 060            LogonGroup = logonGroup;
 061            EncryptedCredential = encryptedCredential;
 062            Type = type ?? "SapTable";
 063        }
 64
 65        /// <summary> Host name of the SAP instance where the table is located. Type: string (or Expression with resultT
 066        public object Server { get; set; }
 67        /// <summary> System number of the SAP system where the table is located. (Usually a two-digit decimal number re
 068        public object SystemNumber { get; set; }
 69        /// <summary> Client ID of the client on the SAP system where the table is located. (Usually a three-digit decim
 070        public object ClientId { get; set; }
 71        /// <summary> Language of the SAP system where the table is located. The default value is EN. Type: string (or E
 072        public object Language { get; set; }
 73        /// <summary> SystemID of the SAP system where the table is located. Type: string (or Expression with resultType
 074        public object SystemId { get; set; }
 75        /// <summary> Username to access the SAP server where the table is located. Type: string (or Expression with res
 076        public object UserName { get; set; }
 77        /// <summary> Password to access the SAP server where the table is located. </summary>
 078        public SecretBase Password { get; set; }
 79        /// <summary> The hostname of the SAP Message Server. Type: string (or Expression with resultType string). </sum
 080        public object MessageServer { get; set; }
 81        /// <summary> The service name or port number of the Message Server. Type: string (or Expression with resultType
 082        public object MessageServerService { get; set; }
 83        /// <summary> SNC activation indicator to access the SAP server where the table is located. Must be either 0 (of
 084        public object SncMode { get; set; }
 85        /// <summary> Initiator&apos;s SNC name to access the SAP server where the table is located. Type: string (or Ex
 086        public object SncMyName { get; set; }
 87        /// <summary> Communication partner&apos;s SNC name to access the SAP server where the table is located. Type: s
 088        public object SncPartnerName { get; set; }
 89        /// <summary> External security product&apos;s library to access the SAP server where the table is located. Type
 090        public object SncLibraryPath { get; set; }
 91        /// <summary> SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with 
 092        public object SncQop { get; set; }
 93        /// <summary> The Logon Group for the SAP System. Type: string (or Expression with resultType string). </summary
 094        public object LogonGroup { get; set; }
 95        /// <summary> The encrypted credential used for authentication. Credentials are encrypted using the integration 
 096        public object EncryptedCredential { get; set; }
 97    }
 98}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SapTableLinkedService.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 SapTableLinkedService : 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(Server))
 55            {
 056                writer.WritePropertyName("server");
 057                writer.WriteObjectValue(Server);
 58            }
 059            if (Optional.IsDefined(SystemNumber))
 60            {
 061                writer.WritePropertyName("systemNumber");
 062                writer.WriteObjectValue(SystemNumber);
 63            }
 064            if (Optional.IsDefined(ClientId))
 65            {
 066                writer.WritePropertyName("clientId");
 067                writer.WriteObjectValue(ClientId);
 68            }
 069            if (Optional.IsDefined(Language))
 70            {
 071                writer.WritePropertyName("language");
 072                writer.WriteObjectValue(Language);
 73            }
 074            if (Optional.IsDefined(SystemId))
 75            {
 076                writer.WritePropertyName("systemId");
 077                writer.WriteObjectValue(SystemId);
 78            }
 079            if (Optional.IsDefined(UserName))
 80            {
 081                writer.WritePropertyName("userName");
 082                writer.WriteObjectValue(UserName);
 83            }
 084            if (Optional.IsDefined(Password))
 85            {
 086                writer.WritePropertyName("password");
 087                writer.WriteObjectValue(Password);
 88            }
 089            if (Optional.IsDefined(MessageServer))
 90            {
 091                writer.WritePropertyName("messageServer");
 092                writer.WriteObjectValue(MessageServer);
 93            }
 094            if (Optional.IsDefined(MessageServerService))
 95            {
 096                writer.WritePropertyName("messageServerService");
 097                writer.WriteObjectValue(MessageServerService);
 98            }
 099            if (Optional.IsDefined(SncMode))
 100            {
 0101                writer.WritePropertyName("sncMode");
 0102                writer.WriteObjectValue(SncMode);
 103            }
 0104            if (Optional.IsDefined(SncMyName))
 105            {
 0106                writer.WritePropertyName("sncMyName");
 0107                writer.WriteObjectValue(SncMyName);
 108            }
 0109            if (Optional.IsDefined(SncPartnerName))
 110            {
 0111                writer.WritePropertyName("sncPartnerName");
 0112                writer.WriteObjectValue(SncPartnerName);
 113            }
 0114            if (Optional.IsDefined(SncLibraryPath))
 115            {
 0116                writer.WritePropertyName("sncLibraryPath");
 0117                writer.WriteObjectValue(SncLibraryPath);
 118            }
 0119            if (Optional.IsDefined(SncQop))
 120            {
 0121                writer.WritePropertyName("sncQop");
 0122                writer.WriteObjectValue(SncQop);
 123            }
 0124            if (Optional.IsDefined(LogonGroup))
 125            {
 0126                writer.WritePropertyName("logonGroup");
 0127                writer.WriteObjectValue(LogonGroup);
 128            }
 0129            if (Optional.IsDefined(EncryptedCredential))
 130            {
 0131                writer.WritePropertyName("encryptedCredential");
 0132                writer.WriteObjectValue(EncryptedCredential);
 133            }
 0134            writer.WriteEndObject();
 0135            foreach (var item in AdditionalProperties)
 136            {
 0137                writer.WritePropertyName(item.Key);
 0138                writer.WriteObjectValue(item.Value);
 139            }
 0140            writer.WriteEndObject();
 0141        }
 142
 143        internal static SapTableLinkedService DeserializeSapTableLinkedService(JsonElement element)
 144        {
 0145            string type = default;
 0146            Optional<IntegrationRuntimeReference> connectVia = default;
 0147            Optional<string> description = default;
 0148            Optional<IDictionary<string, ParameterSpecification>> parameters = default;
 0149            Optional<IList<object>> annotations = default;
 0150            Optional<object> server = default;
 0151            Optional<object> systemNumber = default;
 0152            Optional<object> clientId = default;
 0153            Optional<object> language = default;
 0154            Optional<object> systemId = default;
 0155            Optional<object> userName = default;
 0156            Optional<SecretBase> password = default;
 0157            Optional<object> messageServer = default;
 0158            Optional<object> messageServerService = default;
 0159            Optional<object> sncMode = default;
 0160            Optional<object> sncMyName = default;
 0161            Optional<object> sncPartnerName = default;
 0162            Optional<object> sncLibraryPath = default;
 0163            Optional<object> sncQop = default;
 0164            Optional<object> logonGroup = default;
 0165            Optional<object> encryptedCredential = default;
 0166            IDictionary<string, object> additionalProperties = default;
 0167            Dictionary<string, object> additionalPropertiesDictionary = default;
 0168            foreach (var property in element.EnumerateObject())
 169            {
 0170                if (property.NameEquals("type"))
 171                {
 0172                    type = property.Value.GetString();
 0173                    continue;
 174                }
 0175                if (property.NameEquals("connectVia"))
 176                {
 0177                    connectVia = IntegrationRuntimeReference.DeserializeIntegrationRuntimeReference(property.Value);
 0178                    continue;
 179                }
 0180                if (property.NameEquals("description"))
 181                {
 0182                    description = property.Value.GetString();
 0183                    continue;
 184                }
 0185                if (property.NameEquals("parameters"))
 186                {
 0187                    Dictionary<string, ParameterSpecification> dictionary = new Dictionary<string, ParameterSpecificatio
 0188                    foreach (var property0 in property.Value.EnumerateObject())
 189                    {
 0190                        dictionary.Add(property0.Name, ParameterSpecification.DeserializeParameterSpecification(property
 191                    }
 0192                    parameters = dictionary;
 0193                    continue;
 194                }
 0195                if (property.NameEquals("annotations"))
 196                {
 0197                    List<object> array = new List<object>();
 0198                    foreach (var item in property.Value.EnumerateArray())
 199                    {
 0200                        array.Add(item.GetObject());
 201                    }
 0202                    annotations = array;
 0203                    continue;
 204                }
 0205                if (property.NameEquals("typeProperties"))
 206                {
 0207                    foreach (var property0 in property.Value.EnumerateObject())
 208                    {
 0209                        if (property0.NameEquals("server"))
 210                        {
 0211                            server = property0.Value.GetObject();
 0212                            continue;
 213                        }
 0214                        if (property0.NameEquals("systemNumber"))
 215                        {
 0216                            systemNumber = property0.Value.GetObject();
 0217                            continue;
 218                        }
 0219                        if (property0.NameEquals("clientId"))
 220                        {
 0221                            clientId = property0.Value.GetObject();
 0222                            continue;
 223                        }
 0224                        if (property0.NameEquals("language"))
 225                        {
 0226                            language = property0.Value.GetObject();
 0227                            continue;
 228                        }
 0229                        if (property0.NameEquals("systemId"))
 230                        {
 0231                            systemId = property0.Value.GetObject();
 0232                            continue;
 233                        }
 0234                        if (property0.NameEquals("userName"))
 235                        {
 0236                            userName = property0.Value.GetObject();
 0237                            continue;
 238                        }
 0239                        if (property0.NameEquals("password"))
 240                        {
 0241                            password = SecretBase.DeserializeSecretBase(property0.Value);
 0242                            continue;
 243                        }
 0244                        if (property0.NameEquals("messageServer"))
 245                        {
 0246                            messageServer = property0.Value.GetObject();
 0247                            continue;
 248                        }
 0249                        if (property0.NameEquals("messageServerService"))
 250                        {
 0251                            messageServerService = property0.Value.GetObject();
 0252                            continue;
 253                        }
 0254                        if (property0.NameEquals("sncMode"))
 255                        {
 0256                            sncMode = property0.Value.GetObject();
 0257                            continue;
 258                        }
 0259                        if (property0.NameEquals("sncMyName"))
 260                        {
 0261                            sncMyName = property0.Value.GetObject();
 0262                            continue;
 263                        }
 0264                        if (property0.NameEquals("sncPartnerName"))
 265                        {
 0266                            sncPartnerName = property0.Value.GetObject();
 0267                            continue;
 268                        }
 0269                        if (property0.NameEquals("sncLibraryPath"))
 270                        {
 0271                            sncLibraryPath = property0.Value.GetObject();
 0272                            continue;
 273                        }
 0274                        if (property0.NameEquals("sncQop"))
 275                        {
 0276                            sncQop = property0.Value.GetObject();
 0277                            continue;
 278                        }
 0279                        if (property0.NameEquals("logonGroup"))
 280                        {
 0281                            logonGroup = property0.Value.GetObject();
 0282                            continue;
 283                        }
 0284                        if (property0.NameEquals("encryptedCredential"))
 285                        {
 0286                            encryptedCredential = property0.Value.GetObject();
 287                            continue;
 288                        }
 289                    }
 290                    continue;
 291                }
 0292                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 0293                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 294            }
 0295            additionalProperties = additionalPropertiesDictionary;
 0296            return new SapTableLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(parameters
 297        }
 298    }
 299}