Model/SuperAdmin.ps1
# # SMServer V6 # Syncplify.me Server! REST API # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Id This is always \"sa\" (as there can be only 1 SuperAdmin) .PARAMETER Password No description available. .PARAMETER Email No description available. .PARAMETER Picture No description available. .PARAMETER AllowList List of allowed sources (IPs and Networks) that SuperAdmin can log in from .PARAMETER AuthenticatorSecret No description available. .PARAMETER AuthenticatorType No description available. .OUTPUTS SuperAdmin<PSCustomObject> #> function New-SS6SuperAdmin { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Password}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [String] ${Email}, [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Picture}, [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)] [String[]] ${AllowList}, [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${AuthenticatorSecret}, [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${AuthenticatorType} ) Process { 'Creating object: SS6AdminModule => SS6SuperAdmin' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "id" = ${Id} "password" = ${Password} "email" = ${Email} "picture" = ${Picture} "allowList" = ${AllowList} "authenticatorSecret" = ${AuthenticatorSecret} "authenticatorType" = ${AuthenticatorType} } return $PSO } } |