custom/autogen-model-cmdlets/New-NmeScriptedActionsGroupCreateModel.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 ScriptedActionsGroupCreate.
.Description
Create an in-memory object for ScriptedActionsGroupCreate.

.Outputs
NmePowershell.Models.ScriptedActionsGroupCreate

#>

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

        [Parameter()]
        [string]
        $Description,
        [Parameter(Mandatory)]
        [string]
        $Name,
        [Parameter(Mandatory)]
        [NmePowershell.Models.IScriptedActionsGroupItemCreate[]]
        $ScriptedActions,
        [Parameter()]
        [string[]]
        $Tags
    )

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

        if ($PSBoundParameters.ContainsKey('Description')) {
            $Object.Description = $Description
        }
        if ($PSBoundParameters.ContainsKey('Name')) {
            $Object.Name = $Name
        }
        if ($PSBoundParameters.ContainsKey('ScriptedActions')) {
            $Object.ScriptedActions = $ScriptedActions
        }
        if ($PSBoundParameters.ContainsKey('Tags')) {
            $Object.Tags = $Tags
        }
        return $Object
    }
}