< Summary

Class:Azure.Storage.Files.DataLake.Models.UserDelegationKey
Assembly:Azure.Storage.Files.DataLake
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.DataLake\src\Models\UserDelegationKey.cs
Covered lines:16
Uncovered lines:1
Coverable lines:17
Total lines:67
Line coverage:94.1% (16 of 17)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_SignedObjectId()-100%100%
get_SignedTenantId()-100%100%
get_SignedStartsOn()-100%100%
get_SignedExpiresOn()-100%100%
get_SignedService()-100%100%
get_SignedVersion()-100%100%
get_Value()-100%100%
.ctor()-0%100%
.ctor(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.DataLake\src\Models\UserDelegationKey.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Collections.Generic;
 6using System.Text;
 7
 8namespace Azure.Storage.Files.DataLake.Models
 9{
 10    /// <summary>
 11    /// A user delegation key
 12    /// </summary>
 13    public class UserDelegationKey
 14    {
 15        /// <summary>
 16        /// The Azure Active Directory object ID in GUID format.
 17        /// </summary>
 11618        public string SignedObjectId { get; internal set; }
 19
 20        /// <summary>
 21        /// The Azure Active Directory tenant ID in GUID format
 22        /// </summary>
 11623        public string SignedTenantId { get; internal set; }
 24
 25        /// <summary>
 26        /// The date-time the key is active
 27        /// </summary>
 11628        public DateTimeOffset SignedStartsOn { get; internal set; }
 29
 30        /// <summary>
 31        /// The date-time the key expires
 32        /// </summary>
 11633        public DateTimeOffset SignedExpiresOn { get; internal set; }
 34
 35        /// <summary>
 36        /// Abbreviation of the Azure Storage service that accepts the key
 37        /// </summary>
 11638        public string SignedService { get; internal set; }
 39
 40        /// <summary>
 41        /// The service version that created the key
 42        /// </summary>
 11643        public string SignedVersion { get; internal set; }
 44
 45        /// <summary>
 46        /// The key as a base64 string
 47        /// </summary>
 6848        public string Value { get; internal set; }
 49
 50        /// <summary>
 51        /// Prevent direct instantiation of UserDelegationKey instances.
 52        /// You can use DataLakeModelFactory.UserDelegationKey instead.
 53        /// </summary>
 054        internal UserDelegationKey() { }
 55
 3656        internal UserDelegationKey(Blobs.Models.UserDelegationKey blobUserDelegationKey)
 57        {
 3658            SignedObjectId = blobUserDelegationKey.SignedObjectId;
 3659            SignedTenantId = blobUserDelegationKey.SignedTenantId;
 3660            SignedStartsOn = blobUserDelegationKey.SignedStartsOn;
 3661            SignedExpiresOn = blobUserDelegationKey.SignedExpiresOn;
 3662            SignedService = blobUserDelegationKey.SignedService;
 3663            SignedVersion = blobUserDelegationKey.SignedVersion;
 3664            Value = blobUserDelegationKey.Value;
 3665        }
 66    }
 67}