Model/PolicyExpirationSetting.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 IsEnabled
No description available.

.PARAMETER Duration
No description available.

.PARAMETER DurationType
No description available.

.PARAMETER ProcessId
No description available.

.PARAMETER IsAutoLockEnabled
No description available.

.PARAMETER AutoLockProfileId
No description available.

.PARAMETER IsNotifyEnabled
No description available.

.PARAMETER NotifyTemplateId
No description available.

.OUTPUTS

PolicyExpirationSetting<PSCustomObject>
#>


function New-PolicyExpirationSetting {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsEnabled},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${Duration},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${DurationType},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ProcessId},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsAutoLockEnabled},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AutoLockProfileId},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsNotifyEnabled},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${NotifyTemplateId}
    )

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

        $PSO = [PSCustomObject]@{
            "isEnabled" = ${IsEnabled}
            "duration" = ${Duration}
            "durationType" = ${DurationType}
            "processId" = ${ProcessId}
            "isAutoLockEnabled" = ${IsAutoLockEnabled}
            "autoLockProfileId" = ${AutoLockProfileId}
            "isNotifyEnabled" = ${IsNotifyEnabled}
            "notifyTemplateId" = ${NotifyTemplateId}
        }

        return $PSO
    }
}