custom/autogen-model-cmdlets/New-NmeAutoScaleProfileAssignmentCreateModel.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 AutoScaleProfileAssignmentCreate. .Description Create an in-memory object for AutoScaleProfileAssignmentCreate. .Outputs NmePowershell.Models.AutoScaleProfileAssignmentCreate #> function New-NmeAutoScaleProfileAssignmentCreateModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.AutoScaleProfileAssignmentCreate')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [string] $HostPoolId, [Parameter()] [NmePowershell.Models.IAutoScaleProfileScheduleDateRange[]] $ScheduleDateRanges, [Parameter()] [bool] $ScheduleIsEnabled, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("0", "1", "2", "3", "4", "5", "6")] [int[]] $ScheduleWeekDays, [Parameter(Mandatory)] [NmePowershell.PSArgumentCompleterAttribute("Primary", "Secondary")] [string] $Type ) process { $Object = [NmePowershell.Models.AutoScaleProfileAssignmentCreate]::New() if ($PSBoundParameters.ContainsKey('HostPoolId')) { $Object.HostPoolId = $HostPoolId } if ($PSBoundParameters.ContainsKey('ScheduleDateRanges')) { $Object.ScheduleDateRanges = $ScheduleDateRanges } if ($PSBoundParameters.ContainsKey('ScheduleIsEnabled')) { $Object.ScheduleIsEnabled = $ScheduleIsEnabled } if ($PSBoundParameters.ContainsKey('ScheduleWeekDays')) { $Object.ScheduleWeekDays = $ScheduleWeekDays } if ($PSBoundParameters.ContainsKey('Type')) { $Object.Type = $Type } return $Object } } |