/// <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.Ios.GetGroupsForMAMPolicy, this.IntuneClient.Ios.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.Android.GetAppForMAMPolicy, this.IntuneClient.Android.GetAppForMAMPolicyNext, this.AsuHostName, this.Name); this.WriteObject(items, enumerateCollection: true); }
/// <summary> /// Get MAM flagged users /// </summary> private void GetMAMFlaggedUsers() { MultiPageGetter <FlaggedUser> mpg = new MultiPageGetter <FlaggedUser>(); List <FlaggedUser> items = mpg.GetAllResources( this.IntuneClient.GetMAMFlaggedUsers, this.IntuneClient.GetMAMFlaggedUsersNext, this.AsuHostName, filter: null, top: null, select: null); this.WriteObject(items, enumerateCollection: true); }
/// <summary> /// Get MAM flagged users /// </summary> private void GetMAMFlaggedUsers() { MultiPageGetter<FlaggedUser> mpg = new MultiPageGetter<FlaggedUser>(); List<FlaggedUser> items = mpg.GetAllResources( this.IntuneClient.GetMAMFlaggedUsers, this.IntuneClient.GetMAMFlaggedUsersNext, this.AsuHostName, filter: null, top: null, select: null); 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); }