Model/ElectionProcessModel.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 EnablePrimarySiteContact
No description available.

.PARAMETER EnableSecondarySiteContact
No description available.

.PARAMETER EnablePrimarySiteAdministrator
No description available.

.PARAMETER EnableAdministratorGroupUser
No description available.

.PARAMETER AdministratorGroupUserCount
No description available.

.PARAMETER EnableMainPermissionUsers
No description available.

.PARAMETER MainPermissionLevel
No description available.

.PARAMETER MainPermissionUserCount
No description available.

.PARAMETER EnableAlternativePermissionUsers
No description available.

.PARAMETER AlternativePermissionLevel
No description available.

.PARAMETER AlternativPermissionUserCount
No description available.

.OUTPUTS

ElectionProcessModel<PSCustomObject>
#>


function New-ElectionProcessModel {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnablePrimarySiteContact},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableSecondarySiteContact},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnablePrimarySiteAdministrator},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableAdministratorGroupUser},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${AdministratorGroupUserCount},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableMainPermissionUsers},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${MainPermissionLevel},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${MainPermissionUserCount},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableAlternativePermissionUsers},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AlternativePermissionLevel},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${AlternativPermissionUserCount}
    )

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

        $PSO = [PSCustomObject]@{
            "enablePrimarySiteContact" = ${EnablePrimarySiteContact}
            "enableSecondarySiteContact" = ${EnableSecondarySiteContact}
            "enablePrimarySiteAdministrator" = ${EnablePrimarySiteAdministrator}
            "enableAdministratorGroupUser" = ${EnableAdministratorGroupUser}
            "administratorGroupUserCount" = ${AdministratorGroupUserCount}
            "enableMainPermissionUsers" = ${EnableMainPermissionUsers}
            "mainPermissionLevel" = ${MainPermissionLevel}
            "mainPermissionUserCount" = ${MainPermissionUserCount}
            "enableAlternativePermissionUsers" = ${EnableAlternativePermissionUsers}
            "alternativePermissionLevel" = ${AlternativePermissionLevel}
            "alternativPermissionUserCount" = ${AlternativPermissionUserCount}
        }

        return $PSO
    }
}