src/classes/main/PaTacacsProfile.ps1
class PaTacacsProfile : PaConfigObject { [string]$Name [bool]$AdminUseOnly [int]$Timeout [bool]$UseSingleConnection [array]$Servers [string]$ConfigNode = "server-profile/tacplus" # XPath [string] getXPath() { $returnXPath = $this.getBaseXPath() # Add Name if ($this.Name) { $returnXPath += "/entry[@name='" $returnXPath += $this.Name $returnXPath += "']" } return $returnXPath } # Xml [System.Xml.Linq.XElement] getXml() { # Document Root $doc = [System.Xml.Linq.XDocument]::new() # Create and add "entry" node $entry = [System.Xml.Linq.XElement]::new("entry",$null) return $doc.Element("entry") } } |