custom/autogen-model-cmdlets/New-NmeUserSelfServiceScriptedActionModel.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 UserSelfServiceScriptedAction. .Description Create an in-memory object for UserSelfServiceScriptedAction. .Outputs NmePowershell.Models.UserSelfServiceScriptedAction #> function New-NmeUserSelfServiceScriptedActionModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.UserSelfServiceScriptedAction')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory, HelpMessage="Dictionary of <components·3b70dp·schemas·scriptedactionoption·properties·groupparams·additionalproperties>.")] [NmePowershell.Models.IScriptedActionOptionGroupParams] $ActionGroupParams, [Parameter(Mandatory)] [int] $ActionId, [Parameter(Mandatory, HelpMessage="Dictionary of <ScriptedActionParamValue>.")] [NmePowershell.Models.IScriptedActionOptionParams] $ActionParams, [Parameter(Mandatory)] [NmePowershell.PSArgumentCompleterAttribute("Action", "Group")] [string] $ActionType, [Parameter(Mandatory)] [string] $DisplayName, [Parameter()] [int] $Id ) process { $Object = [NmePowershell.Models.UserSelfServiceScriptedAction]::New() if ($PSBoundParameters.ContainsKey('ActionGroupParams')) { $Object.ActionGroupParams = $ActionGroupParams } if ($PSBoundParameters.ContainsKey('ActionId')) { $Object.ActionId = $ActionId } if ($PSBoundParameters.ContainsKey('ActionParams')) { $Object.ActionParams = $ActionParams } if ($PSBoundParameters.ContainsKey('ActionType')) { $Object.ActionType = $ActionType } if ($PSBoundParameters.ContainsKey('DisplayName')) { $Object.DisplayName = $DisplayName } if ($PSBoundParameters.ContainsKey('Id')) { $Object.Id = $Id } return $Object } } |