Public/generated/Get-KritTcmSPOSite.ps1

<#
·· × × × ··· SirJ's Deaddrop ··· × × × ···
      — If you found this, you were meant to —

---------------- A Seriously Kritical™ Production ----------------

                                   [] →
                 (¯`·.¸¸.·´¯)
               .·´ `·. [] →
               `·.______________.·´
              | +------------------+ |
              | | Kritical™ | |
              | | [] [] | |
              | | | |
              | | [] [] [] | |
              | +------------------+ |
                  (._.·´¯`·.¸_)

                     Your last call.
                   And your first move.

                         ★ ☆ ★

                     +61 1300 274 655
                 sales at kritical dot net

-----------------------------------------------------------------


.COPYRIGHT
    (c) 2026 Kritical Pty Ltd. All rights reserved.
.AUTHOR
    Joshua Finley <joshua.finley@kritical.net>
.COMPANY
    Kritical Pty Ltd | ABN 39 687 048 086
    Level 4 / 60 Moorabool St Geelong VIC 3220
    1300 274 655 | sales@kritical.net | https://kritical.net/
.NOTES
    HARD RULE 13 canonical Kritical branding — do not overlay other agent banners.
    Auto-generated by Generate-KritTcmFromM365DscSchema.ps1 (.1507o30+).
    Upstream reference: Microsoft365DSC by Microsoft (MIT). This shim provides
    literal search-replace equivalence — see Krit.TCM/generated/index.md.
#>


