Model/SiteProperty.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 Department
No description available.

.PARAMETER Policy
No description available.

.PARAMETER CustomMetadatas
No description available.

.PARAMETER Title
No description available.

.PARAMETER Description
No description available.

.PARAMETER SiteMaxDepth
No description available.

.PARAMETER WarningExpiredTimeDate
No description available.

.PARAMETER WarningExpiredTimeDateType
No description available.

.PARAMETER ExpiredTimeDate
No description available.

.PARAMETER ExpiredTimeDateType
No description available.

.PARAMETER ExpiredTimeDateWorkflowTemplate
No description available.

.PARAMETER ExpirationPeriodWorkflowStage
No description available.

.PARAMETER QuotaSize
No description available.

.PARAMETER ServerResourceQuota
No description available.

.PARAMETER CaOrAdminCenterUrl
No description available.

.PARAMETER ApplyPolicy
No description available.

.PARAMETER AppliedDeploymentPlans
No description available.

.PARAMETER AdditionalActionTime
No description available.

.PARAMETER QuotaThresholdWarningTimes
No description available.

.OUTPUTS

SiteProperty<PSCustomObject>
#>


function New-SiteProperty {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Department},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Policy},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${CustomMetadatas},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Title},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Description},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${SiteMaxDepth},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${WarningExpiredTimeDate},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${WarningExpiredTimeDateType},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${ExpiredTimeDate},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${ExpiredTimeDateType},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ExpiredTimeDateWorkflowTemplate},
        [Parameter(Position = 11, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ExpirationPeriodWorkflowStage},
        [Parameter(Position = 12, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int64]]
        ${QuotaSize},
        [Parameter(Position = 13, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Double]]
        ${ServerResourceQuota},
        [Parameter(Position = 14, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${CaOrAdminCenterUrl},
        [Parameter(Position = 15, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ApplyPolicy},
        [Parameter(Position = 16, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${AppliedDeploymentPlans},
        [Parameter(Position = 17, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${AdditionalActionTime},
        [Parameter(Position = 18, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${QuotaThresholdWarningTimes}
    )

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

        $PSO = [PSCustomObject]@{
            "department" = ${Department}
            "policy" = ${Policy}
            "customMetadatas" = ${CustomMetadatas}
            "title" = ${Title}
            "description" = ${Description}
            "siteMaxDepth" = ${SiteMaxDepth}
            "warningExpiredTimeDate" = ${WarningExpiredTimeDate}
            "warningExpiredTimeDateType" = ${WarningExpiredTimeDateType}
            "expiredTimeDate" = ${ExpiredTimeDate}
            "expiredTimeDateType" = ${ExpiredTimeDateType}
            "expiredTimeDateWorkflowTemplate" = ${ExpiredTimeDateWorkflowTemplate}
            "expirationPeriodWorkflowStage" = ${ExpirationPeriodWorkflowStage}
            "quotaSize" = ${QuotaSize}
            "serverResourceQuota" = ${ServerResourceQuota}
            "caOrAdminCenterUrl" = ${CaOrAdminCenterUrl}
            "applyPolicy" = ${ApplyPolicy}
            "appliedDeploymentPlans" = ${AppliedDeploymentPlans}
            "additionalActionTime" = ${AdditionalActionTime}
            "quotaThresholdWarningTimes" = ${QuotaThresholdWarningTimes}
        }

        return $PSO
    }
}