Model/Question.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 Type
No description available.

.PARAMETER Content
No description available.

.PARAMETER ContentHtml
No description available.

.PARAMETER Values
No description available.

.PARAMETER DefaultValue
No description available.

.PARAMETER TermSettings
No description available.

.PARAMETER IsMapToMetadata
No description available.

.PARAMETER ReferenceMetadata
No description available.

.PARAMETER ReferenceMetadataName
No description available.

.OUTPUTS

Question<PSCustomObject>
#>


function New-Question {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Id},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Type},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Content},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ContentHtml},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [String[]]
        ${Values},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${DefaultValue},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${TermSettings},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsMapToMetadata},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ReferenceMetadata},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ReferenceMetadataName}
    )

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

        $PSO = [PSCustomObject]@{
            "id" = ${Id}
            "type" = ${Type}
            "content" = ${Content}
            "contentHtml" = ${ContentHtml}
            "values" = ${Values}
            "defaultValue" = ${DefaultValue}
            "termSettings" = ${TermSettings}
            "isMapToMetadata" = ${IsMapToMetadata}
            "referenceMetadata" = ${ReferenceMetadata}
            "referenceMetadataName" = ${ReferenceMetadataName}
        }

        return $PSO
    }
}