< Summary

Class:Azure.ResourceManager.Storage.Models.ListServiceSasResponse
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListServiceSasResponse.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListServiceSasResponse.Serialization.cs
Covered lines:10
Uncovered lines:2
Coverable lines:12
Total lines:61
Line coverage:83.3% (10 of 12)
Covered branches:6
Total branches:6
Branch coverage:100% (6 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_ServiceSasToken()-100%100%
DeserializeListServiceSasResponse(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListServiceSasResponse.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 List service SAS credentials operation response. </summary>
 11    public partial class ListServiceSasResponse
 12    {
 13        /// <summary> Initializes a new instance of ListServiceSasResponse. </summary>
 014        internal ListServiceSasResponse()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of ListServiceSasResponse. </summary>
 19        /// <param name="serviceSasToken"> List service SAS credentials of specific resource. </param>
 820        internal ListServiceSasResponse(string serviceSasToken)
 21        {
 822            ServiceSasToken = serviceSasToken;
 823        }
 24
 25        /// <summary> List service SAS credentials of specific resource. </summary>
 826        public string ServiceSasToken { get; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\ListServiceSasResponse.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 ListServiceSasResponse
 14    {
 15        internal static ListServiceSasResponse DeserializeListServiceSasResponse(JsonElement element)
 16        {
 817            string serviceSasToken = default;
 3218            foreach (var property in element.EnumerateObject())
 19            {
 820                if (property.NameEquals("serviceSasToken"))
 21                {
 822                    if (property.Value.ValueKind == JsonValueKind.Null)
 23                    {
 24                        continue;
 25                    }
 826                    serviceSasToken = property.Value.GetString();
 27                    continue;
 28                }
 29            }
 830            return new ListServiceSasResponse(serviceSasToken);
 31        }
 32    }
 33}