Model/GrantPermissionRequestDurationSettings.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 IsGrantTemporaryPermission
No description available.

.PARAMETER ExpirationType
No description available.

.PARAMETER DurationInterval
No description available.

.PARAMETER DurationDateType
No description available.

.PARAMETER StartTime
No description available.

.PARAMETER EndTime
No description available.

.OUTPUTS

GrantPermissionRequestDurationSettings<PSCustomObject>
#>


function New-GrantPermissionRequestDurationSettings {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsGrantTemporaryPermission},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ExpirationType},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${DurationInterval},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${DurationDateType},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${StartTime},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${EndTime}
    )

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

        $PSO = [PSCustomObject]@{
            "isGrantTemporaryPermission" = ${IsGrantTemporaryPermission}
            "expirationType" = ${ExpirationType}
            "durationInterval" = ${DurationInterval}
            "durationDateType" = ${DurationDateType}
            "startTime" = ${StartTime}
            "endTime" = ${EndTime}
        }

        return $PSO
    }
}