Model/GroupLeasePeriodSettings.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 LeaseType
No description available.

.PARAMETER DurationType
No description available.

.PARAMETER DurationInterval
No description available.

.PARAMETER LeaseExpirationDate
No description available.

.OUTPUTS

GroupLeasePeriodSettings<PSCustomObject>
#>


function New-GroupLeasePeriodSettings {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsEnabled},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${LeaseType},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${DurationType},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${DurationInterval},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${LeaseExpirationDate}
    )

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

        $PSO = [PSCustomObject]@{
            "isEnabled" = ${IsEnabled}
            "leaseType" = ${LeaseType}
            "durationType" = ${DurationType}
            "durationInterval" = ${DurationInterval}
            "leaseExpirationDate" = ${LeaseExpirationDate}
        }

        return $PSO
    }
}