Model/ApprovalProcessStageDurationSetting.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 IsDurationEnabled
No description available.

.PARAMETER Reassigner
No description available.

.PARAMETER EscalationUsers
No description available.

.PARAMETER IsEnableDureationReminder
No description available.

.PARAMETER Duration
No description available.

.PARAMETER ReassignTemplateId
No description available.

.PARAMETER AutoRejectTemplateId
No description available.

.PARAMETER NotifyTemplateId
No description available.

.PARAMETER DurationReminderProfileId
No description available.

.PARAMETER DurationType
No description available.

.PARAMETER EscalationType
No description available.

.OUTPUTS

ApprovalProcessStageDurationSetting<PSCustomObject>
#>


function New-ApprovalProcessStageDurationSetting {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsDurationEnabled},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Reassigner},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${EscalationUsers},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsEnableDureationReminder},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${Duration},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ReassignTemplateId},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AutoRejectTemplateId},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${NotifyTemplateId},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${DurationReminderProfileId},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${DurationType},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${EscalationType}
    )

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

        $PSO = [PSCustomObject]@{
            "isDurationEnabled" = ${IsDurationEnabled}
            "reassigner" = ${Reassigner}
            "escalationUsers" = ${EscalationUsers}
            "isEnableDureationReminder" = ${IsEnableDureationReminder}
            "duration" = ${Duration}
            "reassignTemplateId" = ${ReassignTemplateId}
            "autoRejectTemplateId" = ${AutoRejectTemplateId}
            "notifyTemplateId" = ${NotifyTemplateId}
            "durationReminderProfileId" = ${DurationReminderProfileId}
            "durationType" = ${DurationType}
            "escalationType" = ${EscalationType}
        }

        return $PSO
    }
}