custom/autogen-model-cmdlets/New-NmeNotificationActionDeliveryModel.ps1
|
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.8, generator: @autorest/powershell@4.0.752) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Create an in-memory object for NotificationActionDelivery. .Description Create an in-memory object for NotificationActionDelivery. .Outputs NmePowershell.Models.NotificationActionDelivery #> function New-NmeNotificationActionDeliveryModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.NotificationActionDelivery')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [NmePowershell.PSArgumentCompleterAttribute("None", "EntraIdManager")] [string[]] $EmailBuiltInRecipients, [Parameter(Mandatory)] [bool] $EmailEnable, [Parameter()] [int] $EmailMailboxId, [Parameter(Mandatory)] [string[]] $EmailSendTo, [Parameter(Mandatory)] [bool] $WebhookEnable, [Parameter()] [int] $WebhookId ) process { $Object = [NmePowershell.Models.NotificationActionDelivery]::New() if ($PSBoundParameters.ContainsKey('EmailBuiltInRecipients')) { $Object.EmailBuiltInRecipients = $EmailBuiltInRecipients } if ($PSBoundParameters.ContainsKey('EmailEnable')) { $Object.EmailEnable = $EmailEnable } if ($PSBoundParameters.ContainsKey('EmailMailboxId')) { $Object.EmailMailboxId = $EmailMailboxId } if ($PSBoundParameters.ContainsKey('EmailSendTo')) { $Object.EmailSendTo = $EmailSendTo } if ($PSBoundParameters.ContainsKey('WebhookEnable')) { $Object.WebhookEnable = $WebhookEnable } if ($PSBoundParameters.ContainsKey('WebhookId')) { $Object.WebhookId = $WebhookId } return $Object } } |