Model/AutoTaskExtendRequest.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 Action
No description available.

.PARAMETER ExtendDuration
No description available.

.PARAMETER ExtendDurationType
No description available.

.PARAMETER TaskId
No description available.

.PARAMETER Metadatas
No description available.

.PARAMETER Comments
No description available.

.OUTPUTS

AutoTaskExtendRequest<PSCustomObject>
#>


function New-AutoTaskExtendRequest {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Action},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${ExtendDuration},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ExtendDurationType},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${TaskId},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Metadatas},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Comments}
    )

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

        $PSO = [PSCustomObject]@{
            "action" = ${Action}
            "extendDuration" = ${ExtendDuration}
            "extendDurationType" = ${ExtendDurationType}
            "taskId" = ${TaskId}
            "metadatas" = ${Metadatas}
            "comments" = ${Comments}
        }

        return $PSO
    }
}