< Summary

Class:Azure.Security.KeyVault.Administration.ServiceFullRestoreOperationHeaders
Assembly:Azure.Security.KeyVault.Administration
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\ServiceFullRestoreOperationHeaders.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:25
Line coverage:100% (5 of 5)
Covered branches:2
Total branches:4
Branch coverage:50% (2 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_RetryAfter()-100%50%
get_AzureAsyncOperation()-100%50%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\ServiceFullRestoreOperationHeaders.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 Azure;
 9using Azure.Core;
 10
 11namespace Azure.Security.KeyVault.Administration
 12{
 13    internal class ServiceFullRestoreOperationHeaders
 14    {
 15        private readonly Response _response;
 416        public ServiceFullRestoreOperationHeaders(Response response)
 17        {
 418            _response = response;
 419        }
 20        /// <summary> The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation
 421        public int? RetryAfter => _response.Headers.TryGetValue("Retry-After", out int? value) ? value : null;
 22        /// <summary> The URI to poll for completion status. </summary>
 423        public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? v
 24    }
 25}