Model/TemplateWithPermissions.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 TemplateId
No description available.

.PARAMETER IsUseCommon
No description available.

.PARAMETER UserPermissions
No description available.

.PARAMETER GroupPermissions
No description available.

.OUTPUTS

TemplateWithPermissions<PSCustomObject>
#>


function New-TemplateWithPermissions {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${TemplateId},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsUseCommon},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${UserPermissions},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${GroupPermissions}
    )

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

        $PSO = [PSCustomObject]@{
            "templateId" = ${TemplateId}
            "isUseCommon" = ${IsUseCommon}
            "userPermissions" = ${UserPermissions}
            "groupPermissions" = ${GroupPermissions}
        }

        return $PSO
    }
}