DSCResources/cTeamsClientConfiguration/cTeamsClientConfiguration.schema.psm1

configuration cTeamsClientConfiguration {
    param (
        [Parameter()]
        [hashtable[]]
        $Items
)

<#
TeamsClientConfiguration [String] #ResourceName
{
    Identity = [string]{ Global }
    [AccessTokens = [string[]]]
    [AllowBox = [bool]]
    [AllowDropBox = [bool]]
    [AllowEgnyte = [bool]]
    [AllowEmailIntoChannel = [bool]]
    [AllowGoogleDrive = [bool]]
    [AllowGuestUser = [bool]]
    [AllowOrganizationTab = [bool]]
    [AllowResourceAccountSendMessage = [bool]]
    [AllowScopedPeopleSearchandAccess = [bool]]
    [AllowShareFile = [bool]]
    [AllowSkypeBusinessInterop = [bool]]
    [ApplicationId = [string]]
    [CertificateThumbprint = [string]]
    [ContentPin = [string]{ AlwaysRequired | NotRequired | RequiredOutsideScheduleMeeting }]
    [Credential = [PSCredential]]
    [DependsOn = [string[]]]
    [ManagedIdentity = [bool]]
    [PsDscRunAsCredential = [PSCredential]]
    [ResourceAccountContentAccess = [string]{ FullAccess | NoAccess | PartialAccess }]
    [RestrictedSenderList = [string[]]]
    [TenantId = [string]]
}
 
#>



    Import-DscResource -ModuleName PSDesiredStateConfiguration
    Import-DscResource -ModuleName Microsoft365DSC

    $dscResourceName = 'TeamsClientConfiguration'

    $param = $PSBoundParameters
    $param.Remove("InstanceName")

    $dscParameterKeys = 'Identity' -split ', '

        foreach ($item in $Items)
        {
            $keyValues = foreach ($key in $dscParameterKeys)
        {
            $item.$key
        }
        $executionName = $keyValues -join '_'
        $executionName = $executionName -replace "[\s()\\:*-+/{}```"']", '_'
        (Get-DscSplattedResource -ResourceName $dscResourceName -ExecutionName $executionName -Properties $item -NoInvoke).Invoke($item)
    }
}