Model/PolicyGridModel.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 Name
No description available.

.PARAMETER Type
No description available.

.PARAMETER Status
No description available.

.PARAMETER StatusDescription
No description available.

.PARAMETER LastModifiedTime
No description available.

.PARAMETER CreatedByDisplayName
No description available.

.OUTPUTS

PolicyGridModel<PSCustomObject>
#>


function New-PolicyGridModel {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Id},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Name},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Type},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Status},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${StatusDescription},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${LastModifiedTime},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${CreatedByDisplayName}
    )

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

        $PSO = [PSCustomObject]@{
            "id" = ${Id}
            "name" = ${Name}
            "type" = ${Type}
            "status" = ${Status}
            "statusDescription" = ${StatusDescription}
            "lastModifiedTime" = ${LastModifiedTime}
            "createdByDisplayName" = ${CreatedByDisplayName}
        }

        return $PSO
    }
}