< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%0%
get_Host()-0%100%
get_Port()-0%100%
get_Username()-0%100%
get_Password()-0%100%
get_UseEncryptedEndpoints()-0%100%
get_UseHostVerification()-0%100%
get_UsePeerVerification()-0%100%
get_EncryptedCredential()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeJiraLinkedService(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\JiraLinkedService.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;
 9using System.Collections.Generic;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    /// <summary> Jira Service linked service. </summary>
 14    public partial class JiraLinkedService : LinkedService
 15    {
 16        /// <summary> Initializes a new instance of JiraLinkedService. </summary>
 17        /// <param name="host"> The IP address or host name of the Jira service. (e.g. jira.example.com). </param>
 18        /// <param name="username"> The user name that you use to access Jira Service. </param>
 19        /// <exception cref="ArgumentNullException"> <paramref name="host"/> or <paramref name="username"/> is null. </e
 020        public JiraLinkedService(object host, object username)
 21        {
 022            if (host == null)
 23            {
 024                throw new ArgumentNullException(nameof(host));
 25            }
 026            if (username == null)
 27            {
 028                throw new ArgumentNullException(nameof(username));
 29            }
 30
 031            Host = host;
 032            Username = username;
 033            Type = "Jira";
 034        }
 35
 36        /// <summary> Initializes a new instance of JiraLinkedService. </summary>
 37        /// <param name="type"> Type of linked service. </param>
 38        /// <param name="connectVia"> The integration runtime reference. </param>
 39        /// <param name="description"> Linked service description. </param>
 40        /// <param name="parameters"> Parameters for linked service. </param>
 41        /// <param name="annotations"> List of tags that can be used for describing the linked service. </param>
 42        /// <param name="additionalProperties"> . </param>
 43        /// <param name="host"> The IP address or host name of the Jira service. (e.g. jira.example.com). </param>
 44        /// <param name="port"> The TCP port that the Jira server uses to listen for client connections. The default val
 45        /// <param name="username"> The user name that you use to access Jira Service. </param>
 46        /// <param name="password"> The password corresponding to the user name that you provided in the username field.
 47        /// <param name="useEncryptedEndpoints"> Specifies whether the data source endpoints are encrypted using HTTPS. 
 48        /// <param name="useHostVerification"> Specifies whether to require the host name in the server&apos;s certifica
 49        /// <param name="usePeerVerification"> Specifies whether to verify the identity of the server when connecting ov
 50        /// <param name="encryptedCredential"> The encrypted credential used for authentication. Credentials are encrypt
 051        internal JiraLinkedService(string type, IntegrationRuntimeReference connectVia, string description, IDictionary<
 52        {
 053            Host = host;
 054            Port = port;
 055            Username = username;
 056            Password = password;
 057            UseEncryptedEndpoints = useEncryptedEndpoints;
 058            UseHostVerification = useHostVerification;
 059            UsePeerVerification = usePeerVerification;
 060            EncryptedCredential = encryptedCredential;
 061            Type = type ?? "Jira";
 062        }
 63
 64        /// <summary> The IP address or host name of the Jira service. (e.g. jira.example.com). </summary>
 065        public object Host { get; set; }
 66        /// <summary> The TCP port that the Jira server uses to listen for client connections. The default value is 443 
 067        public object Port { get; set; }
 68        /// <summary> The user name that you use to access Jira Service. </summary>
 069        public object Username { get; set; }
 70        /// <summary> The password corresponding to the user name that you provided in the username field. </summary>
 071        public SecretBase Password { get; set; }
 72        /// <summary> Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. 
 073        public object UseEncryptedEndpoints { get; set; }
 74        /// <summary> Specifies whether to require the host name in the server&apos;s certificate to match the host name
 075        public object UseHostVerification { get; set; }
 76        /// <summary> Specifies whether to verify the identity of the server when connecting over SSL. The default value
 077        public object UsePeerVerification { get; set; }
 78        /// <summary> The encrypted credential used for authentication. Credentials are encrypted using the integration 
 079        public object EncryptedCredential { get; set; }
 80    }
 81}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\JiraLinkedService.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 JiraLinkedService : 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            writer.WritePropertyName("host");
 055            writer.WriteObjectValue(Host);
 056            if (Optional.IsDefined(Port))
 57            {
 058                writer.WritePropertyName("port");
 059                writer.WriteObjectValue(Port);
 60            }
 061            writer.WritePropertyName("username");
 062            writer.WriteObjectValue(Username);
 063            if (Optional.IsDefined(Password))
 64            {
 065                writer.WritePropertyName("password");
 066                writer.WriteObjectValue(Password);
 67            }
 068            if (Optional.IsDefined(UseEncryptedEndpoints))
 69            {
 070                writer.WritePropertyName("useEncryptedEndpoints");
 071                writer.WriteObjectValue(UseEncryptedEndpoints);
 72            }
 073            if (Optional.IsDefined(UseHostVerification))
 74            {
 075                writer.WritePropertyName("useHostVerification");
 076                writer.WriteObjectValue(UseHostVerification);
 77            }
 078            if (Optional.IsDefined(UsePeerVerification))
 79            {
 080                writer.WritePropertyName("usePeerVerification");
 081                writer.WriteObjectValue(UsePeerVerification);
 82            }
 083            if (Optional.IsDefined(EncryptedCredential))
 84            {
 085                writer.WritePropertyName("encryptedCredential");
 086                writer.WriteObjectValue(EncryptedCredential);
 87            }
 088            writer.WriteEndObject();
 089            foreach (var item in AdditionalProperties)
 90            {
 091                writer.WritePropertyName(item.Key);
 092                writer.WriteObjectValue(item.Value);
 93            }
 094            writer.WriteEndObject();
 095        }
 96
 97        internal static JiraLinkedService DeserializeJiraLinkedService(JsonElement element)
 98        {
 099            string type = default;
 0100            Optional<IntegrationRuntimeReference> connectVia = default;
 0101            Optional<string> description = default;
 0102            Optional<IDictionary<string, ParameterSpecification>> parameters = default;
 0103            Optional<IList<object>> annotations = default;
 0104            object host = default;
 0105            Optional<object> port = default;
 0106            object username = default;
 0107            Optional<SecretBase> password = default;
 0108            Optional<object> useEncryptedEndpoints = default;
 0109            Optional<object> useHostVerification = default;
 0110            Optional<object> usePeerVerification = default;
 0111            Optional<object> encryptedCredential = default;
 0112            IDictionary<string, object> additionalProperties = default;
 0113            Dictionary<string, object> additionalPropertiesDictionary = default;
 0114            foreach (var property in element.EnumerateObject())
 115            {
 0116                if (property.NameEquals("type"))
 117                {
 0118                    type = property.Value.GetString();
 0119                    continue;
 120                }
 0121                if (property.NameEquals("connectVia"))
 122                {
 0123                    connectVia = IntegrationRuntimeReference.DeserializeIntegrationRuntimeReference(property.Value);
 0124                    continue;
 125                }
 0126                if (property.NameEquals("description"))
 127                {
 0128                    description = property.Value.GetString();
 0129                    continue;
 130                }
 0131                if (property.NameEquals("parameters"))
 132                {
 0133                    Dictionary<string, ParameterSpecification> dictionary = new Dictionary<string, ParameterSpecificatio
 0134                    foreach (var property0 in property.Value.EnumerateObject())
 135                    {
 0136                        dictionary.Add(property0.Name, ParameterSpecification.DeserializeParameterSpecification(property
 137                    }
 0138                    parameters = dictionary;
 0139                    continue;
 140                }
 0141                if (property.NameEquals("annotations"))
 142                {
 0143                    List<object> array = new List<object>();
 0144                    foreach (var item in property.Value.EnumerateArray())
 145                    {
 0146                        array.Add(item.GetObject());
 147                    }
 0148                    annotations = array;
 0149                    continue;
 150                }
 0151                if (property.NameEquals("typeProperties"))
 152                {
 0153                    foreach (var property0 in property.Value.EnumerateObject())
 154                    {
 0155                        if (property0.NameEquals("host"))
 156                        {
 0157                            host = property0.Value.GetObject();
 0158                            continue;
 159                        }
 0160                        if (property0.NameEquals("port"))
 161                        {
 0162                            port = property0.Value.GetObject();
 0163                            continue;
 164                        }
 0165                        if (property0.NameEquals("username"))
 166                        {
 0167                            username = property0.Value.GetObject();
 0168                            continue;
 169                        }
 0170                        if (property0.NameEquals("password"))
 171                        {
 0172                            password = SecretBase.DeserializeSecretBase(property0.Value);
 0173                            continue;
 174                        }
 0175                        if (property0.NameEquals("useEncryptedEndpoints"))
 176                        {
 0177                            useEncryptedEndpoints = property0.Value.GetObject();
 0178                            continue;
 179                        }
 0180                        if (property0.NameEquals("useHostVerification"))
 181                        {
 0182                            useHostVerification = property0.Value.GetObject();
 0183                            continue;
 184                        }
 0185                        if (property0.NameEquals("usePeerVerification"))
 186                        {
 0187                            usePeerVerification = property0.Value.GetObject();
 0188                            continue;
 189                        }
 0190                        if (property0.NameEquals("encryptedCredential"))
 191                        {
 0192                            encryptedCredential = property0.Value.GetObject();
 193                            continue;
 194                        }
 195                    }
 196                    continue;
 197                }
 0198                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 0199                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 200            }
 0201            additionalProperties = additionalPropertiesDictionary;
 0202            return new JiraLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(parameters), O
 203        }
 204    }
 205}