custom/autogen-model-cmdlets/New-NmeHostPoolScriptedActionsAssignmentModel.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 HostPoolScriptedActionsAssignment. .Description Create an in-memory object for HostPoolScriptedActionsAssignment. .Outputs NmePowershell.Models.HostPoolScriptedActionsAssignment #> function New-NmeHostPoolScriptedActionsAssignmentModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.HostPoolScriptedActionsAssignment')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter()] [int] $OnCreateActiveDirectoryId, [Parameter()] [bool] $OnCreateEnabled, [Parameter()] [NmePowershell.Models.IScriptedActionOption[]] $OnCreateScriptedActions, [Parameter()] [int] $OnHostCreateActiveDirectoryId, [Parameter()] [bool] $OnHostCreateEnabled, [Parameter()] [NmePowershell.Models.IScriptedActionOption[]] $OnHostCreateScriptedActions, [Parameter()] [int] $OnRemoveActiveDirectoryId, [Parameter()] [bool] $OnRemoveEnabled, [Parameter()] [NmePowershell.Models.IScriptedActionOption[]] $OnRemoveScriptedActions, [Parameter()] [int] $OnStartActiveDirectoryId, [Parameter()] [bool] $OnStartEnabled, [Parameter()] [NmePowershell.Models.IScriptedActionOption[]] $OnStartScriptedActions, [Parameter()] [int] $OnStopActiveDirectoryId, [Parameter()] [bool] $OnStopEnabled, [Parameter()] [NmePowershell.Models.IScriptedActionOption[]] $OnStopScriptedActions, [Parameter(HelpMessage="Shared scripted actions profile ID.")] [int] $ProfileId ) process { $Object = [NmePowershell.Models.HostPoolScriptedActionsAssignment]::New() if ($PSBoundParameters.ContainsKey('OnCreateActiveDirectoryId')) { $Object.OnCreateActiveDirectoryId = $OnCreateActiveDirectoryId } if ($PSBoundParameters.ContainsKey('OnCreateEnabled')) { $Object.OnCreateEnabled = $OnCreateEnabled } if ($PSBoundParameters.ContainsKey('OnCreateScriptedActions')) { $Object.OnCreateScriptedActions = $OnCreateScriptedActions } if ($PSBoundParameters.ContainsKey('OnHostCreateActiveDirectoryId')) { $Object.OnHostCreateActiveDirectoryId = $OnHostCreateActiveDirectoryId } if ($PSBoundParameters.ContainsKey('OnHostCreateEnabled')) { $Object.OnHostCreateEnabled = $OnHostCreateEnabled } if ($PSBoundParameters.ContainsKey('OnHostCreateScriptedActions')) { $Object.OnHostCreateScriptedActions = $OnHostCreateScriptedActions } if ($PSBoundParameters.ContainsKey('OnRemoveActiveDirectoryId')) { $Object.OnRemoveActiveDirectoryId = $OnRemoveActiveDirectoryId } if ($PSBoundParameters.ContainsKey('OnRemoveEnabled')) { $Object.OnRemoveEnabled = $OnRemoveEnabled } if ($PSBoundParameters.ContainsKey('OnRemoveScriptedActions')) { $Object.OnRemoveScriptedActions = $OnRemoveScriptedActions } if ($PSBoundParameters.ContainsKey('OnStartActiveDirectoryId')) { $Object.OnStartActiveDirectoryId = $OnStartActiveDirectoryId } if ($PSBoundParameters.ContainsKey('OnStartEnabled')) { $Object.OnStartEnabled = $OnStartEnabled } if ($PSBoundParameters.ContainsKey('OnStartScriptedActions')) { $Object.OnStartScriptedActions = $OnStartScriptedActions } if ($PSBoundParameters.ContainsKey('OnStopActiveDirectoryId')) { $Object.OnStopActiveDirectoryId = $OnStopActiveDirectoryId } if ($PSBoundParameters.ContainsKey('OnStopEnabled')) { $Object.OnStopEnabled = $OnStopEnabled } if ($PSBoundParameters.ContainsKey('OnStopScriptedActions')) { $Object.OnStopScriptedActions = $OnStopScriptedActions } if ($PSBoundParameters.ContainsKey('ProfileId')) { $Object.ProfileId = $ProfileId } return $Object } } |