All Downloads are FREE. Search and download functionalities are using the official Maven repository.

powershell-experimental.model.mustache Maven / Gradle / Ivy

There is a newer version: 7.10.0
Show newest version
{{> partial_header}}
{{#models}}
{{#model}}
<#
.SYNOPSIS

{{#summary}}{{{.}}}{{/summary}}{{^summary}}No summary available.{{/summary}}

.DESCRIPTION

{{#description}}{{{description}}}{{/description}}{{^description}}No description available.{{/description}}

{{#vars}}
.PARAMETER {{{name}}}
{{#description}}{{{description}}}{{/description}}{{^description}}No description available.{{/description}}

{{/vars}}
.OUTPUTS

{{{classname}}}
#>

function New-{{{apiNamePrefix}}}{{{classname}}} {
    [CmdletBinding()]
    Param (
{{#vars}}
        [Parameter(Position = {{vendorExtensions.x-index}}, ValueFromPipelineByPropertyName = $true{{#required}}, Mandatory = $true{{/required}})]
        [{{vendorExtensions.x-powershell-data-type}}]
        {{=<% %>=}}
        ${<%name%>}<%^-last%>,<%/-last%>
        <%={{ }}=%>
{{/vars}}
    )

    Process {
        'Creating object: {{{packageName}}} => {{{apiNamePrefix}}}{{{classname}}}' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $PSO = [PSCustomObject]@{
            {{=<< >>=}}
            <<#vars>>
            "<>" = ${<>}
            <>
            <<={{ }}=>>
        }

        return $PSO
    }
}
{{/model}}
{{/models}}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy