Model/ApplyPolicyRequestModel.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 PolicyId
No description available.

.PARAMETER LocationId
No description available.

.PARAMETER FolderUrl
No description available.

.PARAMETER StartDateType
No description available.

.PARAMETER IsCheckLock
No description available.

.PARAMETER Filter
No description available.

.PARAMETER SelectedObjectsId
No description available.

.PARAMETER SpecifyDateTicks
No description available.

.PARAMETER IsExportLocation
No description available.

.OUTPUTS

ApplyPolicyRequestModel<PSCustomObject>
#>


function New-ApplyPolicyRequestModel {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${PolicyId},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${LocationId},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${FolderUrl},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${StartDateType},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsCheckLock},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Filter},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${SelectedObjectsId},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int64]]
        ${SpecifyDateTicks},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsExportLocation}
    )

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

        $PSO = [PSCustomObject]@{
            "policyId" = ${PolicyId}
            "locationId" = ${LocationId}
            "folderUrl" = ${FolderUrl}
            "startDateType" = ${StartDateType}
            "isCheckLock" = ${IsCheckLock}
            "filter" = ${Filter}
            "selectedObjectsId" = ${SelectedObjectsId}
            "specifyDateTicks" = ${SpecifyDateTicks}
            "isExportLocation" = ${IsExportLocation}
        }

        return $PSO
    }
}