custom/autogen-model-cmdlets/New-NmeRollingDrainModeConfigurationModel.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 RollingDrainModeConfiguration. .Description Create an in-memory object for RollingDrainModeConfiguration. .Outputs NmePowershell.Models.RollingDrainModeConfiguration #> function New-NmeRollingDrainModeConfigurationModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.RollingDrainModeConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [bool] $IsEnabled, [Parameter(Mandatory)] [NmePowershell.Models.IRollingDrainModeWindow[]] $Windows ) process { $Object = [NmePowershell.Models.RollingDrainModeConfiguration]::New() if ($PSBoundParameters.ContainsKey('IsEnabled')) { $Object.IsEnabled = $IsEnabled } if ($PSBoundParameters.ContainsKey('Windows')) { $Object.Windows = $Windows } return $Object } } |