We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25d211e commit 09fd219Copy full SHA for 09fd219
tools/PostGeneration/NewCommandMetadata.ps1
@@ -69,7 +69,7 @@ $ApiVersion | ForEach-Object {
69
$Segment = $segment.Replace("microsoft.graph.","").Replace("()", "")
70
# Get resource object name from segment if it exists. e.g get 'updateAudience' from windowsUpdates.updateAudience
71
$ResourceObj = $Segment.Split(".")
72
- $Segment = $ResourceObj.Count -gt 1 ? $ResourceObj[$ResourceObj.Count-1] : $Segment
+ $Segment = $ResourceObj[$ResourceObj.Count-1]
73
$SegmentBuilder += "/$Segment"
74
}
75
$Uri = $Uri -replace [Regex]::Escape($MatchedUriSegment), $SegmentBuilder
0 commit comments