exports/New-NmeArmHostPoolCreateModel.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 ArmHostPoolCreate. .Description Create an in-memory object for ArmHostPoolCreate. #> function New-NmeArmHostPoolCreateModel { [OutputType([NmePowershell.Models.ArmHostPoolCreate])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [NmePowershell.Category('Body')] [System.String] ${WorkspaceIdName}, [Parameter(Mandatory)] [NmePowershell.Category('Body')] [System.String] ${WorkspaceIdResourceGroup}, [Parameter(Mandatory)] [NmePowershell.Category('Body')] [System.String] ${WorkspaceIdSubscriptionId}, [Parameter()] [NmePowershell.Category('Body')] [System.Int32] ${ActiveDirectoryAdProfileId}, [Parameter()] [NmePowershell.Category('Body')] [System.String] ${AppGroupName}, [Parameter()] [NmePowershell.Category('Body')] [System.String] ${Description}, [Parameter()] [NmePowershell.Category('Body')] [NmePowershell.Models.IHostPoolFsLogixProperties] # ${FsLogixCustom}, [Parameter()] [NmePowershell.Category('Body')] [System.Boolean] ${FsLogixEnable}, [Parameter()] [NmePowershell.Category('Body')] [System.Int32] ${FsLogixPredefinedConfigId}, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("Default", "Predefined", "Custom")] [NmePowershell.Category('Body')] [System.String] ${FsLogixType}, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("Automatic", "Direct")] [NmePowershell.Category('Body')] [System.String] ${PersonalParamAssignmentType}, [Parameter()] [NmePowershell.Category('Body')] [System.Boolean] ${PersonalParamMultiplePersistent}, [Parameter()] [NmePowershell.Category('Body')] [System.Boolean] ${PooledParamIsDesktop}, [Parameter()] [NmePowershell.Category('Body')] [System.Boolean] ${PooledParamIsSingleUser}, [Parameter()] [NmePowershell.Category('Body')] [System.String] ${SourceHostPoolId}, [Parameter()] [NmePowershell.Category('Body')] [NmePowershell.Models.IArmHostPoolCreateTags] # Dictionary of <string>. ${Tags} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('NmePowershell.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } $mapping = @{ __AllParameterSets = 'NerdioManagerPowerShell.custom\New-NmeArmHostPoolCreateModel'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [NmePowershell.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [NmePowershell.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) if ($wrappedCmd -eq $null) { $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } |