< Summary

Class:Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountMicrosoftEndpoints.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountMicrosoftEndpoints.Serialization.cs
Covered lines:0
Uncovered lines:68
Coverable lines:68
Total lines:167
Line coverage:0% (0 of 68)
Covered branches:0
Total branches:38
Branch coverage:0% (0 of 38)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountMicrosoftEndpoints.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 via a 
 11    public partial class StorageAccountMicrosoftEndpoints
 12    {
 13        /// <summary> Initializes a new instance of StorageAccountMicrosoftEndpoints. </summary>
 014        public StorageAccountMicrosoftEndpoints()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of StorageAccountMicrosoftEndpoints. </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>
 025        internal StorageAccountMicrosoftEndpoints(string blob, string queue, string table, string file, string web, stri
 26        {
 027            Blob = blob;
 028            Queue = queue;
 029            Table = table;
 030            File = file;
 031            Web = web;
 032            Dfs = dfs;
 033        }
 34
 35        /// <summary> Gets the blob endpoint. </summary>
 036        public string Blob { get; }
 37        /// <summary> Gets the queue endpoint. </summary>
 038        public string Queue { get; }
 39        /// <summary> Gets the table endpoint. </summary>
 040        public string Table { get; }
 41        /// <summary> Gets the file endpoint. </summary>
 042        public string File { get; }
 43        /// <summary> Gets the web endpoint. </summary>
 044        public string Web { get; }
 45        /// <summary> Gets the dfs endpoint. </summary>
 046        public string Dfs { get; }
 47    }
 48}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\StorageAccountMicrosoftEndpoints.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 StorageAccountMicrosoftEndpoints : 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            writer.WriteEndObject();
 049        }
 50
 51        internal static StorageAccountMicrosoftEndpoints DeserializeStorageAccountMicrosoftEndpoints(JsonElement element
 52        {
 053            string blob = default;
 054            string queue = default;
 055            string table = default;
 056            string file = default;
 057            string web = default;
 058            string dfs = default;
 059            foreach (var property in element.EnumerateObject())
 60            {
 061                if (property.NameEquals("blob"))
 62                {
 063                    if (property.Value.ValueKind == JsonValueKind.Null)
 64                    {
 65                        continue;
 66                    }
 067                    blob = property.Value.GetString();
 068                    continue;
 69                }
 070                if (property.NameEquals("queue"))
 71                {
 072                    if (property.Value.ValueKind == JsonValueKind.Null)
 73                    {
 74                        continue;
 75                    }
 076                    queue = property.Value.GetString();
 077                    continue;
 78                }
 079                if (property.NameEquals("table"))
 80                {
 081                    if (property.Value.ValueKind == JsonValueKind.Null)
 82                    {
 83                        continue;
 84                    }
 085                    table = property.Value.GetString();
 086                    continue;
 87                }
 088                if (property.NameEquals("file"))
 89                {
 090                    if (property.Value.ValueKind == JsonValueKind.Null)
 91                    {
 92                        continue;
 93                    }
 094                    file = property.Value.GetString();
 095                    continue;
 96                }
 097                if (property.NameEquals("web"))
 98                {
 099                    if (property.Value.ValueKind == JsonValueKind.Null)
 100                    {
 101                        continue;
 102                    }
 0103                    web = property.Value.GetString();
 0104                    continue;
 105                }
 0106                if (property.NameEquals("dfs"))
 107                {
 0108                    if (property.Value.ValueKind == JsonValueKind.Null)
 109                    {
 110                        continue;
 111                    }
 0112                    dfs = property.Value.GetString();
 113                    continue;
 114                }
 115            }
 0116            return new StorageAccountMicrosoftEndpoints(blob, queue, table, file, web, dfs);
 117        }
 118    }
 119}