function Get-KritTcmSPOSite {
<#
.SYNOPSIS
    Krit.TCM shim for M365DSC resource SPOSite.

.DESCRIPTION
    Auto-generated from M365DSC .schema.mof by
    scripts/m365-setup/Generate-KritTcmFromM365DscSchema.ps1 (.1507o30).

    Search-replace safe: callers that today invoke
        Get-M365DSCSPOSite -Credential $cred -TenantId $tid
    can rename to
        Get-KritTcmSPOSite -Credential $cred -TenantId $tid
    with ZERO other edits. Parameter shape matches the M365DSC .schema.mof
    exactly. Per operator direction, -PreferM365DscBehavior defaults to true.

    Actual Graph dispatch is delegated to Invoke-KritTcmM365DscSchemaBridge.
    Bridge maps resource → Graph endpoint per per-resource wave; where mapping
    is not yet shipped, bridge returns an object with Verdict='UNMAPPED'.

.NOTES
    Workload: SharePoint
    Original mof: C:\Users\joshl\OneDrive - Kritical Pty Ltd\Github\KRTPax8ToShopifyConnector\.kritm365-mine\Microsoft365DSC\Modules\Microsoft365DSC\DSCResources\MSFT_SPOSite\MSFT_SPOSite.schema.mof
    Param count: 35
    Generator wave: .1507o30
#>

[CmdletBinding()]
param(
        # The URL of the site collection.
[Parameter(Mandatory)] [string]$Url,
        # The title of the site collection.
[Parameter(Mandatory)] [string]$Title,
        # Specifies the owner of the site.
[Parameter(Mandatory)] [string]$Owner,
        # TimeZone ID of the site collection.
[Parameter(Mandatory)] [int]$TimeZoneId,
        # Specifies with template of site to create.
[string]$Template,
        # The URL of the Hub site the site collection needs to get connected to.
[string]$HubUrl,
        # Disables Microsoft Flow for this site.
[bool]$DisableFlows,
        # Specifies what the sharing capabilities are for the site. Possible values: Disabled, ExternalUserSharingOnly, ExternalUserAndGuestSharing, ExistingExternalUserSharingOnly.
[ValidateSet('Disabled','ExistingExternalUserSharingOnly','ExternalUserSharingOnly','ExternalUserAndGuestSharing')] [string]$SharingCapability,
        # Specifies the storage quota for this site collection in megabytes. This value must not exceed the company's available quota.
[int]$StorageMaximumLevel,
        # Specifies the warning level for the storage quota in megabytes. This value must not exceed the values set for the StorageMaximumLevel parameter.
[int]$StorageWarningLevel,
        # Specifies if the site administrator can upgrade the site collection.
[bool]$AllowSelfServiceUpgrade,
        # Specifies if comments on site pages are enabled or disabled.
[bool]$CommentsOnSitePagesDisabled,
        # Specifies the default link permission for the site collection. None - Respect the organization default link permission. View - Sets the default link permission for the site to 'view' permissions. Edit - Sets the default link permission for the site to 'edit' permissions.
[ValidateSet('None','View','Edit')] [string]$DefaultLinkPermission,
        # Specifies the default link type for the site collection. None - Respect the organization default sharing link type. AnonymousAccess - Sets the default sharing link for this site to an Anonymous Access or Anyone link. Internal - Sets the default sharing link for this site to the 'organization' link or company shareable link. Direct - Sets the default sharing link for this site to the 'Specific people' link.
[ValidateSet('None','AnonymousAccess','Internal','Direct')] [string]$DefaultSharingLinkType,
        # Disables App Views.
[ValidateSet('Unknown','Disabled','NotDisabled')] [string]$DisableAppViews,
        # Disables Company wide sharing links.
[ValidateSet('Unknown','Disabled','NotDisabled')] [string]$DisableCompanyWideSharingLinks,
        # Specifies the language of the new site collection. Defaults to the current language of the web connected to.
[int]$LocaleId,
        # Determines whether the Add And Customize Pages right is denied on the site collection. For more information about permission levels, see User permissions and permission levels in SharePoint.
[bool]$DenyAddAndCustomizePages,
        # Defines geo-restriction settings for this site
[ValidateSet('NoRestriction','BlockMoveOnly','BlockFull','Unknown')] [string]$RestrictedToRegion,
        # Specifies a list of email domains that is allowed for sharing with the external collaborators. Use the space character as the delimiter.
[string]$SharingAllowedDomainList,
        # Specifies a list of email domains that is blocked for sharing with the external collaborators.
[string]$SharingBlockedDomainList,
        # Specifies the external sharing mode for domains.
[ValidateSet('None','AllowList','BlockList')] [string]$SharingDomainRestrictionMode,
        # To enable the option to search for existing guest users at Site Collection Level, set this parameter to $true.
[bool]$ShowPeoplePickerSuggestionsForGuestUsers,
        # Specifies that all anonymous/anyone links that have been created (or will be created) will expire after the set number of days. Only applies if OverrideTenantAnonymousLinkExpirationPolicy is set to true. To remove the expiration requirement, set the value to zero (0)
[int]$AnonymousLinkExpirationInDays,
        # Disables or enables the Social Bar for Site Collection.
[bool]$SocialBarOnSitePagesDisabled,
        # False - Respect the organization-level policy for anonymous or anyone link expiration. True - Override the organization-level policy for anonymous or anyone link expiration (can be more or less restrictive)
[bool]$OverrideTenantAnonymousLinkExpirationPolicy,
        # Present ensures the site collection exists, absent ensures it is removed
[ValidateSet('Present','Absent')] [string]$Ensure,
        # Credentials of the account to authenticate with.
[string]$Credential,
        # Id of the Azure Active Directory application to authenticate with.
[string]$ApplicationId,
        # Secret of the Azure Active Directory application to authenticate with.
[string]$ApplicationSecret,
        # Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com
[string]$TenantId,
        # Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
[string]$CertificateThumbprint,
        # Username can be made up to anything but password will be used for CertificatePassword
[string]$CertificatePassword,
        # Path to certificate used in service principal usually a PFX file.
[string]$CertificatePath,
        # Managed ID being used for authentication.
[bool]$ManagedIdentity
)
    Invoke-KritTcmM365DscSchemaBridge -ResourceName 'SPOSite' -Workload 'SharePoint' -Verb 'Get' -CallerParams $PSBoundParameters
}