private/Functions/Axis/Get-AxisRecordingGeneral.ps1

Function Get-AxisRecordingGeneral {
    [cmdletBinding()]
    Param(
        [Parameter()]
        [hashtable]$Object
    )
    
    <#
    Object Definition:
    @{
        IP = [String(Mandatory)]
        Credential = [PSCredential(Mandatory)]
        Storage = [int] as [String(Optional)]
    }
    #>


    #Set basic Paramters for Invoke-AxisCommand
    $CamCmd = @{
        Arguments = @{
            IP = $Object.IP
            Menu = 'recording'
            SubMenu = 'general'
            Action = 'view'
            Parameters = @(
                "Channel=$($Object.Channel)"
            )
        }
        Credential = $Object.Credential
    }

    return (Invoke-AxisCommand @CamCmd).RecordSetup
}