Model/SiteLeasePeriodServiceSettings.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 LeasePeriodAssignBy
No description available.

.PARAMETER LeaseWarningAssignBy
No description available.

.PARAMETER LeaseEnabled
No description available.

.PARAMETER LeaseWarningEnabled
No description available.

.PARAMETER ApprovalProcessId
No description available.

.PARAMETER LeaseInterval
No description available.

.PARAMETER LeaseDurationType
No description available.

.PARAMETER LeaseWarningInterval
No description available.

.PARAMETER LeaseWarningDurationType
No description available.

.OUTPUTS

SiteLeasePeriodServiceSettings<PSCustomObject>
#>


function New-SiteLeasePeriodServiceSettings {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${LeasePeriodAssignBy},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${LeaseWarningAssignBy},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${LeaseEnabled},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${LeaseWarningEnabled},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ApprovalProcessId},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${LeaseInterval},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${LeaseDurationType},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${LeaseWarningInterval},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${LeaseWarningDurationType}
    )

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

        $PSO = [PSCustomObject]@{
            "leasePeriodAssignBy" = ${LeasePeriodAssignBy}
            "leaseWarningAssignBy" = ${LeaseWarningAssignBy}
            "leaseEnabled" = ${LeaseEnabled}
            "leaseWarningEnabled" = ${LeaseWarningEnabled}
            "approvalProcessId" = ${ApprovalProcessId}
            "leaseInterval" = ${LeaseInterval}
            "leaseDurationType" = ${LeaseDurationType}
            "leaseWarningInterval" = ${LeaseWarningInterval}
            "leaseWarningDurationType" = ${LeaseWarningDurationType}
        }

        return $PSO
    }
}