Model/PermissionActionItem.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 IdInSharepoint
No description available.

.PARAMETER AccountType
No description available.

.PARAMETER AccountTypeDescription
No description available.

.PARAMETER DisplayName
No description available.

.PARAMETER Level
No description available.

.PARAMETER LevelDescription
No description available.

.PARAMETER MemberOf
No description available.

.PARAMETER Path
No description available.

.PARAMETER PermissionLevel
No description available.

.PARAMETER SharePointGroup
No description available.

.PARAMETER TitleName
No description available.

.PARAMETER UserOrGroup
No description available.

.PARAMETER MemberId
No description available.

.PARAMETER ParentId
No description available.

.PARAMETER ParentAccountType
No description available.

.PARAMETER ActionType
No description available.

.PARAMETER AccessType
No description available.

.PARAMETER AccessTypeDescription
No description available.

.PARAMETER IsSiteAdministrator
No description available.

.OUTPUTS

PermissionActionItem<PSCustomObject>
#>


function New-PermissionActionItem {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Id},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${IdInSharepoint},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AccountType},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${AccountTypeDescription},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${DisplayName},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Level},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${LevelDescription},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${MemberOf},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Path},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${PermissionLevel},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${SharePointGroup},
        [Parameter(Position = 11, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${TitleName},
        [Parameter(Position = 12, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${UserOrGroup},
        [Parameter(Position = 13, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${MemberId},
        [Parameter(Position = 14, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ParentId},
        [Parameter(Position = 15, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${ParentAccountType},
        [Parameter(Position = 16, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ActionType},
        [Parameter(Position = 17, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AccessType},
        [Parameter(Position = 18, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${AccessTypeDescription},
        [Parameter(Position = 19, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsSiteAdministrator}
    )

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

        $PSO = [PSCustomObject]@{
            "id" = ${Id}
            "idInSharepoint" = ${IdInSharepoint}
            "accountType" = ${AccountType}
            "accountTypeDescription" = ${AccountTypeDescription}
            "displayName" = ${DisplayName}
            "level" = ${Level}
            "levelDescription" = ${LevelDescription}
            "memberOf" = ${MemberOf}
            "path" = ${Path}
            "permissionLevel" = ${PermissionLevel}
            "sharePointGroup" = ${SharePointGroup}
            "titleName" = ${TitleName}
            "userOrGroup" = ${UserOrGroup}
            "memberId" = ${MemberId}
            "parentId" = ${ParentId}
            "parentAccountType" = ${ParentAccountType}
            "actionType" = ${ActionType}
            "accessType" = ${AccessType}
            "accessTypeDescription" = ${AccessTypeDescription}
            "isSiteAdministrator" = ${IsSiteAdministrator}
        }

        return $PSO
    }
}