Pax8API/Public/Partner/Get-Pax8ProductDependency.ps1

<#
.SYNOPSIS
Get Product Dependencies
.DESCRIPTION
Returns associated dependencies for the specified ```productId```. A products dependencies are dynamic data.
OpenAPI: GET /products/{productId}/dependencies
Scope: Partner. Audience: https://api.pax8.com.
.PARAMETER ProductId
path parameter 'productId'.
.PARAMETER Raw
Returns the unmodified API response instead of unwrapping paginated content.
.EXAMPLE
Get-Pax8ProductDependency -ProductId 'value'
.LINK
https://devx.pax8.com/openapi/partner-endpoints.json
#>

function Get-Pax8ProductDependency {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [string]$ProductId,

        [switch]$Raw
    )

    process {
        $boundParameters = @{}
        foreach ($entry in $PSBoundParameters.GetEnumerator()) {
            $boundParameters[$entry.Key] = $entry.Value
        }

        Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters
    }
}

Set-Alias -Name 'Get-Pax8ProductDependencies' -Value 'Get-Pax8ProductDependency'