From b382d73ab264ffdaac117ff8608d6ae422142381 Mon Sep 17 00:00:00 2001 From: mario Date: Tue, 2 Jan 2024 20:05:08 +0100 Subject: [PATCH] update stubs --- CHANGELOG.md | 3 - Tests/Unit/Stubs/Microsoft365.psm1 | 134 +++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7017ff4bed..dfa162cd1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,18 +18,15 @@ * TeamsChannel * Add error handling if GroupId of a team is null FIXES [#3943](https://github.com/microsoft/Microsoft365DSC/issues/3943) -<<<<<<< HEAD * EXOReportSubmissionPolicy * Initial release FIXES [#3690](https://github.com/microsoft/Microsoft365DSC/issues/3690) -======= * TeamsFeedbackPolicy * Added parameter descriptions for better documentation * TeamsMobilityPolicy * Added parameter descriptions for better documentation * TeamsNetworkRoamingPolicy * Added parameter descriptions for better documentation ->>>>>>> Dev # 1.23.1227.1 diff --git a/Tests/Unit/Stubs/Microsoft365.psm1 b/Tests/Unit/Stubs/Microsoft365.psm1 index a8b6d85644..3484e5c5c5 100644 --- a/Tests/Unit/Stubs/Microsoft365.psm1 +++ b/Tests/Unit/Stubs/Microsoft365.psm1 @@ -1353,6 +1353,15 @@ function Get-RemoteDomain $ResultSize ) } +function Get-ReportSubmissionPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Identity + ) +} function Get-ResourceConfig { [CmdletBinding()] @@ -4331,6 +4340,13 @@ function New-RemoteDomain $DomainName ) } +function New-ReportSubmissionPolicy +{ + [CmdletBinding()] + param( + + ) +} function New-RoleAssignmentPolicy { [CmdletBinding()] @@ -6044,6 +6060,15 @@ function Remove-RemoteDomain $Identity ) } +function Remove-ReportSubmissionPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Identity + ) +} function Remove-RoleAssignmentPolicy { [CmdletBinding()] @@ -11356,6 +11381,115 @@ function Set-RemoteDomain $UseSimpleDisplayName ) } +function Set-ReportSubmissionPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + $Identity, + + [Parameter()] + [System.Boolean] + $DisableQuarantineReportingOption, + + [Parameter()] + [System.Boolean] + $EnableCustomNotificationSender, + + [Parameter()] + [System.Boolean] + $EnableOrganizationBranding, + + [Parameter()] + [System.Boolean] + $EnableReportToMicrosoft, + + [Parameter()] + [System.Boolean] + $EnableThirdPartyAddress, + + [Parameter()] + [System.Boolean] + $EnableUserEmailNotification, + + [Parameter()] + [System.String] + $JunkReviewResultMessage, + + [Parameter()] + [System.String] + $NotJunkReviewResultMessage, + + [Parameter()] + [System.String] + $NotificationFooterMessage, + + [Parameter()] + [System.String] + $NotificationSenderAddress, + + [Parameter()] + [System.String] + $PhishingReviewResultMessage, + + [Parameter()] + [System.String] + $PostSubmitMessage, + + [Parameter()] + [System.Boolean] + $PostSubmitMessageEnabled, + + [Parameter()] + [System.String] + $PostSubmitMessageTitle, + + [Parameter()] + [System.String] + $PreSubmitMessage, + + [Parameter()] + [System.Boolean] + $PreSubmitMessageEnabled, + + [Parameter()] + [System.String] + $PreSubmitMessageTitle, + + [Parameter()] + [System.String[]] + $ReportJunkAddresses = @(), + + [Parameter()] + [System.Boolean] + $ReportJunkToCustomizedAddress, + + [Parameter()] + [System.String[]] + $ReportNotJunkAddresses = @(), + + [Parameter()] + [System.Boolean] + $ReportNotJunkToCustomizedAddress, + + [Parameter()] + [System.String[]] + $ReportPhishAddresses = @(), + + [Parameter()] + [System.Boolean] + $ReportPhishToCustomizedAddress, + + [Parameter()] + [System.String[]] + $ThirdPartyReportAddresses = @(), + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm + ) +} function Set-ResourceConfig { [CmdletBinding()]