custom/autogen-model-cmdlets/New-NmeWorkspaceCreateModel.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 WorkspaceCreate. .Description Create an in-memory object for WorkspaceCreate. .Outputs NmePowershell.Models.WorkspaceCreate #> function New-NmeWorkspaceCreateModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.WorkspaceCreate')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter()] [string] $Description, [Parameter()] [string] $FriendlyName, [Parameter(Mandatory)] [string] $IdName, [Parameter(Mandatory)] [string] $IdResourceGroup, [Parameter(Mandatory)] [string] $IdSubscriptionId, [Parameter(Mandatory)] [string] $Location, [Parameter(HelpMessage="Dictionary of <string>.")] [NmePowershell.Models.IWorkspaceCreateTags] $Tags ) process { $Object = [NmePowershell.Models.WorkspaceCreate]::New() if ($PSBoundParameters.ContainsKey('Description')) { $Object.Description = $Description } if ($PSBoundParameters.ContainsKey('FriendlyName')) { $Object.FriendlyName = $FriendlyName } if ($PSBoundParameters.ContainsKey('IdName')) { $Object.IdName = $IdName } if ($PSBoundParameters.ContainsKey('IdResourceGroup')) { $Object.IdResourceGroup = $IdResourceGroup } if ($PSBoundParameters.ContainsKey('IdSubscriptionId')) { $Object.IdSubscriptionId = $IdSubscriptionId } if ($PSBoundParameters.ContainsKey('Location')) { $Object.Location = $Location } if ($PSBoundParameters.ContainsKey('Tags')) { $Object.Tags = $Tags } return $Object } } |