Model/QuestionItem.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 TypeInt
No description available.

.PARAMETER Extend
No description available.

.PARAMETER IsMapToMetadata
No description available.

.PARAMETER ReferenceMetadata
No description available.

.PARAMETER ReferenceMetadataName
No description available.

.OUTPUTS

QuestionItem<PSCustomObject>
#>


function New-QuestionItem {
    [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)]
        [System.Nullable[Int32]]
        ${TypeInt},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Extend},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsMapToMetadata},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ReferenceMetadata},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ReferenceMetadataName}
    )

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

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

        return $PSO
    }
}