custom/autogen-model-cmdlets/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. .Outputs NmePowershell.Models.ArmHostPoolCreate #> function New-NmeArmHostPoolCreateModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.ArmHostPoolCreate')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter()] [int] $ActiveDirectoryAdProfileId, [Parameter()] [string] $AppGroupName, [Parameter()] [string] $Description, [Parameter()] [NmePowershell.Models.IHostPoolFsLogixProperties] $FsLogixCustom, [Parameter()] [bool] $FsLogixEnable, [Parameter()] [int] $FsLogixPredefinedConfigId, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("Default", "Predefined", "Custom")] [string] $FsLogixType, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("Automatic", "Direct")] [string] $PersonalParamAssignmentType, [Parameter()] [bool] $PersonalParamMultiplePersistent, [Parameter()] [bool] $PooledParamIsDesktop, [Parameter()] [bool] $PooledParamIsSingleUser, [Parameter()] [string] $SourceHostPoolId, [Parameter(HelpMessage="Dictionary of <string>.")] [NmePowershell.Models.IArmHostPoolCreateTags] $Tags, [Parameter(Mandatory)] [string] $WorkspaceIdName, [Parameter(Mandatory)] [string] $WorkspaceIdResourceGroup, [Parameter(Mandatory)] [string] $WorkspaceIdSubscriptionId ) process { $Object = [NmePowershell.Models.ArmHostPoolCreate]::New() if ($PSBoundParameters.ContainsKey('ActiveDirectoryAdProfileId')) { $Object.ActiveDirectoryAdProfileId = $ActiveDirectoryAdProfileId } if ($PSBoundParameters.ContainsKey('AppGroupName')) { $Object.AppGroupName = $AppGroupName } if ($PSBoundParameters.ContainsKey('Description')) { $Object.Description = $Description } if ($PSBoundParameters.ContainsKey('FsLogixCustom')) { $Object.FsLogixCustom = $FsLogixCustom } if ($PSBoundParameters.ContainsKey('FsLogixEnable')) { $Object.FsLogixEnable = $FsLogixEnable } if ($PSBoundParameters.ContainsKey('FsLogixPredefinedConfigId')) { $Object.FsLogixPredefinedConfigId = $FsLogixPredefinedConfigId } if ($PSBoundParameters.ContainsKey('FsLogixType')) { $Object.FsLogixType = $FsLogixType } if ($PSBoundParameters.ContainsKey('PersonalParamAssignmentType')) { $Object.PersonalParamAssignmentType = $PersonalParamAssignmentType } if ($PSBoundParameters.ContainsKey('PersonalParamMultiplePersistent')) { $Object.PersonalParamMultiplePersistent = $PersonalParamMultiplePersistent } if ($PSBoundParameters.ContainsKey('PooledParamIsDesktop')) { $Object.PooledParamIsDesktop = $PooledParamIsDesktop } if ($PSBoundParameters.ContainsKey('PooledParamIsSingleUser')) { $Object.PooledParamIsSingleUser = $PooledParamIsSingleUser } if ($PSBoundParameters.ContainsKey('SourceHostPoolId')) { $Object.SourceHostPoolId = $SourceHostPoolId } if ($PSBoundParameters.ContainsKey('Tags')) { $Object.Tags = $Tags } if ($PSBoundParameters.ContainsKey('WorkspaceIdName')) { $Object.WorkspaceIdName = $WorkspaceIdName } if ($PSBoundParameters.ContainsKey('WorkspaceIdResourceGroup')) { $Object.WorkspaceIdResourceGroup = $WorkspaceIdResourceGroup } if ($PSBoundParameters.ContainsKey('WorkspaceIdSubscriptionId')) { $Object.WorkspaceIdSubscriptionId = $WorkspaceIdSubscriptionId } return $Object } } |