Skip to content

Commit

Permalink
error variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc committed Mar 27, 2024
1 parent e735619 commit 1508e09
Show file tree
Hide file tree
Showing 319 changed files with 511 additions and 511 deletions.
16 changes: 8 additions & 8 deletions BuildCustomFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Result = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw `$sdkError
}
Expand Down Expand Up @@ -242,7 +242,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Result = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw `$sdkError
}
Expand Down Expand Up @@ -272,7 +272,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Result = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw `$sdkError
}
Expand Down Expand Up @@ -361,7 +361,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Result = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw `$sdkError
}
Expand Down Expand Up @@ -435,7 +435,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Result = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw $`sdkError
}
Expand Down Expand Up @@ -472,7 +472,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Result = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw `$sdkError
}
Expand Down Expand Up @@ -508,7 +508,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Result = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -581,7 +581,7 @@ Try {
:retryLoop do {
`$resultCounter++
`$Results = $ResultsLogic
If (`$errVar){
If (`$sdkError){
If (`$resultCounter -eq `$maxRetries){
throw `$sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = (JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEvent -ErrorAction SilentlyContinue -errorVariable sdkError @PSBoundParameters).ToJsonString() | ConvertFrom-Json;
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -240,7 +240,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = (JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEvent -ErrorAction SilentlyContinue -errorVariable sdkError @PSBoundParameters).ToJsonString() | ConvertFrom-Json;
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEventCount @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -240,7 +240,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEventCount @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = (JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEventDistinct -ErrorAction SilentlyContinue -errorVariable sdkError @PSBoundParameters).ToJsonString() | ConvertFrom-Json;
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -216,7 +216,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = (JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEventDistinct -ErrorAction SilentlyContinue -errorVariable sdkError @PSBoundParameters).ToJsonString() | ConvertFrom-Json;
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = (JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEventInterval -ErrorAction SilentlyContinue -errorVariable sdkError @PSBoundParameters).ToJsonString() | ConvertFrom-Json;
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -239,7 +239,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = (JumpCloud.SDK.DirectoryInsights.internal\Get-JcSdkInternalEventInterval -ErrorAction SilentlyContinue -errorVariable sdkError @PSBoundParameters).ToJsonString() | ConvertFrom-Json;
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Results = JumpCloud.SDK.V1.internal\Clear-JcSdkInternalSystem @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalApplication @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -218,7 +218,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalApplication @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalApplicationTemplate @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -236,7 +236,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalApplicationTemplate @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommand @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -235,7 +235,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommand @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommandFile @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -187,7 +187,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommandFile @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommandResult @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -232,7 +232,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommandResult @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommandResultByCommandId @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -172,7 +172,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalCommandResultByCommandId @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalOrganization @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -251,7 +251,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalOrganization @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalRadiusServer @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -235,7 +235,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalRadiusServer @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalSystem @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -241,7 +241,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalSystem @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalUser @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down Expand Up @@ -242,7 +242,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalUser @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Result = JumpCloud.SDK.V1.internal\Get-JcSdkInternalUserSshKey @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Results = JumpCloud.SDK.V1.internal\Initialize-JcSdkInternalUserState @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Results = JumpCloud.SDK.V1.internal\Invoke-JcSdkInternalCommandTrigger @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Results = JumpCloud.SDK.V1.internal\Invoke-JcSdkInternalExpireUserPassword @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ https://github.com/TheJumpCloud/jcapi-powershell/tree/master/SDKs/PowerShell/Jum
:retryLoop do {
$resultCounter++
$Results = JumpCloud.SDK.V1.internal\Lock-JcSdkInternalSystem @PSBoundParameters -errorAction SilentlyContinue -errorVariable sdkError
If ($errVar){
If ($sdkError){
If ($resultCounter -eq $maxRetries){
throw $sdkError
}
Expand Down
Loading

0 comments on commit 1508e09

Please sign in to comment.