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

.Outputs
NmePowershell.Models.HostPoolConsoleConnectUpdate

#>

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

        [Parameter()]
        [bool]
        $Enable,
        [Parameter()]
        [NmePowershell.PSArgumentCompleterAttribute("US", "EU", "CA", "AU")]
        [string]
        $Region
    )

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

        if ($PSBoundParameters.ContainsKey('Enable')) {
            $Object.Enable = $Enable
        }
        if ($PSBoundParameters.ContainsKey('Region')) {
            $Object.Region = $Region
        }
        return $Object
    }
}