custom/autogen-model-cmdlets/New-NmePortalNotificationPeriodModel.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 PortalNotificationPeriod. .Description Create an in-memory object for PortalNotificationPeriod. .Outputs NmePowershell.Models.PortalNotificationPeriod #> function New-NmePortalNotificationPeriodModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.PortalNotificationPeriod')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [System.DateTime] $EndDate, [Parameter(Mandatory)] [System.DateTime] $StartDate, [Parameter(Mandatory)] [string] $TimeZoneId ) process { $Object = [NmePowershell.Models.PortalNotificationPeriod]::New() if ($PSBoundParameters.ContainsKey('EndDate')) { $Object.EndDate = $EndDate } if ($PSBoundParameters.ContainsKey('StartDate')) { $Object.StartDate = $StartDate } if ($PSBoundParameters.ContainsKey('TimeZoneId')) { $Object.TimeZoneId = $TimeZoneId } return $Object } } |