< Summary

Class:Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountInternetEndpoints.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountInternetEndpoints.Serialization.cs
Covered lines:27
Uncovered lines:21
Coverable lines:48
Total lines:129
Line coverage:56.2% (27 of 48)
Covered branches:18
Total branches:26
Branch coverage:69.2% (18 of 26)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Blob()-0%100%
get_File()-0%100%
get_Web()-0%100%
get_Dfs()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeStorageAccountInternetEndpoints(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountInternetEndpoints.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
 8namespace Azure.ResourceManager.Storage.Models
 9{
 10    /// <summary> The URIs that are used to perform a retrieval of a public blob, file, web or dfs object via a internet
 11    public partial class StorageAccountInternetEndpoints
 12    {
 13        /// <summary> Initializes a new instance of StorageAccountInternetEndpoints. </summary>
 014        public StorageAccountInternetEndpoints()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of StorageAccountInternetEndpoints. </summary>
 19        /// <param name="blob"> Gets the blob endpoint. </param>
 20        /// <param name="file"> Gets the file endpoint. </param>
 21        /// <param name="web"> Gets the web endpoint. </param>
 22        /// <param name="dfs"> Gets the dfs endpoint. </param>
 423        internal StorageAccountInternetEndpoints(string blob, string file, string web, string dfs)
 24        {
 425            Blob = blob;
 426            File = file;
 427            Web = web;
 428            Dfs = dfs;
 429        }
 30
 31        /// <summary> Gets the blob endpoint. </summary>
 032        public string Blob { get; }
 33        /// <summary> Gets the file endpoint. </summary>
 034        public string File { get; }
 35        /// <summary> Gets the web endpoint. </summary>
 036        public string Web { get; }
 37        /// <summary> Gets the dfs endpoint. </summary>
 038        public string Dfs { get; }
 39    }
 40}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountInternetEndpoints.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 StorageAccountInternetEndpoints : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Blob != null)
 19            {
 020                writer.WritePropertyName("blob");
 021                writer.WriteStringValue(Blob);
 22            }
 023            if (File != null)
 24            {
 025                writer.WritePropertyName("file");
 026                writer.WriteStringValue(File);
 27            }
 028            if (Web != null)
 29            {
 030                writer.WritePropertyName("web");
 031                writer.WriteStringValue(Web);
 32            }
 033            if (Dfs != null)
 34            {
 035                writer.WritePropertyName("dfs");
 036                writer.WriteStringValue(Dfs);
 37            }
 038            writer.WriteEndObject();
 039        }
 40
 41        internal static StorageAccountInternetEndpoints DeserializeStorageAccountInternetEndpoints(JsonElement element)
 42        {
 443            string blob = default;
 444            string file = default;
 445            string web = default;
 446            string dfs = default;
 4047            foreach (var property in element.EnumerateObject())
 48            {
 1649                if (property.NameEquals("blob"))
 50                {
 451                    if (property.Value.ValueKind == JsonValueKind.Null)
 52                    {
 53                        continue;
 54                    }
 455                    blob = property.Value.GetString();
 456                    continue;
 57                }
 1258                if (property.NameEquals("file"))
 59                {
 460                    if (property.Value.ValueKind == JsonValueKind.Null)
 61                    {
 62                        continue;
 63                    }
 464                    file = property.Value.GetString();
 465                    continue;
 66                }
 867                if (property.NameEquals("web"))
 68                {
 469                    if (property.Value.ValueKind == JsonValueKind.Null)
 70                    {
 71                        continue;
 72                    }
 473                    web = property.Value.GetString();
 474                    continue;
 75                }
 476                if (property.NameEquals("dfs"))
 77                {
 478                    if (property.Value.ValueKind == JsonValueKind.Null)
 79                    {
 80                        continue;
 81                    }
 482                    dfs = property.Value.GetString();
 83                    continue;
 84                }
 85            }
 486            return new StorageAccountInternetEndpoints(blob, file, web, dfs);
 87        }
 88    }
 89}