custom/autogen-model-cmdlets/New-NmeShellAppVersionCreateModel.ps1


# ----------------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.8, generator: @autorest/powershell@4.0.752)
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# ----------------------------------------------------------------------------------

<#
.Synopsis
Create an in-memory object for ShellAppVersionCreate.
.Description
Create an in-memory object for ShellAppVersionCreate.

.Outputs
NmePowershell.Models.ShellAppVersionCreate

#>

function New-NmeShellAppVersionCreateModel {
    [NmePowershell.ModelCmdletAttribute()]
    [OutputType('NmePowershell.Models.ShellAppVersionCreate')]
    [CmdletBinding(PositionalBinding=$false)]
    Param(

        [Parameter()]
        [string]
        $FileSha256,
        [Parameter()]
        [string]
        $FileSourceUrl,
        [Parameter()]
        [string]
        $InstallScriptOverride,
        [Parameter(Mandatory)]
        [bool]
        $IsPreview,
        [Parameter(Mandatory)]
        [string]
        $Name
    )

    process {
        $Object = [NmePowershell.Models.ShellAppVersionCreate]::New()

        if ($PSBoundParameters.ContainsKey('FileSha256')) {
            $Object.FileSha256 = $FileSha256
        }
        if ($PSBoundParameters.ContainsKey('FileSourceUrl')) {
            $Object.FileSourceUrl = $FileSourceUrl
        }
        if ($PSBoundParameters.ContainsKey('InstallScriptOverride')) {
            $Object.InstallScriptOverride = $InstallScriptOverride
        }
        if ($PSBoundParameters.ContainsKey('IsPreview')) {
            $Object.IsPreview = $IsPreview
        }
        if ($PSBoundParameters.ContainsKey('Name')) {
            $Object.Name = $Name
        }
        return $Object
    }
}