bin/projects/dbatools/dbatools/TabExpansion/InstanceAccess.cs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
 
namespace Sqlcollaborative.Dbatools.TabExpansion
{
    /// <summary>
    /// Contains information on access to an instance
    /// </summary>
    public class InstanceAccess
    {
        /// <summary>
        /// The name of the instance to access
        /// </summary>
        public string InstanceName;
 
        /// <summary>
        /// Whether the account had sysadmin privileges. On multiple user usage, the cache will prefer sysadmin accounts.
        /// </summary>
        public bool IsSysAdmin;
 
        /// <summary>
        /// The actual connection object to connect with to the server
        /// </summary>
        public object ConnectionObject;
 
        /// <summary>
        /// When was the instance last accessed using dbatools
        /// </summary>
        public DateTime LastAccess;
 
        /// <summary>
        /// When was the instance's TEPP cache last updated
        /// </summary>
        public DateTime LastUpdate = new DateTime(1, 1, 1, 0, 0, 0);
    }
}