Public/New-bConnectApplicationLicense.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Function New-bConnectApplicationLicense() {
    <#
        .Synopsis
            Creates a new ApplicationLicense for Applications.
        .Parameter Count
            License count
        .Parameter LicenseKey
            License key
        .Parameter Offline
            Amount of offline licenses
        .Outputs
            ApplicationLicense (see bConnect documentation for more details)
    #>


    [OutputType("System.Management.Automations.PSObject")]
    Param(
        [Parameter(Mandatory=$true)][string]$LicenseKey,
        [int]$Count = 0,
        [int]$Offline = 0
    )

    $_new_applicationLicense = @{
        Count = $Count;
        LicenseKey = $LicenseKey;
        Offline = $Offline;
    }

    return $_new_applicationLicense
}