Model/ListVersionSettings.ps1

#
# Cloud Governance Api
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
# Version: 1.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

<#
.SYNOPSIS

No summary available.

.DESCRIPTION

No description available.

.PARAMETER ListType
No description available.

.PARAMETER EnableMajorVersions
No description available.

.PARAMETER EnableMajorAndMinorVersions
No description available.

.PARAMETER EnableMajorVersionLimit
No description available.

.PARAMETER MajorVersionLimit
No description available.

.PARAMETER EnableMinorVersionLimit
No description available.

.PARAMETER MinorVersionsLimit
No description available.

.PARAMETER RequireContentApproval
No description available.

.OUTPUTS

ListVersionSettings<PSCustomObject>
#>


function New-ListVersionSettings {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ListType},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableMajorVersions},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableMajorAndMinorVersions},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableMajorVersionLimit},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${MajorVersionLimit},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableMinorVersionLimit},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${MinorVersionsLimit},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${RequireContentApproval}
    )

    Process {
        'Creating object: Cloud.Governance.Client => ListVersionSettings' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $PSO = [PSCustomObject]@{
            "listType" = ${ListType}
            "enableMajorVersions" = ${EnableMajorVersions}
            "enableMajorAndMinorVersions" = ${EnableMajorAndMinorVersions}
            "enableMajorVersionLimit" = ${EnableMajorVersionLimit}
            "majorVersionLimit" = ${MajorVersionLimit}
            "enableMinorVersionLimit" = ${EnableMinorVersionLimit}
            "minorVersionsLimit" = ${MinorVersionsLimit}
            "requireContentApproval" = ${RequireContentApproval}
        }

        return $PSO
    }
}