Functions/New-IAWidgetConfigurationHistoriesObject.ps1
Function New-IAWidgetConfigurationHistoriesObject{ Param( [String]$ReportUrl, [Bool]$ShowPeriodLabels, [String]$ChartType, [String]$PeriodType, [String]$PeriodValue, [String]$PeriodSlidingType, [String]$HistoryUnit, [String]$PeriodFixedStartDateTime, [String]$PeriodFixedEndDateTime ) $IAWidgetConfigurationHistoriesObject = New-Object -TypeName PSObject if($ReportUrl){ $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'ReportUrl' -Value $ReportUrl } $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'ShowPeriodLabels' -Value $ShowPeriodLabels $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'ChartType' -Value $ChartType $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'PeriodType' -Value $PeriodType $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'PeriodValue' -Value $PeriodValue $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'PeriodSlidingType' -Value $PeriodSlidingType $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'HistoryUnit' -Value $HistoryUnit $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'PeriodFixedStartDateTime' -Value $PeriodFixedStartDateTime $IAWidgetConfigurationHistoriesObject | Add-Member -MemberType NoteProperty -Name 'PeriodFixedEndDateTime' -Value $PeriodFixedEndDateTime return $IAWidgetConfigurationHistoriesObject } |