Skip to content

Commit b5429f8

Browse files
authored
Merge pull request #1891 from microsoftgraph/paging_support_deltav1
Pagination support for delta commands
2 parents 7ff6c07 + 9262e09 commit b5429f8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Users.Functions/Users.Functions/test/v1.0/Get-MgUserDelta.Tests.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ Describe 'Get-MgUserDelta' {
1515
It 'Delta1' -skip {
1616
{ throw [System.NotImplementedException] } | Should -Not -Throw
1717
}
18+
It 'ShouldNotThrowExceptionWhenAllParameterIsSpecified' {
19+
{ Get-MgUserDelta -All } | Should -Not -Throw
20+
}
1821
}

src/readme.graph.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,13 @@ directive:
579579
- from: source-file-csharp
580580
where: $
581581
transform: >
582-
if (!$documentPath.match(/generated%2Fcmdlets%2FGet\w*_List\d*.cs/gm))
582+
if (!$documentPath.match(/generated%2Fcmdlets%2FGet\w*_(List|Delta)\d*.cs/gm))
583583
{
584584
return $;
585585
} else {
586586
let odataNextLinkRegex = /(^\s*)(while\s*\(\s*_nextLink\s*!=\s*null\s*\))/gmi
587587
if($.match(odataNextLinkRegex)) {
588-
// Add custom -PageSize parameter to *_List cmdlets that support Odata next link.
588+
// Add custom -PageSize parameter to *_List and *_delta cmdlets that support Odata next link.
589589
let initializePageCountPlaceholder = 'this.InitializePageCount(result.Value.Length);'
590590
$ = $.replace(odataNextLinkRegex, `$1${initializePageCountPlaceholder}\n$1while (_nextLink != null && this.ShouldIteratePages(this.InvocationInformation.BoundParameters, result.Value.Length))$1`);
591591

0 commit comments

Comments
 (0)