/// <summary> /// Contains the cmdlet's execution logic. /// </summary> public override void ExecuteCmdlet() { MultiPageGetter <GroupItem> mpg = new MultiPageGetter <GroupItem>(); List <GroupItem> items = mpg.GetAllResources( this.IntuneClient.Android.GetGroupsForMAMPolicy, this.IntuneClient.Android.GetGroupsForMAMPolicyNext, this.AsuHostName, this.Name); this.WriteObject(items, enumerateCollection: true); }
/// <summary> /// Contains the cmdlet's execution logic. /// </summary> public override void ExecuteCmdlet() { MultiPageGetter <Application> mpg = new MultiPageGetter <Application>(); List <Application> items = mpg.GetAllResources( this.IntuneClient.Ios.GetAppForMAMPolicy, this.IntuneClient.Ios.GetAppForMAMPolicyNext, this.AsuHostName, this.Name); this.WriteObject(items, enumerateCollection: true); }
/// <summary> /// Get all iOS Policies /// </summary> private void GetiOSPolicies() { MultiPageGetter <IOSMAMPolicy> mpg = new MultiPageGetter <IOSMAMPolicy>(); List <IOSMAMPolicy> items = mpg.GetAllResources( this.IntuneClient.Ios.GetMAMPolicies, this.IntuneClient.Ios.GetMAMPoliciesNext, this.AsuHostName, filter: null, top: null, select: null); this.WriteObject(items, enumerateCollection: true); }
/// <summary> /// Get all OperationResults /// </summary> private void GetOperationResults() { MultiPageGetter <OperationResult> mpg = new MultiPageGetter <OperationResult>(); List <OperationResult> items = mpg.GetAllResources( this.IntuneClient.GetOperationResults, this.IntuneClient.GetOperationResultsNext, this.AsuHostName, filter: null, top: null, select: null); this.WriteObject(items, enumerateCollection: true); }
/// <summary> /// Contains the cmdlet's execution logic. /// </summary> public override void ExecuteCmdlet() { string filter = string.Format(CultureInfo.InvariantCulture, IntuneConstants.PlatformFilterQueryParam, PlatformType.iOS.ToString().ToLower()); MultiPageGetter <Application> mpg = new MultiPageGetter <Application>(); List <Application> items = mpg.GetAllResources( this.IntuneClient.GetApps, this.IntuneClient.GetAppsNext, this.AsuHostName, filter, top: null, select: null); this.WriteObject(items, enumerateCollection: true); }
/// <summary> /// Get all GetUserDevices /// </summary> private void GetUserDevices() { MultiPageGetter <Device> mpg = new MultiPageGetter <Device>(); List <Device> items = mpg.GetAllResources( this.IntuneClient.GetMAMUserDevices, this.IntuneClient.GetMAMUserDevicesNext, this.AsuHostName, this.Name, filter: null, top: null, select: null); this.WriteObject(items, enumerateCollection: true); }