reminder-escalations/src/PSSailpoint.ReminderEscalations/Model/Reminderescalationruleset.ps1
|
# # SailPoint Identity Security API - Reminder Escalations # Use these APIs to interact with the SailPoint Identity Security platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. # Version: v1 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION Reminder and escalation rules for one domain object type. At least one of `reminders`, `escalations`, or `fallback` must be set. .PARAMETER Reminders Independent reminder schedules. Every entry must use the same predicate, either `beforeDeadLine` or `activeAfter`. .PARAMETER Escalations Independent escalations. Each entry has its own trigger. .PARAMETER Fallback No description available. .OUTPUTS Reminderescalationruleset<PSCustomObject> #> function Initialize-Reminderescalationruleset { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Reminders}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Escalations}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Fallback} ) Process { 'Creating PSCustomObject: PSSailpoint.ReminderEscalations => Reminderescalationruleset' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "reminders" = ${Reminders} "escalations" = ${Escalations} "fallback" = ${Fallback} } return $PSO } } <# .SYNOPSIS Convert from JSON to Reminderescalationruleset<PSCustomObject> .DESCRIPTION Convert from JSON to Reminderescalationruleset<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Reminderescalationruleset<PSCustomObject> #> function ConvertFrom-JsonToReminderescalationruleset { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.ReminderEscalations => Reminderescalationruleset' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Reminderescalationruleset $AllProperties = ("reminders", "escalations", "fallback") foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } if (!([bool]($JsonParameters.PSobject.Properties.name -match "reminders"))) { #optional property not found $Reminders = $null } else { $Reminders = $JsonParameters.PSobject.Properties["reminders"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "escalations"))) { #optional property not found $Escalations = $null } else { $Escalations = $JsonParameters.PSobject.Properties["escalations"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "fallback"))) { #optional property not found $Fallback = $null } else { $Fallback = $JsonParameters.PSobject.Properties["fallback"].value } $PSO = [PSCustomObject]@{ "reminders" = ${Reminders} "escalations" = ${Escalations} "fallback" = ${Fallback} } return $PSO } } |