Model/ExtendGroupSetting.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 ExtendType
No description available.

.PARAMETER ConstantDuration
No description available.

.PARAMETER ConstantDurationType
No description available.

.PARAMETER MaxDuration
No description available.

.PARAMETER MaxDurationType
No description available.

.PARAMETER Enabled
No description available.

.PARAMETER ApprovalProcess
No description available.

.PARAMETER IsUsedDefaultProcess
No description available.

.OUTPUTS

ExtendGroupSetting<PSCustomObject>
#>


function New-ExtendGroupSetting {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ExtendType},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${ConstantDuration},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ConstantDurationType},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${MaxDuration},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${MaxDurationType},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${Enabled},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ApprovalProcess},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsUsedDefaultProcess}
    )

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

        $PSO = [PSCustomObject]@{
            "extendType" = ${ExtendType}
            "constantDuration" = ${ConstantDuration}
            "constantDurationType" = ${ConstantDurationType}
            "maxDuration" = ${MaxDuration}
            "maxDurationType" = ${MaxDurationType}
            "enabled" = ${Enabled}
            "approvalProcess" = ${ApprovalProcess}
            "isUsedDefaultProcess" = ${IsUsedDefaultProcess}
        }

        return $PSO
    }
}