Public/Graph/Update-KritTcmMgBetaDeviceAppManagementAndroidManagedAppProtection.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper Update-MgBetaDeviceAppManagementAndroidManagedAppProtection
    (category: Graph, module: M365DSCGraphShim).

.DESCRIPTION
    Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1.
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Krit.TCM provides the friendly namespace + citation registration
    for HARD RULE 20 discipline.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Wave .1514. Underlying cmdlet: Update-MgBetaDeviceAppManagementAndroidManagedAppProtection
    Category: Graph
    Module: M365DSCGraphShim
    Params: 115
#>

function Update-KritTcmMgBetaDeviceAppManagementAndroidManagedAppProtection {
    [CmdletBinding()]
    param(
        [String] $AndroidManagedAppProtectionId,
        [Object] $InputObject,
        [Object] $BodyParameter,
        [String] $ResponseHeadersVariable,
        [Hashtable] $AdditionalProperties,
        [String] $AllowedAndroidDeviceManufacturers,
        [String[]] $AllowedAndroidDeviceModels,
        [Object[]] $AllowedDataIngestionLocations,
        [Object[]] $AllowedDataStorageLocations,
        [Object] $AllowedInboundDataTransferSources,
        [Int32] $AllowedOutboundClipboardSharingExceptionLength,
        [Object] $AllowedOutboundClipboardSharingLevel,
        [Object] $AllowedOutboundDataTransferDestinations,
        [Object] $AppActionIfAccountIsClockedOut,
        [Object] $AppActionIfAndroidDeviceManufacturerNotAllowed,
        [Object] $AppActionIfAndroidDeviceModelNotAllowed,
        [Object] $AppActionIfAndroidSafetyNetAppsVerificationFailed,
        [Object] $AppActionIfAndroidSafetyNetDeviceAttestationFailed,
        [Object] $AppActionIfDeviceComplianceRequired,
        [Object] $AppActionIfDeviceLockNotSet,
        [Object] $AppActionIfDevicePasscodeComplexityLessThanHigh,
        [Object] $AppActionIfDevicePasscodeComplexityLessThanLow,
        [Object] $AppActionIfDevicePasscodeComplexityLessThanMedium,
        [Object] $AppActionIfMaximumPinRetriesExceeded,
        [Object] $AppActionIfSamsungKnoxAttestationRequired,
        [Object] $AppActionIfUnableToAuthenticateUser,
        [Object] $AppGroupType,
        [Object] $ApprovedKeyboards,
        [Object] $Apps,
        [Object] $Assignments,
        [SwitchParameter] $BiometricAuthenticationBlocked,
        [Int32] $BlockAfterCompanyPortalUpdateDeferralInDays,
        [SwitchParameter] $BlockDataIngestionIntoOrganizationDocuments,
        [SwitchParameter] $ConnectToVpnOnLaunch,
        [SwitchParameter] $ContactSyncBlocked,
        [DateTime] $CreatedDateTime,
        [String] $CustomBrowserDisplayName,
        [String] $CustomBrowserPackageId,
        [String] $CustomDialerAppDisplayName,
        [String] $CustomDialerAppPackageId,
        [SwitchParameter] $DataBackupBlocked,
        [Int32] $DeployedAppCount,
        [Object] $DeploymentSummary,
        [String] $Description,
        [SwitchParameter] $DeviceComplianceRequired,
        [SwitchParameter] $DeviceLockRequired,
        [Object] $DialerRestrictionLevel,
        [SwitchParameter] $DisableAppEncryptionIfDeviceEncryptionIsEnabled,
        [SwitchParameter] $DisableAppPinIfDevicePinIsSet,
        [String] $DisplayName,
        [SwitchParameter] $EncryptAppData,
        [Object] $ExemptedAppPackages,
        [SwitchParameter] $FingerprintAndBiometricEnabled,
        [SwitchParameter] $FingerprintBlocked,
        [TimeSpan] $GracePeriodToBlockAppsDuringOffClockHours,
        [String] $Id,
        [SwitchParameter] $IsAssigned,
        [SwitchParameter] $KeyboardsRestricted,
        [DateTime] $LastModifiedDateTime,
        [Object] $ManagedBrowser,
        [SwitchParameter] $ManagedBrowserToOpenLinksRequired,
        [Object] $MaximumAllowedDeviceThreatLevel,
        [Int32] $MaximumPinRetries,
        [String] $MaximumRequiredOSVersion,
        [String] $MaximumWarningOSVersion,
        [String] $MaximumWipeOSVersion,
        [String] $MessagingRedirectAppDisplayName,
        [String] $MessagingRedirectAppPackageId,
        [Int32] $MinimumPinLength,
        [String] $MinimumRequiredAppVersion,
        [String] $MinimumRequiredCompanyPortalVersion,
        [String] $MinimumRequiredOSVersion,
        [String] $MinimumRequiredPatchVersion,
        [String] $MinimumWarningAppVersion,
        [String] $MinimumWarningCompanyPortalVersion,
        [String] $MinimumWarningOSVersion,
        [String] $MinimumWarningPatchVersion,
        [String] $MinimumWipeAppVersion,
        [String] $MinimumWipeCompanyPortalVersion,
        [String] $MinimumWipeOSVersion,
        [String] $MinimumWipePatchVersion,
        [Object] $MobileThreatDefensePartnerPriority,
        [Object] $MobileThreatDefenseRemediationAction,
        [Object] $NotificationRestriction,
        [SwitchParameter] $OrganizationalCredentialsRequired,
        [TimeSpan] $PeriodBeforePinReset,
        [TimeSpan] $PeriodOfflineBeforeAccessCheck,
        [TimeSpan] $PeriodOfflineBeforeWipeIsEnforced,
        [TimeSpan] $PeriodOnlineBeforeAccessCheck,
        [Object] $PinCharacterSet,
        [SwitchParameter] $PinRequired,
        [TimeSpan] $PinRequiredInsteadOfBiometricTimeout,
        [Int32] $PreviousPinBlockCount,
        [SwitchParameter] $PrintBlocked,
        [Object] $ProtectedMessagingRedirectAppType,
        [SwitchParameter] $RequireClass3Biometrics,
        [SwitchParameter] $RequirePinAfterBiometricChange,
        [Object] $RequiredAndroidSafetyNetAppsVerificationType,
        [Object] $RequiredAndroidSafetyNetDeviceAttestationType,
        [Object] $RequiredAndroidSafetyNetEvaluationType,
        [String[]] $RoleScopeTagIds,
        [SwitchParameter] $SaveAsBlocked,
        [SwitchParameter] $ScreenCaptureBlocked,
        [SwitchParameter] $SimplePinBlocked,
        [Object] $TargetedAppManagementLevels,
        [String] $Version,
        [Int32] $WarnAfterCompanyPortalUpdateDeferralInDays,
        [Int32] $WipeAfterCompanyPortalUpdateDeferralInDays,
        [SwitchParameter] $Break,
        [IDictionary] $Headers,
        [Object[]] $HttpPipelineAppend,
        [Object[]] $HttpPipelinePrepend,
        [Uri] $Proxy,
        [PSCredential] $ProxyCredential,
        [SwitchParameter] $ProxyUseDefaultCredentials
    )

    if (-not (Get-Command -Name 'Update-MgBetaDeviceAppManagementAndroidManagedAppProtection' -ErrorAction SilentlyContinue)) {
        throw '[KritTcm] Update-MgBetaDeviceAppManagementAndroidManagedAppProtection not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'Update-MgBetaDeviceAppManagementAndroidManagedAppProtection' @PSBoundParameters
    } catch {
        Write-Error ('[KritTcm/Update-KritTcmMgBetaDeviceAppManagementAndroidManagedAppProtection] ' + 'Update-MgBetaDeviceAppManagementAndroidManagedAppProtection' + ' failed: ' + $_.Exception.Message)
        throw
    }
}