Model/BlockListItem.ps1

#
# SMServer V6
# Syncplify.me Server! REST API
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

<#
.SYNOPSIS

No summary available.

.DESCRIPTION

No description available.

.PARAMETER Id
Leave empty for auto-generation

.PARAMETER IpOrNetwork
No description available.

.PARAMETER Persistence
No description available.

.PARAMETER Expiration
No description available.

.PARAMETER Hits
This field will be auto-populated, omit it when adding a new item

.PARAMETER AddReason
No description available.

.PARAMETER Notes
No description available.

.OUTPUTS

BlockListItem<PSCustomObject>
#>


function New-SS6BlockListItem {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Id},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${IpOrNetwork},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Persistence},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${Expiration},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int64]]
        ${Hits},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AddReason},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Notes}
    )

    Process {
        'Creating object: SS6AdminModule => SS6BlockListItem' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $PSO = [PSCustomObject]@{
            "id" = ${Id}
            "ipOrNetwork" = ${IpOrNetwork}
            "persistence" = ${Persistence}
            "expiration" = ${Expiration}
            "hits" = ${Hits}
            "addReason" = ${AddReason}
            "notes" = ${Notes}
        }

        return $PSO
    }
}