custom/autogen-model-cmdlets/New-NmeHostPoolSizeModel.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 HostPoolSize. .Description Create an in-memory object for HostPoolSize. .Outputs NmePowershell.Models.HostPoolSize #> function New-NmeHostPoolSizeModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.HostPoolSize')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [NmePowershell.PSArgumentCompleterAttribute("Running", "AvailableForConnection")] [string] $ActiveHostType, [Parameter(Mandatory)] [int] $BurstCapacity, [Parameter(Mandatory)] [int] $HostPoolCapacity, [Parameter(Mandatory)] [int] $MinActiveHostsCount ) process { $Object = [NmePowershell.Models.HostPoolSize]::New() if ($PSBoundParameters.ContainsKey('ActiveHostType')) { $Object.ActiveHostType = $ActiveHostType } if ($PSBoundParameters.ContainsKey('BurstCapacity')) { $Object.BurstCapacity = $BurstCapacity } if ($PSBoundParameters.ContainsKey('HostPoolCapacity')) { $Object.HostPoolCapacity = $HostPoolCapacity } if ($PSBoundParameters.ContainsKey('MinActiveHostsCount')) { $Object.MinActiveHostsCount = $MinActiveHostsCount } return $Object } } |