Model/ApiSettingViewModel.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 Secret
No description available.

.PARAMETER SecretDuration
No description available.

.PARAMETER Expiration
No description available.

.PARAMETER ApiEndpoint
No description available.

.PARAMETER ClientId
No description available.

.OUTPUTS

ApiSettingViewModel<PSCustomObject>
#>


function New-ApiSettingViewModel {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Id},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Name},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Secret},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${SecretDuration},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${Expiration},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ApiEndpoint},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ClientId}
    )

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

        $PSO = [PSCustomObject]@{
            "id" = ${Id}
            "name" = ${Name}
            "secret" = ${Secret}
            "secretDuration" = ${SecretDuration}
            "expiration" = ${Expiration}
            "apiEndpoint" = ${ApiEndpoint}
            "clientId" = ${ClientId}
        }

        return $PSO
    }
}