Model/ImpersonationAccountModel.ps1

#
# Cloud Governance Api
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
# Version: 1.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

<#
.SYNOPSIS

No summary available.

.DESCRIPTION

No description available.

.PARAMETER Id
No description available.

.PARAMETER Domain
No description available.

.PARAMETER User
No description available.

.PARAMETER Tenant
No description available.

.PARAMETER Tenants
No description available.

.OUTPUTS

ImpersonationAccountModel<PSCustomObject>
#>


function New-ImpersonationAccountModel {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Id},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
        [String]
        ${Domain},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
        [PSCustomObject]
        ${User},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
        [PSCustomObject]
        ${Tenant},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Tenants}
    )

    Process {
        'Creating object: Cloud.Governance.Client => ImpersonationAccountModel' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $PSO = [PSCustomObject]@{
            "id" = ${Id}
            "domain" = ${Domain}
            "user" = ${User}
            "tenant" = ${Tenant}
            "tenants" = ${Tenants}
        }

        return $PSO
    }
}