DscResources/OneDrive/OneDrive.schema.psm1

# (2024-11-10 01:31:07) Generated using Microsoft365DSC v1.24.1106.3
Configuration 'OneDrive'
{
    param
    (
        [Parameter(Mandatory = $true)]
        [System.String]
        $ApplicationId,

        [Parameter(Mandatory = $true)]
        [System.String]
        $TenantId,

        [Parameter(Mandatory = $true)]
        [System.String]
        $CertificateThumbprint
    )

    Import-DscResource -ModuleName Microsoft365DSC

    if ($ConfigurationData.NonNodeData.OneDrive.ContainsKey('Settings'))
    {
        $resourceTitle = 'SettingsDefaults'

        $parameters = $ConfigurationData.NonNodeData.OneDrive.Settings
        $parameters.IsSingleInstance = 'Yes'
        $parameters.ApplicationId = $ApplicationId
        $parameters.TenantId = $TenantId
        $parameters.CertificateThumbprint = $CertificateThumbprint

        if ($parameters.ContainsKey('UniqueId'))
        {
            $parameters.Remove('UniqueId')
        }
        (Get-DscSplattedResource -ResourceName 'ODSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters)
    }
}