Model/SPGroup.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 Name
No description available.

.PARAMETER Description
No description available.

.PARAMETER Owner
No description available.

.PARAMETER Members
No description available.

.PARAMETER PermissionLevels
No description available.

.PARAMETER SpGroupViewType
No description available.

.PARAMETER SpGroupEditType
No description available.

.PARAMETER IsAllowJoinOrLeaveRequest
No description available.

.PARAMETER AutoAcceptRequestToJoinLeave
No description available.

.PARAMETER RequestToJoinLeaveEmailSetting
No description available.

.PARAMETER IsTemporaryGroup
No description available.

.OUTPUTS

SPGroup<PSCustomObject>
#>


function New-SPGroup {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${Id},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Name},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Description},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Owner},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Members},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String[]]
        ${PermissionLevels},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${SpGroupViewType},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${SpGroupEditType},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsAllowJoinOrLeaveRequest},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${AutoAcceptRequestToJoinLeave},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${RequestToJoinLeaveEmailSetting},
        [Parameter(Position = 11, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsTemporaryGroup}
    )

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

        $PSO = [PSCustomObject]@{
            "id" = ${Id}
            "name" = ${Name}
            "description" = ${Description}
            "owner" = ${Owner}
            "members" = ${Members}
            "permissionLevels" = ${PermissionLevels}
            "spGroupViewType" = ${SpGroupViewType}
            "spGroupEditType" = ${SpGroupEditType}
            "isAllowJoinOrLeaveRequest" = ${IsAllowJoinOrLeaveRequest}
            "autoAcceptRequestToJoinLeave" = ${AutoAcceptRequestToJoinLeave}
            "requestToJoinLeaveEmailSetting" = ${RequestToJoinLeaveEmailSetting}
            "isTemporaryGroup" = ${IsTemporaryGroup}
        }

        return $PSO
    }
}