Model/TreeNode.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 WebApplicationId
No description available.

.PARAMETER WebApplicationUri
No description available.

.PARAMETER SiteCollectionId
No description available.

.PARAMETER SiteCollectionUrl
No description available.

.PARAMETER SiteId
No description available.

.PARAMETER NodeId
No description available.

.PARAMETER StartIndex
No description available.

.PARAMETER PageSize
No description available.

.PARAMETER PageIndex
No description available.

.PARAMETER FullCount
No description available.

.PARAMETER Name
No description available.

.PARAMETER Title
No description available.

.PARAMETER Description
No description available.

.PARAMETER DisplayName
No description available.

.PARAMETER ManagedPath
No description available.

.PARAMETER AgentID
No description available.

.PARAMETER FullPath
No description available.

.PARAMETER FarmName
No description available.

.PARAMETER HasNextPage
No description available.

.PARAMETER FarmID
No description available.

.PARAMETER ParentID
No description available.

.PARAMETER Extension
No description available.

.PARAMETER Parent
No description available.

.PARAMETER Type
No description available.

.PARAMETER SpObjectID
No description available.

.PARAMETER ParentSPObjectID
No description available.

.PARAMETER Id
No description available.

.PARAMETER LoadManagedPath
No description available.

.PARAMETER LoadChildrenFromDB
No description available.

.PARAMETER LoadedPageCount
No description available.

.PARAMETER Children
No description available.

.PARAMETER SelectedChildren
No description available.

.PARAMETER FilterUrls
No description available.

.PARAMETER FilterType
No description available.

.PARAMETER CheckNumber
No description available.

.PARAMETER SelectedWebAppIdSubSiteProvServ
No description available.

.PARAMETER SelectedSiteCollIdsSubSiteProvServ
No description available.

.PARAMETER ChildrenType
No description available.

.PARAMETER ListId
No description available.

.PARAMETER ServerRelativeUrl
No description available.

.PARAMETER UserName
No description available.

.OUTPUTS

TreeNode<PSCustomObject>
#>


function New-TreeNode {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${WebApplicationId},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${WebApplicationUri},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${SiteCollectionId},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${SiteCollectionUrl},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${SiteId},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${NodeId},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${StartIndex},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${PageSize},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${PageIndex},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${FullCount},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Name},
        [Parameter(Position = 11, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Title},
        [Parameter(Position = 12, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Description},
        [Parameter(Position = 13, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${DisplayName},
        [Parameter(Position = 14, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ManagedPath},
        [Parameter(Position = 15, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${AgentID},
        [Parameter(Position = 16, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${FullPath},
        [Parameter(Position = 17, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${FarmName},
        [Parameter(Position = 18, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${HasNextPage},
        [Parameter(Position = 19, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${FarmID},
        [Parameter(Position = 20, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ParentID},
        [Parameter(Position = 21, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Extension},
        [Parameter(Position = 22, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Parent},
        [Parameter(Position = 23, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Type},
        [Parameter(Position = 24, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${SpObjectID},
        [Parameter(Position = 25, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ParentSPObjectID},
        [Parameter(Position = 26, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Id},
        [Parameter(Position = 27, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${LoadManagedPath},
        [Parameter(Position = 28, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${LoadChildrenFromDB},
        [Parameter(Position = 29, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${LoadedPageCount},
        [Parameter(Position = 30, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Children},
        [Parameter(Position = 31, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${SelectedChildren},
        [Parameter(Position = 32, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${FilterUrls},
        [Parameter(Position = 33, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${FilterType},
        [Parameter(Position = 34, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${CheckNumber},
        [Parameter(Position = 35, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${SelectedWebAppIdSubSiteProvServ},
        [Parameter(Position = 36, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${SelectedSiteCollIdsSubSiteProvServ},
        [Parameter(Position = 37, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${ChildrenType},
        [Parameter(Position = 38, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ListId},
        [Parameter(Position = 39, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ServerRelativeUrl},
        [Parameter(Position = 40, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${UserName}
    )

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

        $PSO = [PSCustomObject]@{
            "webApplicationId" = ${WebApplicationId}
            "webApplicationUri" = ${WebApplicationUri}
            "siteCollectionId" = ${SiteCollectionId}
            "siteCollectionUrl" = ${SiteCollectionUrl}
            "siteId" = ${SiteId}
            "nodeId" = ${NodeId}
            "startIndex" = ${StartIndex}
            "pageSize" = ${PageSize}
            "pageIndex" = ${PageIndex}
            "fullCount" = ${FullCount}
            "name" = ${Name}
            "title" = ${Title}
            "description" = ${Description}
            "displayName" = ${DisplayName}
            "managedPath" = ${ManagedPath}
            "agentID" = ${AgentID}
            "fullPath" = ${FullPath}
            "farmName" = ${FarmName}
            "hasNextPage" = ${HasNextPage}
            "farmID" = ${FarmID}
            "parentID" = ${ParentID}
            "extension" = ${Extension}
            "parent" = ${Parent}
            "type" = ${Type}
            "spObjectID" = ${SpObjectID}
            "parentSPObjectID" = ${ParentSPObjectID}
            "id" = ${Id}
            "loadManagedPath" = ${LoadManagedPath}
            "loadChildrenFromDB" = ${LoadChildrenFromDB}
            "loadedPageCount" = ${LoadedPageCount}
            "children" = ${Children}
            "selectedChildren" = ${SelectedChildren}
            "filterUrls" = ${FilterUrls}
            "filterType" = ${FilterType}
            "checkNumber" = ${CheckNumber}
            "selectedWebAppId_SubSiteProvServ" = ${SelectedWebAppIdSubSiteProvServ}
            "selectedSiteCollIds_SubSiteProvServ" = ${SelectedSiteCollIdsSubSiteProvServ}
            "childrenType" = ${ChildrenType}
            "listId" = ${ListId}
            "serverRelativeUrl" = ${ServerRelativeUrl}
            "userName" = ${UserName}
        }

        return $PSO
    }
}