Model/PermissionLevelViewModel.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 ListPermissions
No description available.

.PARAMETER SitePermissions
No description available.

.PARAMETER PersonalPermissions
No description available.

.PARAMETER Id
No description available.

.PARAMETER Name
No description available.

.PARAMETER Description
No description available.

.PARAMETER Permissions
No description available.

.PARAMETER LastModifiedTime
No description available.

.OUTPUTS

PermissionLevelViewModel<PSCustomObject>
#>


function New-PermissionLevelViewModel {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${ListPermissions},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${SitePermissions},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${PersonalPermissions},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Id},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
        [String]
        ${Name},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Description},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
        [String[]]
        ${Permissions},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${LastModifiedTime}
    )

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

        $PSO = [PSCustomObject]@{
            "listPermissions" = ${ListPermissions}
            "sitePermissions" = ${SitePermissions}
            "personalPermissions" = ${PersonalPermissions}
            "id" = ${Id}
            "name" = ${Name}
            "description" = ${Description}
            "permissions" = ${Permissions}
            "lastModifiedTime" = ${LastModifiedTime}
        }

        return $PSO
    }
}