< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_SasTokenParameters()-0%100%
get_Folder()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\SelectiveKeyRestoreOperationParameters.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 SelectiveKeyRestoreOperationParameters. </summary>
 13    internal partial class SelectiveKeyRestoreOperationParameters
 14    {
 15        /// <summary> Initializes a new instance of SelectiveKeyRestoreOperationParameters. </summary>
 16        /// <param name="sasTokenParameters"> . </param>
 17        /// <param name="folder"> The Folder name of the blob where the previous successful full backup was stored. </pa
 18        /// <exception cref="ArgumentNullException"> <paramref name="sasTokenParameters"/> or <paramref name="folder"/> 
 019        public SelectiveKeyRestoreOperationParameters(SASTokenParameter sasTokenParameters, string folder)
 20        {
 021            if (sasTokenParameters == null)
 22            {
 023                throw new ArgumentNullException(nameof(sasTokenParameters));
 24            }
 025            if (folder == null)
 26            {
 027                throw new ArgumentNullException(nameof(folder));
 28            }
 29
 030            SasTokenParameters = sasTokenParameters;
 031            Folder = folder;
 032        }
 33
 034        public SASTokenParameter SasTokenParameters { get; }
 35        /// <summary> The Folder name of the blob where the previous successful full backup was stored. </summary>
 036        public string Folder { get; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.Security.KeyVault.Administration\src\Generated\Models\SelectiveKeyRestoreOperationParameters.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 SelectiveKeyRestoreOperationParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("sasTokenParameters");
 019            writer.WriteObjectValue(SasTokenParameters);
 020            writer.WritePropertyName("folder");
 021            writer.WriteStringValue(Folder);
 022            writer.WriteEndObject();
 023        }
 24    }
 25}