Model/PolicyWithTemplates.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 PolicyId
No description available.

.PARAMETER DefaultTemplate
No description available.

.PARAMETER Templates
No description available.

.OUTPUTS

PolicyWithTemplates<PSCustomObject>
#>


function New-PolicyWithTemplates {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${PolicyId},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${DefaultTemplate},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Templates}
    )

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

        $PSO = [PSCustomObject]@{
            "policyId" = ${PolicyId}
            "defaultTemplate" = ${DefaultTemplate}
            "templates" = ${Templates}
        }

        return $PSO
    }
}