< Summary

Class:Azure.Security.KeyVault.Administration.Models.RestoreOperationParameters
Assembly:Azure.Security.KeyVault.Administration
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RestoreOperationParameters.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RestoreOperationParameters.Serialization.cs
Covered lines:15
Uncovered lines:2
Coverable lines:17
Total lines:63
Line coverage:88.2% (15 of 17)
Covered branches:2
Total branches:4
Branch coverage:50% (2 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-75%50%
get_SasTokenParameters()-100%100%
get_FolderToRestore()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RestoreOperationParameters.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;
 9
 10namespace Azure.Security.KeyVault.Administration.Models
 11{
 12    /// <summary> The RestoreOperationParameters. </summary>
 13    internal partial class RestoreOperationParameters
 14    {
 15        /// <summary> Initializes a new instance of RestoreOperationParameters. </summary>
 16        /// <param name="sasTokenParameters"> . </param>
 17        /// <param name="folderToRestore"> The Folder name of the blob where the previous successful full backup was sto
 18        /// <exception cref="ArgumentNullException"> <paramref name="sasTokenParameters"/> or <paramref name="folderToRe
 419        public RestoreOperationParameters(SASTokenParameter sasTokenParameters, string folderToRestore)
 20        {
 421            if (sasTokenParameters == null)
 22            {
 023                throw new ArgumentNullException(nameof(sasTokenParameters));
 24            }
 425            if (folderToRestore == null)
 26            {
 027                throw new ArgumentNullException(nameof(folderToRestore));
 28            }
 29
 430            SasTokenParameters = sasTokenParameters;
 431            FolderToRestore = folderToRestore;
 432        }
 33
 434        public SASTokenParameter SasTokenParameters { get; }
 35        /// <summary> The Folder name of the blob where the previous successful full backup was stored. </summary>
 436        public string FolderToRestore { get; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\RestoreOperationParameters.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.Security.KeyVault.Administration.Models
 12{
 13    internal partial class RestoreOperationParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 417            writer.WriteStartObject();
 418            writer.WritePropertyName("sasTokenParameters");
 419            writer.WriteObjectValue(SasTokenParameters);
 420            writer.WritePropertyName("folderToRestore");
 421            writer.WriteStringValue(FolderToRestore);
 422            writer.WriteEndObject();
 423        }
 24    }
 25}