Model/CustomActionSettings.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 BeforeApprovalProcessExecution
No description available.

.PARAMETER AfterApprovalProcessExecution
No description available.

.PARAMETER PostExecution
No description available.

.PARAMETER BeforeSubmission
No description available.

.PARAMETER WhenErrorTaskGenerated
No description available.

.OUTPUTS

CustomActionSettings<PSCustomObject>
#>


function New-CustomActionSettings {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${BeforeApprovalProcessExecution},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AfterApprovalProcessExecution},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${PostExecution},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${BeforeSubmission},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${WhenErrorTaskGenerated}
    )

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

        $PSO = [PSCustomObject]@{
            "beforeApprovalProcessExecution" = ${BeforeApprovalProcessExecution}
            "afterApprovalProcessExecution" = ${AfterApprovalProcessExecution}
            "postExecution" = ${PostExecution}
            "beforeSubmission" = ${BeforeSubmission}
            "whenErrorTaskGenerated" = ${WhenErrorTaskGenerated}
        }

        return $PSO
    }
}