Model/ApprovalProcessStageInfo.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 ApproveUser
No description available.

.PARAMETER EscalationUser
No description available.

.PARAMETER EditPermissionReport
No description available.

.PARAMETER NotifyApproverWhenExpired
No description available.

.PARAMETER NotifyApproverWhenExpiredEmailTemplateID
No description available.

.PARAMETER WarnApproverbeforeExpired
No description available.

.PARAMETER WarnApproverbeforeExpiredEmailTemplateID
No description available.

.PARAMETER IsDurationEnabled
No description available.

.OUTPUTS

ApprovalProcessStageInfo<PSCustomObject>
#>


function New-ApprovalProcessStageInfo {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ApproveUser},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${EscalationUser},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EditPermissionReport},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${NotifyApproverWhenExpired},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${NotifyApproverWhenExpiredEmailTemplateID},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${WarnApproverbeforeExpired},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${WarnApproverbeforeExpiredEmailTemplateID},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsDurationEnabled}
    )

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

        $PSO = [PSCustomObject]@{
            "approveUser" = ${ApproveUser}
            "escalationUser" = ${EscalationUser}
            "editPermissionReport" = ${EditPermissionReport}
            "notifyApproverWhenExpired" = ${NotifyApproverWhenExpired}
            "notifyApproverWhenExpiredEmailTemplateID" = ${NotifyApproverWhenExpiredEmailTemplateID}
            "warnApproverbeforeExpired" = ${WarnApproverbeforeExpired}
            "warnApproverbeforeExpiredEmailTemplateID" = ${WarnApproverbeforeExpiredEmailTemplateID}
            "isDurationEnabled" = ${IsDurationEnabled}
        }

        return $PSO
    }
}