< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_FilePath()-0%100%
get_LinkedServiceName()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%100%
DeserializeAzureMLWebServiceFile(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\AzureMLWebServiceFile.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> Azure ML WebService Input/Output file. </summary>
 13    public partial class AzureMLWebServiceFile
 14    {
 15        /// <summary> Initializes a new instance of AzureMLWebServiceFile. </summary>
 16        /// <param name="filePath"> The relative file path, including container name, in the Azure Blob Storage specifie
 17        /// <param name="linkedServiceName"> Reference to an Azure Storage LinkedService, where Azure ML WebService Inpu
 18        /// <exception cref="ArgumentNullException"> <paramref name="filePath"/> or <paramref name="linkedServiceName"/>
 019        public AzureMLWebServiceFile(object filePath, LinkedServiceReference linkedServiceName)
 20        {
 021            if (filePath == null)
 22            {
 023                throw new ArgumentNullException(nameof(filePath));
 24            }
 025            if (linkedServiceName == null)
 26            {
 027                throw new ArgumentNullException(nameof(linkedServiceName));
 28            }
 29
 030            FilePath = filePath;
 031            LinkedServiceName = linkedServiceName;
 032        }
 33
 34        /// <summary> The relative file path, including container name, in the Azure Blob Storage specified by the Linke
 035        public object FilePath { get; set; }
 36        /// <summary> Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. 
 037        public LinkedServiceReference LinkedServiceName { get; set; }
 38    }
 39}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\AzureMLWebServiceFile.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 AzureMLWebServiceFile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("filePath");
 019            writer.WriteObjectValue(FilePath);
 020            writer.WritePropertyName("linkedServiceName");
 021            writer.WriteObjectValue(LinkedServiceName);
 022            writer.WriteEndObject();
 023        }
 24
 25        internal static AzureMLWebServiceFile DeserializeAzureMLWebServiceFile(JsonElement element)
 26        {
 027            object filePath = default;
 028            LinkedServiceReference linkedServiceName = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("filePath"))
 32                {
 033                    filePath = property.Value.GetObject();
 034                    continue;
 35                }
 036                if (property.NameEquals("linkedServiceName"))
 37                {
 038                    linkedServiceName = LinkedServiceReference.DeserializeLinkedServiceReference(property.Value);
 39                    continue;
 40                }
 41            }
 042            return new AzureMLWebServiceFile(filePath, linkedServiceName);
 43        }
 44    }
 45}