custom/autogen-model-cmdlets/New-NmeShellAppCreateModel.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 ShellAppCreate. .Description Create an in-memory object for ShellAppCreate. .Outputs NmePowershell.Models.ShellAppCreate #> function New-NmeShellAppCreateModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.ShellAppCreate')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [string] $Description, [Parameter(Mandatory)] [string] $DetectScript, [Parameter(Mandatory)] [bool] $FileUnzip, [Parameter(Mandatory)] [string] $InstallScript, [Parameter(Mandatory)] [bool] $IsPublic, [Parameter(Mandatory)] [string] $Name, [Parameter(Mandatory)] [string] $Publisher, [Parameter(Mandatory)] [string] $UninstallScript, [Parameter(Mandatory)] [NmePowershell.Models.IShellAppVersionCreate[]] $Versions ) process { $Object = [NmePowershell.Models.ShellAppCreate]::New() if ($PSBoundParameters.ContainsKey('Description')) { $Object.Description = $Description } if ($PSBoundParameters.ContainsKey('DetectScript')) { $Object.DetectScript = $DetectScript } if ($PSBoundParameters.ContainsKey('FileUnzip')) { $Object.FileUnzip = $FileUnzip } if ($PSBoundParameters.ContainsKey('InstallScript')) { $Object.InstallScript = $InstallScript } if ($PSBoundParameters.ContainsKey('IsPublic')) { $Object.IsPublic = $IsPublic } if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name } if ($PSBoundParameters.ContainsKey('Publisher')) { $Object.Publisher = $Publisher } if ($PSBoundParameters.ContainsKey('UninstallScript')) { $Object.UninstallScript = $UninstallScript } if ($PSBoundParameters.ContainsKey('Versions')) { $Object.Versions = $Versions } return $Object } } |