custom/autogen-model-cmdlets/New-NmeAzureFilesScalingConfigModel.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 AzureFilesScalingConfig. .Description Create an in-memory object for AzureFilesScalingConfig. .Outputs NmePowershell.Models.AzureFilesScalingConfig #> function New-NmeAzureFilesScalingConfigModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.AzureFilesScalingConfig')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [int] $ScaleInBy, [Parameter(Mandatory)] [int] $ScaleInInterval, [Parameter(Mandatory)] [int] $ScaleInLowLatency, [Parameter(Mandatory)] [int] $ScaleOutBy, [Parameter(Mandatory)] [int] $ScaleOutHighLatency, [Parameter(Mandatory)] [int] $ScaleOutInterval, [Parameter(Mandatory)] [int] $TransactionThreshold, [Parameter(Mandatory)] [NmePowershell.PSArgumentCompleterAttribute("MaxSuccessServerLatency", "AvgSuccessServerLatency")] [string] $Trigger ) process { $Object = [NmePowershell.Models.AzureFilesScalingConfig]::New() if ($PSBoundParameters.ContainsKey('ScaleInBy')) { $Object.ScaleInBy = $ScaleInBy } if ($PSBoundParameters.ContainsKey('ScaleInInterval')) { $Object.ScaleInInterval = $ScaleInInterval } if ($PSBoundParameters.ContainsKey('ScaleInLowLatency')) { $Object.ScaleInLowLatency = $ScaleInLowLatency } if ($PSBoundParameters.ContainsKey('ScaleOutBy')) { $Object.ScaleOutBy = $ScaleOutBy } if ($PSBoundParameters.ContainsKey('ScaleOutHighLatency')) { $Object.ScaleOutHighLatency = $ScaleOutHighLatency } if ($PSBoundParameters.ContainsKey('ScaleOutInterval')) { $Object.ScaleOutInterval = $ScaleOutInterval } if ($PSBoundParameters.ContainsKey('TransactionThreshold')) { $Object.TransactionThreshold = $TransactionThreshold } if ($PSBoundParameters.ContainsKey('Trigger')) { $Object.Trigger = $Trigger } return $Object } } |