custom/autogen-model-cmdlets/New-NmeServicePrincipalParamsModel.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 ServicePrincipalParams. .Description Create an in-memory object for ServicePrincipalParams. .Outputs NmePowershell.Models.ServicePrincipalParams #> function New-NmeServicePrincipalParamsModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.ServicePrincipalParams')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [string] $AppId, [Parameter()] [string] $AppName, [Parameter(Mandatory)] [string] $AppSecret, [Parameter(Mandatory)] [NmePowershell.PSArgumentCompleterAttribute("AzureCloud", "AzureUSGovernment", "AzureChina")] [string] $AzureType ) process { $Object = [NmePowershell.Models.ServicePrincipalParams]::New() if ($PSBoundParameters.ContainsKey('AppId')) { $Object.AppId = $AppId } if ($PSBoundParameters.ContainsKey('AppName')) { $Object.AppName = $AppName } if ($PSBoundParameters.ContainsKey('AppSecret')) { $Object.AppSecret = $AppSecret } if ($PSBoundParameters.ContainsKey('AzureType')) { $Object.AzureType = $AzureType } return $Object } } |