< Summary

Class:Azure.ResourceManager.Storage.Models.BlobRestoreRange
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\BlobRestoreRange.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\BlobRestoreRange.Serialization.cs
Covered lines:0
Uncovered lines:26
Coverable lines:26
Total lines:83
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_StartRange()-0%100%
get_EndRange()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%100%
DeserializeBlobRestoreRange(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\BlobRestoreRange.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.ResourceManager.Storage.Models
 11{
 12    /// <summary> Blob range. </summary>
 13    public partial class BlobRestoreRange
 14    {
 15        /// <summary> Initializes a new instance of BlobRestoreRange. </summary>
 16        /// <param name="startRange"> Blob start range. This is inclusive. Empty means account start. </param>
 17        /// <param name="endRange"> Blob end range. This is exclusive. Empty means account end. </param>
 018        public BlobRestoreRange(string startRange, string endRange)
 19        {
 020            if (startRange == null)
 21            {
 022                throw new ArgumentNullException(nameof(startRange));
 23            }
 024            if (endRange == null)
 25            {
 026                throw new ArgumentNullException(nameof(endRange));
 27            }
 28
 029            StartRange = startRange;
 030            EndRange = endRange;
 031        }
 32
 33        /// <summary> Blob start range. This is inclusive. Empty means account start. </summary>
 034        public string StartRange { get; set; }
 35        /// <summary> Blob end range. This is exclusive. Empty means account end. </summary>
 036        public string EndRange { get; set; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\BlobRestoreRange.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.ResourceManager.Storage.Models
 12{
 13    public partial class BlobRestoreRange : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("startRange");
 019            writer.WriteStringValue(StartRange);
 020            writer.WritePropertyName("endRange");
 021            writer.WriteStringValue(EndRange);
 022            writer.WriteEndObject();
 023        }
 24
 25        internal static BlobRestoreRange DeserializeBlobRestoreRange(JsonElement element)
 26        {
 027            string startRange = default;
 028            string endRange = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("startRange"))
 32                {
 033                    startRange = property.Value.GetString();
 034                    continue;
 35                }
 036                if (property.NameEquals("endRange"))
 37                {
 038                    endRange = property.Value.GetString();
 39                    continue;
 40                }
 41            }
 042            return new BlobRestoreRange(startRange, endRange);
 43        }
 44    }
 45}