custom/autogen-model-cmdlets/New-NmeAutoScaleProfileOverrideUpdateModel.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 AutoScaleProfileOverrideUpdate. .Description Create an in-memory object for AutoScaleProfileOverrideUpdate. .Outputs NmePowershell.Models.AutoScaleProfileOverrideUpdate #> function New-NmeAutoScaleProfileOverrideUpdateModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.AutoScaleProfileOverrideUpdate')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("0", "1", "2", "3", "4", "5", "6")] [int[]] $ConfigDays, [Parameter()] [int] $ConfigHostsToBeReady, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("Count", "Percent")] [string] $ConfigHostsToBeReadyMeasureType, [Parameter()] [bool] $ConfigPreStageDiskType, [Parameter()] [bool] $ConfigPreStageUnassigned, [Parameter()] [bool] $ConfigPreStageUnassignedHosts, [Parameter()] [bool] $FlagPreStage, [Parameter()] [bool] $FlagRollingDrainMode, [Parameter()] [bool] $FlagSize, [Parameter()] [NmePowershell.Models.IPreStageHostsConfigurationItem[]] $PreStageConfigs, [Parameter()] [bool] $PreStageEnable, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("Hybrid", "Automated")] [string] $PreStageIntelligentPrestageMode, [Parameter()] [bool] $PreStageIsMultipleConfigsMode, [Parameter()] [bool] $RollingDrainModeIsEnabled, [Parameter()] [NmePowershell.Models.IRollingDrainModeWindow[]] $RollingDrainModeWindows, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("Running", "AvailableForConnection")] [string] $SizeActiveHostType, [Parameter()] [int] $SizeBurstCapacity, [Parameter()] [int] $SizeHostPoolCapacity, [Parameter()] [int] $SizeMinActiveHostsCount, [Parameter()] [int] $StartWorkDuration, [Parameter()] [int] $StartWorkHour, [Parameter()] [int] $StartWorkMinutes ) process { $Object = [NmePowershell.Models.AutoScaleProfileOverrideUpdate]::New() if ($PSBoundParameters.ContainsKey('ConfigDays')) { $Object.ConfigDays = $ConfigDays } if ($PSBoundParameters.ContainsKey('ConfigHostsToBeReady')) { $Object.ConfigHostsToBeReady = $ConfigHostsToBeReady } if ($PSBoundParameters.ContainsKey('ConfigHostsToBeReadyMeasureType')) { $Object.ConfigHostsToBeReadyMeasureType = $ConfigHostsToBeReadyMeasureType } if ($PSBoundParameters.ContainsKey('ConfigPreStageDiskType')) { $Object.ConfigPreStageDiskType = $ConfigPreStageDiskType } if ($PSBoundParameters.ContainsKey('ConfigPreStageUnassigned')) { $Object.ConfigPreStageUnassigned = $ConfigPreStageUnassigned } if ($PSBoundParameters.ContainsKey('ConfigPreStageUnassignedHosts')) { $Object.ConfigPreStageUnassignedHosts = $ConfigPreStageUnassignedHosts } if ($PSBoundParameters.ContainsKey('FlagPreStage')) { $Object.FlagPreStage = $FlagPreStage } if ($PSBoundParameters.ContainsKey('FlagRollingDrainMode')) { $Object.FlagRollingDrainMode = $FlagRollingDrainMode } if ($PSBoundParameters.ContainsKey('FlagSize')) { $Object.FlagSize = $FlagSize } if ($PSBoundParameters.ContainsKey('PreStageConfigs')) { $Object.PreStageConfigs = $PreStageConfigs } if ($PSBoundParameters.ContainsKey('PreStageEnable')) { $Object.PreStageEnable = $PreStageEnable } if ($PSBoundParameters.ContainsKey('PreStageIntelligentPrestageMode')) { $Object.PreStageIntelligentPrestageMode = $PreStageIntelligentPrestageMode } if ($PSBoundParameters.ContainsKey('PreStageIsMultipleConfigsMode')) { $Object.PreStageIsMultipleConfigsMode = $PreStageIsMultipleConfigsMode } if ($PSBoundParameters.ContainsKey('RollingDrainModeIsEnabled')) { $Object.RollingDrainModeIsEnabled = $RollingDrainModeIsEnabled } if ($PSBoundParameters.ContainsKey('RollingDrainModeWindows')) { $Object.RollingDrainModeWindows = $RollingDrainModeWindows } if ($PSBoundParameters.ContainsKey('SizeActiveHostType')) { $Object.SizeActiveHostType = $SizeActiveHostType } if ($PSBoundParameters.ContainsKey('SizeBurstCapacity')) { $Object.SizeBurstCapacity = $SizeBurstCapacity } if ($PSBoundParameters.ContainsKey('SizeHostPoolCapacity')) { $Object.SizeHostPoolCapacity = $SizeHostPoolCapacity } if ($PSBoundParameters.ContainsKey('SizeMinActiveHostsCount')) { $Object.SizeMinActiveHostsCount = $SizeMinActiveHostsCount } if ($PSBoundParameters.ContainsKey('StartWorkDuration')) { $Object.StartWorkDuration = $StartWorkDuration } if ($PSBoundParameters.ContainsKey('StartWorkHour')) { $Object.StartWorkHour = $StartWorkHour } if ($PSBoundParameters.ContainsKey('StartWorkMinutes')) { $Object.StartWorkMinutes = $StartWorkMinutes } return $Object } } |