File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if ($PSVersionTable.PSVersion.Major -lt 6) {
2626
2727 # Functions necessary to parse JSON output from .NET serializer to PowerShell Objects
2828 function ParseItem($jsonItem) {
29+ #private
2930 if ($jsonItem.PSObject.TypeNames -match "Array") {
3031 return ParseJsonArray($jsonItem)
3132 }
@@ -38,6 +39,7 @@ if ($PSVersionTable.PSVersion.Major -lt 6) {
3839 }
3940
4041 function ParseJsonObject($jsonObj) {
42+ #private
4143 $Response = New-Object -TypeName PSCustomObject
4244 foreach ($key in $jsonObj.Keys) {
4345 $item = $jsonObj[$key]
@@ -53,17 +55,19 @@ if ($PSVersionTable.PSVersion.Major -lt 6) {
5355 }
5456
5557 function ParseJsonArray($jsonArray) {
58+ #private
5659 $Response = @()
5760 $jsonArray | ForEach-Object {
5861 $Response += ,(ParseItem $_)
5962 }
6063 return $Response
6164 }
62- }
65+ }
6366
6467### Helper Functions ###
6568
6669function ParseErrorForResponseBody($Error) {
70+ #private
6771 if ($PSVersionTable.PSVersion.Major -lt 6) {
6872 if ($Error.Exception.Response) {
6973 $Reader = New-Object System.IO.StreamReader($Error.Exception.Response.GetResponseStream())
@@ -83,6 +87,7 @@ function ParseErrorForResponseBody($Error) {
8387
8488# helper function to convert unix timestamp to datetime
8589function ConvertFrom-UnixTimestamp {
90+ #private
8691 [CmdletBinding()]
8792
8893 PARAM (
You can’t perform that action at this time.
0 commit comments