< Summary

Class:Azure.ResourceManager.Storage.Models.Endpoints
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\Endpoints.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\Endpoints.Serialization.cs
Covered lines:54
Uncovered lines:34
Coverable lines:88
Total lines:205
Line coverage:61.3% (54 of 88)
Covered branches:32
Total branches:50
Branch coverage:64% (32 of 50)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Blob()-100%100%
get_Queue()-100%100%
get_Table()-100%100%
get_File()-100%100%
get_Web()-100%100%
get_Dfs()-100%100%
get_MicrosoftEndpoints()-0%100%
get_InternetEndpoints()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%
DeserializeEndpoints(...)-92.68%94.12%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\Endpoints.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, queue, table, web or dfs object. </sum
 11    public partial class Endpoints
 12    {
 13        /// <summary> Initializes a new instance of Endpoints. </summary>
 014        public Endpoints()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of Endpoints. </summary>
 19        /// <param name="blob"> Gets the blob endpoint. </param>
 20        /// <param name="queue"> Gets the queue endpoint. </param>
 21        /// <param name="table"> Gets the table endpoint. </param>
 22        /// <param name="file"> Gets the file endpoint. </param>
 23        /// <param name="web"> Gets the web endpoint. </param>
 24        /// <param name="dfs"> Gets the dfs endpoint. </param>
 25        /// <param name="microsoftEndpoints"> Gets the microsoft routing storage endpoints. </param>
 26        /// <param name="internetEndpoints"> Gets the internet routing storage endpoints. </param>
 99627        internal Endpoints(string blob, string queue, string table, string file, string web, string dfs, StorageAccountM
 28        {
 99629            Blob = blob;
 99630            Queue = queue;
 99631            Table = table;
 99632            File = file;
 99633            Web = web;
 99634            Dfs = dfs;
 99635            MicrosoftEndpoints = microsoftEndpoints;
 99636            InternetEndpoints = internetEndpoints;
 99637        }
 38
 39        /// <summary> Gets the blob endpoint. </summary>
 16840        public string Blob { get; }
 41        /// <summary> Gets the queue endpoint. </summary>
 13642        public string Queue { get; }
 43        /// <summary> Gets the table endpoint. </summary>
 13644        public string Table { get; }
 45        /// <summary> Gets the file endpoint. </summary>
 13646        public string File { get; }
 47        /// <summary> Gets the web endpoint. </summary>
 1248        public string Web { get; }
 49        /// <summary> Gets the dfs endpoint. </summary>
 850        public string Dfs { get; }
 51        /// <summary> Gets the microsoft routing storage endpoints. </summary>
 052        public StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get; set; }
 53        /// <summary> Gets the internet routing storage endpoints. </summary>
 054        public StorageAccountInternetEndpoints InternetEndpoints { get; set; }
 55    }
 56}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\Endpoints.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 Endpoints : 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 (Queue != null)
 24            {
 025                writer.WritePropertyName("queue");
 026                writer.WriteStringValue(Queue);
 27            }
 028            if (Table != null)
 29            {
 030                writer.WritePropertyName("table");
 031                writer.WriteStringValue(Table);
 32            }
 033            if (File != null)
 34            {
 035                writer.WritePropertyName("file");
 036                writer.WriteStringValue(File);
 37            }
 038            if (Web != null)
 39            {
 040                writer.WritePropertyName("web");
 041                writer.WriteStringValue(Web);
 42            }
 043            if (Dfs != null)
 44            {
 045                writer.WritePropertyName("dfs");
 046                writer.WriteStringValue(Dfs);
 47            }
 048            if (MicrosoftEndpoints != null)
 49            {
 050                writer.WritePropertyName("microsoftEndpoints");
 051                writer.WriteObjectValue(MicrosoftEndpoints);
 52            }
 053            if (InternetEndpoints != null)
 54            {
 055                writer.WritePropertyName("internetEndpoints");
 056                writer.WriteObjectValue(InternetEndpoints);
 57            }
 058            writer.WriteEndObject();
 059        }
 60
 61        internal static Endpoints DeserializeEndpoints(JsonElement element)
 62        {
 99663            string blob = default;
 99664            string queue = default;
 99665            string table = default;
 99666            string file = default;
 99667            string web = default;
 99668            string dfs = default;
 99669            StorageAccountMicrosoftEndpoints microsoftEndpoints = default;
 99670            StorageAccountInternetEndpoints internetEndpoints = default;
 1066471            foreach (var property in element.EnumerateObject())
 72            {
 433673                if (property.NameEquals("blob"))
 74                {
 98875                    if (property.Value.ValueKind == JsonValueKind.Null)
 76                    {
 77                        continue;
 78                    }
 98879                    blob = property.Value.GetString();
 98880                    continue;
 81                }
 334882                if (property.NameEquals("queue"))
 83                {
 88884                    if (property.Value.ValueKind == JsonValueKind.Null)
 85                    {
 86                        continue;
 87                    }
 88888                    queue = property.Value.GetString();
 88889                    continue;
 90                }
 246091                if (property.NameEquals("table"))
 92                {
 96893                    if (property.Value.ValueKind == JsonValueKind.Null)
 94                    {
 95                        continue;
 96                    }
 96897                    table = property.Value.GetString();
 96898                    continue;
 99                }
 1492100                if (property.NameEquals("file"))
 101                {
 756102                    if (property.Value.ValueKind == JsonValueKind.Null)
 103                    {
 104                        continue;
 105                    }
 756106                    file = property.Value.GetString();
 756107                    continue;
 108                }
 736109                if (property.NameEquals("web"))
 110                {
 328111                    if (property.Value.ValueKind == JsonValueKind.Null)
 112                    {
 113                        continue;
 114                    }
 328115                    web = property.Value.GetString();
 328116                    continue;
 117                }
 408118                if (property.NameEquals("dfs"))
 119                {
 404120                    if (property.Value.ValueKind == JsonValueKind.Null)
 121                    {
 122                        continue;
 123                    }
 404124                    dfs = property.Value.GetString();
 404125                    continue;
 126                }
 4127                if (property.NameEquals("microsoftEndpoints"))
 128                {
 0129                    if (property.Value.ValueKind == JsonValueKind.Null)
 130                    {
 131                        continue;
 132                    }
 0133                    microsoftEndpoints = StorageAccountMicrosoftEndpoints.DeserializeStorageAccountMicrosoftEndpoints(pr
 0134                    continue;
 135                }
 4136                if (property.NameEquals("internetEndpoints"))
 137                {
 4138                    if (property.Value.ValueKind == JsonValueKind.Null)
 139                    {
 140                        continue;
 141                    }
 4142                    internetEndpoints = StorageAccountInternetEndpoints.DeserializeStorageAccountInternetEndpoints(prope
 143                    continue;
 144                }
 145            }
 996146            return new Endpoints(blob, queue, table, file, web, dfs, microsoftEndpoints, internetEndpoints);
 147        }
 148    }
 149}