#region Copyright /* * Copyright © 2014-2016 NetApp, Inc. All Rights Reserved. * * CONFIDENTIALITY NOTICE: THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION OF * NETAPP, INC. USE, DISCLOSURE OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR * EXPRESS WRITTEN PERMISSION OF NETAPP, INC. */ #endregion #region Using Directives using System.ComponentModel; using System.Management.Automation; using SolidFire.Core; using SolidFire.Element.Api; using System.Linq; #endregion namespace SolidFire.Cluster.Get { /// /// Get-SFLoginSessionInfo is used to return the period of time a log in authentication is valid for both log in shells and the TUI. /// [Cmdlet(VerbsCommon.Get, "SFLoginSessionInfo")] public class GetSFLoginSessionInfo : SFCmdlet { #region Cmdlet Overrides protected override void BeginProcessing() { base.BeginProcessing(); CheckConnection(minVersionNumber: 7f); } protected override void ProcessRecord() { base.ProcessRecord(); var objsFromAPI = SendRequest("GetLoginSessionInfo"); WriteObject(objsFromAPI.Select(obj => obj.Result.LoginSessionInfo), true); } #endregion } }