protected override void ProcessRecord() { if (ShouldProcess("Report Activity", "Get-GRepActivity")) { var properties = new gDiscovery.Apis.DiscoveryListProperties(); if (!string.IsNullOrWhiteSpace(Name)) { properties.name = Name; } if (Preferred) { properties.preferred = true; } WriteObject(gdiscovery.apis.List(properties, StandardQueryParams: StandardQueryParams).Items); } }
public Data.DirectoryList List(gDiscovery.Apis.DiscoveryListProperties properties = null) { return(gdiscovery.apis.List(properties)); }