< Summary

Class:Azure.Storage.Files.DataLake.Models.DataLakeAccessPolicy
Assembly:Azure.Storage.Files.DataLake
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Files.DataLake\src\Models\DataLakeAccessPolicy.cs
Covered lines:13
Uncovered lines:0
Coverable lines:13
Total lines:68
Line coverage:100% (13 of 13)
Covered branches:2
Total branches:4
Branch coverage:50% (2 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_PolicyStartsOn()-100%100%
get_PolicyExpiresOn()-100%100%
get_StartsOn()-100%50%
set_StartsOn(...)-100%100%
get_ExpiresOn()-100%50%
set_ExpiresOn(...)-100%100%
get_Permissions()-100%100%

File(s)

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

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.ComponentModel;
 6
 7namespace Azure.Storage.Files.DataLake.Models
 8{
 9    /// <summary>
 10    /// An Access policy.
 11    /// </summary>
 12    public class DataLakeAccessPolicy
 13    {
 14        /// <summary>
 15        /// The <see cref="DateTimeOffset"/> the policy becomes active.
 16        /// </summary>
 24017        public DateTimeOffset? PolicyStartsOn { get; set; }
 18
 19        /// <summary>
 20        /// The <see cref="DateTimeOffset"/> the policy expires.
 21        /// </summary>
 21222        public DateTimeOffset? PolicyExpiresOn { get; set; }
 23
 24
 25        /// <summary>
 26        /// The <see cref="DateTimeOffset"/> the policy becomes active.
 27        /// This value is non-nullable, please use <see cref="PolicyStartsOn"/>.
 28        /// </summary>
 29        [EditorBrowsable(EditorBrowsableState.Never)]
 30        public System.DateTimeOffset StartsOn
 31        {
 32            get
 33            {
 2434                return PolicyStartsOn == default ?
 2435                    StartsOn :
 2436                    (DateTimeOffset)PolicyStartsOn;
 37            }
 38            set
 39            {
 440                PolicyStartsOn = value;
 441            }
 42        }
 43
 44        /// <summary>
 45        /// The <see cref="DateTimeOffset"/> the policy expires.
 46        /// This value is non-nullable, please use <see cref="PolicyExpiresOn"/>.
 47        /// </summary>
 48        [EditorBrowsable(EditorBrowsableState.Never)]
 49        public System.DateTimeOffset ExpiresOn
 50        {
 51            get
 52            {
 1653                return PolicyExpiresOn == default ?
 1654                    ExpiresOn :
 1655                    (DateTimeOffset)PolicyExpiresOn;
 56            }
 57            set
 58            {
 459                PolicyExpiresOn = value;
 460            }
 61        }
 62
 63        /// <summary>
 64        /// The file permissions for the policy.
 65        /// </summary>
 15266        public string Permissions { get; set; }
 67    }
 68}