@@ -33,7 +33,7 @@ Function Get-WinGetManifest
3333 . PARAMETER FunctionName
3434 Name of the Azure Function Name that contains the Windows Package Manager REST APIs.
3535
36- . PARAMETER ManifestIdentifier
36+ . PARAMETER PackageIdentifier
3737 [Optional] The Windows Package Manager Package Identifier of a specific Package Manifest result.
3838
3939 . PARAMETER SubscriptionName
@@ -50,12 +50,12 @@ Function Get-WinGetManifest
5050 Returns a Manifest object (*.json) of the specified JSON file.
5151
5252 . EXAMPLE
53- Get-WinGetManifest -FunctionName "contosorestsource" -ManifestIdentifier "Windows.PowerToys"
53+ Get-WinGetManifest -FunctionName "contosorestsource" -PackageIdentifier "Windows.PowerToys"
5454
5555 Returns a Manifest object of the specified Package Identifier that is queried against in the REST APIs.
5656
5757 . EXAMPLE
58- Get-WinGetManifest -FunctionName "contosorestsource" -ManifestIdentifier "Windows.PowerToys" -SubscriptionName "Visual Studio Subscription"
58+ Get-WinGetManifest -FunctionName "contosorestsource" -PackageIdentifier "Windows.PowerToys" -SubscriptionName "Visual Studio Subscription"
5959
6060 Returns a Manifest object of the specified Package Identifier that is queried against in the REST APIs from the specified Subscription Name.
6161
@@ -70,7 +70,7 @@ Function Get-WinGetManifest
7070 [Parameter (Position = 0 , Mandatory = $true , ParameterSetName = " File" )] [string ]$Path ,
7171 [Parameter (Position = 1 , Mandatory = $false , ParameterSetName = " File" )] [WinGetManifest ]$JSON ,
7272 [Parameter (Position = 0 , Mandatory = $true , ParameterSetName = " Azure" )] [string ]$FunctionName ,
73- [Parameter (Position = 1 , Mandatory = $false , ParameterSetName = " Azure" )] [string ]$ManifestIdentifier ,
73+ [Parameter (Position = 1 , Mandatory = $false , ParameterSetName = " Azure" )] [string ]$PackageIdentifier ,
7474 [Parameter (Position = 2 , Mandatory = $false , ParameterSetName = " Azure" )] [string ]$SubscriptionName
7575 )
7676 BEGIN
@@ -118,8 +118,8 @@ Function Get-WinGetManifest
118118 throw " Failed to confirm resources exist in Azure. Please verify and try again."
119119 }
120120
121- if ($ManifestIdentifier ){
122- $ManifestIdentifier = " /$ManifestIdentifier "
121+ if ($PackageIdentifier ){
122+ $PackageIdentifier = " /$PackageIdentifier "
123123 }
124124
125125 # ##############################
@@ -244,7 +244,7 @@ Function Get-WinGetManifest
244244 $DefaultHostName = $FunctionApp.DefaultHostName
245245 $FunctionKey = (Invoke-AzResourceAction - ResourceId " $FunctionAppId /functions/$TriggerName " - Action listkeys - Force).default
246246 $apiHeader.Add (" x-functions-key" , $FunctionKey )
247- $AzFunctionURL = " https://" + $DefaultHostName + " /api/" + " packageManifests" + $ManifestIdentifier
247+ $AzFunctionURL = " https://" + $DefaultHostName + " /api/" + " packageManifests" + $PackageIdentifier
248248
249249 # # Publishes the Manifest to the Windows Package Manager REST source
250250 Write-Verbose - Message " Invoking the REST API call."
0 commit comments