custom/autogen-model-cmdlets/New-NmeAnyAppActionCreateModel.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 AnyAppActionCreate. .Description Create an in-memory object for AnyAppActionCreate. .Outputs NmePowershell.Models.AnyAppActionCreate #> function New-NmeAnyAppActionCreateModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.AnyAppActionCreate')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [string] $ExternalId, [Parameter(Mandatory)] [string] $Name, [Parameter()] [bool] $Reboot, [Parameter(Mandatory)] [int] $RepoId, [Parameter(Mandatory)] [NmePowershell.PSArgumentCompleterAttribute("Install", "Uninstall")] [string] $Type, [Parameter()] [string] $Version ) process { $Object = [NmePowershell.Models.AnyAppActionCreate]::New() if ($PSBoundParameters.ContainsKey('ExternalId')) { $Object.ExternalId = $ExternalId } if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name } if ($PSBoundParameters.ContainsKey('Reboot')) { $Object.Reboot = $Reboot } if ($PSBoundParameters.ContainsKey('RepoId')) { $Object.RepoId = $RepoId } if ($PSBoundParameters.ContainsKey('Type')) { $Object.Type = $Type } if ($PSBoundParameters.ContainsKey('Version')) { $Object.Version = $Version } return $Object } } |