< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DatasetBZip2Compression.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> The BZip2 compression method used on a dataset. </summary>
 13    public partial class DatasetBZip2Compression : DatasetCompression
 14    {
 15        /// <summary> Initializes a new instance of DatasetBZip2Compression. </summary>
 016        public DatasetBZip2Compression()
 17        {
 018            Type = "BZip2";
 019        }
 20
 21        /// <summary> Initializes a new instance of DatasetBZip2Compression. </summary>
 22        /// <param name="type"> Type of dataset compression. </param>
 23        /// <param name="additionalProperties"> . </param>
 024        internal DatasetBZip2Compression(string type, IDictionary<string, object> additionalProperties) : base(type, add
 25        {
 026            Type = type ?? "BZip2";
 027        }
 28    }
 29}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\DatasetBZip2Compression.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 DatasetBZip2Compression : IUtf8JsonSerializable
 15    {
 16        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 17        {
 018            writer.WriteStartObject();
 019            writer.WritePropertyName("type");
 020            writer.WriteStringValue(Type);
 021            foreach (var item in AdditionalProperties)
 22            {
 023                writer.WritePropertyName(item.Key);
 024                writer.WriteObjectValue(item.Value);
 25            }
 026            writer.WriteEndObject();
 027        }
 28
 29        internal static DatasetBZip2Compression DeserializeDatasetBZip2Compression(JsonElement element)
 30        {
 031            string type = default;
 032            IDictionary<string, object> additionalProperties = default;
 033            Dictionary<string, object> additionalPropertiesDictionary = default;
 034            foreach (var property in element.EnumerateObject())
 35            {
 036                if (property.NameEquals("type"))
 37                {
 038                    type = property.Value.GetString();
 039                    continue;
 40                }
 041                additionalPropertiesDictionary ??= new Dictionary<string, object>();
 042                additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject());
 43            }
 044            additionalProperties = additionalPropertiesDictionary;
 045            return new DatasetBZip2Compression(type, additionalProperties);
 46        }
 47    }
 48}