Skip to content

Commit fe78b23

Browse files
committed
CamelCaps everywhere!
1 parent 077368c commit fe78b23

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

source/Public/Utils/Get-FabricLongRunningOperation.ps1

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,40 @@ Get-FabricLongRunningOperation -operationId "12345-abcd-67890-efgh" -retryAfter
2222
This command polls the status of the operation with the given operationId every 10 seconds until it completes.
2323
2424
.NOTES
25-
- Requires the `$FabricConfig` global object, including `BaseUrl` and `FabricHeaders`.
2625
2726
Author: Tiago Balabuch
2827
2928
#>
3029
param (
3130
[Parameter(Mandatory = $false)]
32-
[string]$operationId,
31+
[string]$OperationId,
3332

3433
[Parameter(Mandatory = $false)]
35-
[string]$location,
34+
[string]$Location,
3635

3736
[Parameter(Mandatory = $false)]
38-
[int]$retryAfter = 5
37+
[int]$RetryAfter = 5
3938
)
4039

4140
Write-Message -Message "[Get-FabricLongRunningOperation]::Begin" -Level Debug
4241
Confirm-TokenState
4342

4443
# Step 1: Construct the API URL
45-
if (-not $operationId) {
44+
if (-not $OperationId) {
4645
# Use the Location header to define the operationUrl, if OperationId is not provided
47-
$apiEndpointUrl = $location
46+
$apiEndpointUrl = $Location
4847
} else {
49-
$apiEndpointUrl = "operations/{0}" -f $operationId
48+
$apiEndpointUrl = "operations/{0}" -f $OperationId
5049
}
5150
Write-Message -Message "[Get-FabricLongRunningOperation] API Endpoint: $apiEndpointUrl" -Level Debug
5251

5352
try {
5453
do {
5554

5655
# Step 2: Wait before the next request
57-
if ($retryAfter) {
58-
Write-Message -Message "Waiting $retryAfter seconds..." -Level Verbose
59-
Start-Sleep -Seconds $retryAfter
56+
if ($RetryAfter) {
57+
Write-Message -Message "Waiting $RetryAfter seconds..." -Level Verbose
58+
Start-Sleep -Seconds $RetryAfter
6059
} else {
6160
Write-Message -Message "Waiting 5 seconds..." -Level Verbose
6261
Start-Sleep -Seconds 5 # Default retry interval if no Retry-After header

0 commit comments

Comments
 (0)