custom/autogen-model-cmdlets/New-NmeActiveSessionsConfigurationModel.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 ActiveSessionsConfiguration. .Description Create an in-memory object for ActiveSessionsConfiguration. .Outputs NmePowershell.Models.ActiveSessionsConfiguration #> function New-NmeActiveSessionsConfigurationModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.ActiveSessionsConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [int] $ScaleInHostChangeCount, [Parameter(Mandatory)] [float] $ScaleInValue, [Parameter(Mandatory)] [int] $ScaleOutHostChangeCount, [Parameter(Mandatory)] [float] $ScaleOutValue ) process { $Object = [NmePowershell.Models.ActiveSessionsConfiguration]::New() if ($PSBoundParameters.ContainsKey('ScaleInHostChangeCount')) { $Object.ScaleInHostChangeCount = $ScaleInHostChangeCount } if ($PSBoundParameters.ContainsKey('ScaleInValue')) { $Object.ScaleInValue = $ScaleInValue } if ($PSBoundParameters.ContainsKey('ScaleOutHostChangeCount')) { $Object.ScaleOutHostChangeCount = $ScaleOutHostChangeCount } if ($PSBoundParameters.ContainsKey('ScaleOutValue')) { $Object.ScaleOutValue = $ScaleOutValue } return $Object } } |