Model/ServiceGroupWithPermissions.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 UsersAssignBy
No description available.

.PARAMETER GroupOwnerAssignBy
No description available.

.PARAMETER AllowChangePermissionLevel
No description available.

.PARAMETER Removable
No description available.

.PARAMETER Name
No description available.

.PARAMETER Description
No description available.

.PARAMETER Users
No description available.

.PARAMETER PermissionLevels
No description available.

.PARAMETER GroupOwner
No description available.

.PARAMETER GroupOwnerType
No description available.

.PARAMETER BuildInGroupType
No description available.

.OUTPUTS

ServiceGroupWithPermissions<PSCustomObject>
#>


function New-ServiceGroupWithPermissions {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${UsersAssignBy},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${GroupOwnerAssignBy},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${AllowChangePermissionLevel},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${Removable},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Name},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Description},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Users},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${PermissionLevels},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${GroupOwner},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${GroupOwnerType},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${BuildInGroupType}
    )

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

        $PSO = [PSCustomObject]@{
            "usersAssignBy" = ${UsersAssignBy}
            "groupOwnerAssignBy" = ${GroupOwnerAssignBy}
            "allowChangePermissionLevel" = ${AllowChangePermissionLevel}
            "removable" = ${Removable}
            "name" = ${Name}
            "description" = ${Description}
            "users" = ${Users}
            "permissionLevels" = ${PermissionLevels}
            "groupOwner" = ${GroupOwner}
            "groupOwnerType" = ${GroupOwnerType}
            "buildInGroupType" = ${BuildInGroupType}
        }

        return $PSO
    }
}